Skip to content

Commit

Permalink
Fix incorrect validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
johngmyers committed Aug 19, 2021
1 parent 3ddafa3 commit 21da1bd
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 21da1bd

Please sign in to comment.