Skip to content

Commit 71b1d53

Browse files
committed
tmp
1 parent 3aeec19 commit 71b1d53

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pkg/consts/clusterid.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ package consts
1717
import "k8s.io/apimachinery/pkg/labels"
1818

1919
const (
20-
// ClusterIDLabelName is the name of the label key to use with Cluster ID.
20+
// ClusterIDLabelName is the name of the label key to use with cluster-id.
2121
ClusterIDLabelName = "clusterID"
2222
// ClusterIDConfigMapKey is the key of the configmap where the cluster-id is stored.
2323
ClusterIDConfigMapKey = "CLUSTER_ID"
2424
// ClusterIDConfigMapNameLabelValue value of the name key of the configmap used to get it by label.
2525
ClusterIDConfigMapNameLabelValue = "clusterid-configmap"
2626

27-
// ClusterIDTelemetryLabelName is the name of the label key to use with Cluster ID.
27+
// ClusterIDTelemetryLabelName is the name of the label key to use with telemetry cluster-id.
2828
ClusterIDTelemetryLabelName = "clusterIDTelemetry"
29-
// ClusterIDTelemetryConfigMapKey is the key of the configmap where the cluster-id is stored.
29+
// ClusterIDTelemetryConfigMapKey is the key of the configmap where the telemetry cluster-id is stored.
3030
ClusterIDTelemetryConfigMapKey = "CLUSTER_ID_TELEMETRY"
3131
// ClusterIDTelemetryConfigMapNameLabelValue value of the name key of the configmap used to get it by label.
3232
ClusterIDTelemetryConfigMapNameLabelValue = "clusterid-telemetry-configmap"
33-
// ClusterIDTelemetryConfigMapName value of the name key of the configmap used to get it by name.
33+
// ClusterIDTelemetryConfigMapName is the name of the configmap where the telemetry cluster-id is stored.
3434
ClusterIDTelemetryConfigMapName = "telemetry-identity"
3535
)
3636

pkg/utils/cluster_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func GetClusterIDWithControllerClient(ctx context.Context, cl client.Client, nam
7474
return clusterID, nil
7575
}
7676

77-
// GetClusterIDWithControllerClient returns cluster identity using a client.Client client.
77+
// GetClusterIDTelemetryWithControllerClient returns telemetry cluster identity using a client.Client client.
7878
func GetClusterIDTelemetryWithControllerClient(ctx context.Context, cl client.Client, namespace string) (string, error) {
7979
selector, err := metav1.LabelSelectorAsSelector(&liqolabels.ClusterIDTelemetryConfigMapLabelSelector)
8080
if err != nil {

pkg/utils/getters/dataGetters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func RetrieveClusterIDFromConfigMap(cm *corev1.ConfigMap) (liqov1beta1.ClusterID
6262
return liqov1beta1.ClusterID(id), nil
6363
}
6464

65-
// RetrieveClusterIDFromConfigMap retrieves ClusterID from a given configmap.
65+
// RetrieveClusterIDTelemetryFromConfigMap retrieves telemetry ClusterID from a given configmap.
6666
func RetrieveClusterIDTelemetryFromConfigMap(cm *corev1.ConfigMap) (string, error) {
6767
id, found := cm.Data[liqoconsts.ClusterIDTelemetryConfigMapKey]
6868
if !found {

pkg/utils/labels/labelSelectors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
},
4040
}
4141

42-
// ClusterIDConfigMapLabelSelector selector used to get the cluster id telemetry configmap.
42+
// ClusterIDTelemetryConfigMapLabelSelector selector used to get the cluster id telemetry configmap.
4343
ClusterIDTelemetryConfigMapLabelSelector = metav1.LabelSelector{
4444
MatchExpressions: []metav1.LabelSelectorRequirement{
4545
{

0 commit comments

Comments
 (0)