Skip to content

Commit

Permalink
Merge pull request #12181 from johngmyers/fix-error
Browse files Browse the repository at this point in the history
Fix incorrect validation error message
  • Loading branch information
k8s-ci-robot committed Aug 19, 2021
2 parents 3ddafa3 + 21da1bd commit 8b04759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/kops/validation/instancegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func validateIGCloudLabels(ig *kops.InstanceGroup, fldPath *field.Path) (allErrs
if key == aws.CloudTagInstanceGroupName {

if value != ig.ObjectMeta.Name {
allErrs = append(allErrs, field.Invalid(fldPath.Child(aws.CloudTagInstanceGroupName), key, "Node label may only contain a single slash"))
allErrs = append(allErrs, field.Invalid(fldPath.Child(aws.CloudTagInstanceGroupName), key, "value must match instance group name"))
}
} else {
genericLabels[key] = value
Expand Down

0 comments on commit 8b04759

Please sign in to comment.