@@ -47,7 +47,7 @@ func (t Tags) HasAzureCloudProviderOwned(cluster string) bool {
4747 return ok && ResourceLifecycle (value ) == ResourceLifecycleOwned
4848}
4949
50- // GetRole returns the Cluster API role for the tagged resource
50+ // GetRole returns the Cluster API role for the tagged resource.
5151func (t Tags ) GetRole () string {
5252 return t [NameAzureClusterAPIRole ]
5353}
@@ -74,13 +74,13 @@ func (t Tags) Merge(other Tags) {
7474 }
7575}
7676
77- // AddSpecVersionHashTag adds a spec version hash to the Azure resource tags to determine if state has changed quickly
77+ // AddSpecVersionHashTag adds a spec version hash to the Azure resource tags to determine if state has changed quickly.
7878func (t Tags ) AddSpecVersionHashTag (hash string ) Tags {
7979 t [SpecVersionHashTagKey ()] = hash
8080 return t
8181}
8282
83- // ResourceLifecycle configures the lifecycle of a resource
83+ // ResourceLifecycle configures the lifecycle of a resource.
8484type ResourceLifecycle string
8585
8686const (
@@ -99,36 +99,36 @@ const (
9999 // to be permissive about state changes.
100100 // logically independent clusters running in the same AZ.
101101 // The tag key = NameKubernetesAzureCloudProviderPrefix + clusterID
102- // The tag value is an ownership value
102+ // The tag value is an ownership value.
103103 NameKubernetesAzureCloudProviderPrefix = "kubernetes.io_cluster_"
104104
105105 // NameAzureProviderPrefix is the tag prefix we use to differentiate
106106 // cluster-api-provider-azure owned components from other tooling that
107- // uses NameKubernetesClusterPrefix
107+ // uses NameKubernetesClusterPrefix.
108108 NameAzureProviderPrefix = "sigs.k8s.io_cluster-api-provider-azure_"
109109
110110 // NameAzureProviderOwned is the tag name we use to differentiate
111111 // cluster-api-provider-azure owned components from other tooling that
112- // uses NameKubernetesClusterPrefix
112+ // uses NameKubernetesClusterPrefix.
113113 NameAzureProviderOwned = NameAzureProviderPrefix + "cluster_"
114114
115115 // NameAzureClusterAPIRole is the tag name we use to mark roles for resources
116116 // dedicated to this cluster api provider implementation.
117117 NameAzureClusterAPIRole = NameAzureProviderPrefix + "role"
118118
119- // APIServerRole describes the value for the apiserver role
119+ // APIServerRole describes the value for the apiserver role.
120120 APIServerRole = "apiserver"
121121
122- // NodeOutboundRole describes the value for the node outbound LB role
122+ // NodeOutboundRole describes the value for the node outbound LB role.
123123 NodeOutboundRole = "nodeOutbound"
124124
125- // ControlPlaneOutboundRole describes the value for the control plane outbound LB role
125+ // ControlPlaneOutboundRole describes the value for the control plane outbound LB role.
126126 ControlPlaneOutboundRole = "controlPlaneOutbound"
127127
128- // BastionRole describes the value for the bastion role
128+ // BastionRole describes the value for the bastion role.
129129 BastionRole = "bastion"
130130
131- // CommonRole describes the value for the common role
131+ // CommonRole describes the value for the common role.
132132 CommonRole = "common"
133133
134134 // VMTagsLastAppliedAnnotation is the key for the machine object annotation
@@ -138,7 +138,7 @@ const (
138138 VMTagsLastAppliedAnnotation = "sigs.k8s.io/cluster-api-provider-azure-last-applied-tags-vm"
139139)
140140
141- // SpecVersionHashTagKey is the key for the spec version hash used to enable quick spec difference comparison
141+ // SpecVersionHashTagKey is the key for the spec version hash used to enable quick spec difference comparison.
142142func SpecVersionHashTagKey () string {
143143 return fmt .Sprintf ("%s%s" , NameAzureProviderPrefix , "spec-version-hash" )
144144}
0 commit comments