Skip to content

Commit b596fd3

Browse files
committed
Fix lastAppliedTags annotations naming
Valid annotation keys have two segments: an optional prefix and name, separated by a slash (/). In this commit, we fix the ones that include two slashes that couldn't be parsed as valid structs. Closes #3863 Signed-off-by: Jim Ntosas <[email protected]>
1 parent 6ebafab commit b596fd3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

controllers/awsmachine_security_groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const (
3131
// the AdditionalSecurityGroups in the Machine Provider Config.
3232
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
3333
// for annotation formatting rules.
34-
SecurityGroupsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws/v2-last-applied-security-groups"
34+
SecurityGroupsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws-last-applied-security-groups"
3535
)
3636

3737
// Ensures that the security groups of the machine are correct

controllers/awsmachine_tags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
// which tracks the AdditionalTags in the Machine Provider Config.
2727
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
2828
// for annotation formatting rules.
29-
TagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws/v2-last-applied-tags"
29+
TagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws-last-applied-tags"
3030

3131
// VolumeTagsLastAppliedAnnotation is the key for the ebs volumes annotation
3232
// which tracks the AdditionalTags in the Machine Provider Config.

pkg/cloud/services/ec2/launchtemplate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const (
4747
// AdditionalTags in the AWSMachinePool Provider Config.
4848
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
4949
// for annotation formatting rules.
50-
TagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws/v2-last-applied-tags"
50+
TagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-aws-last-applied-tags"
5151
)
5252

5353
func (s *Service) ReconcileLaunchTemplate(

0 commit comments

Comments
 (0)