Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

fix: ServiceCidr + DNSServiceIP validation error message #360

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/api/vlabs/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,10 @@ func (k *KubernetesConfig) Validate(k8sVersion string, hasWindows bool) error {

if k.DNSServiceIP != "" || k.ServiceCidr != "" {
if k.DNSServiceIP == "" {
return errors.New("OrchestratorProfile.KubernetesConfig.ServiceCidr must be specified when DNSServiceIP is")
return errors.New("OrchestratorProfile.KubernetesConfig.DNSServiceIP must be specified when ServiceCidr is")
}
if k.ServiceCidr == "" {
return errors.New("OrchestratorProfile.KubernetesConfig.DNSServiceIP must be specified when ServiceCidr is")
return errors.New("OrchestratorProfile.KubernetesConfig.ServiceCidr must be specified when DNSServiceIP is")
}

dnsIP := net.ParseIP(k.DNSServiceIP)
Expand Down