Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
fix cluster-name resource detection. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
rghetia authored Jul 15, 2019
1 parent 89b0f64 commit 87ca538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gke/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Detect(ctx context.Context) (*resource.Resource, error) {
Labels: map[string]string{},
}

clusterName, err := metadata.InstanceAttributeValue("instance/attributes/cluster-name")
clusterName, err := metadata.InstanceAttributeValue("cluster-name")
logError(err)
if clusterName != "" {
k8sRes.Labels[resourcekeys.K8SKeyClusterName] = clusterName
Expand Down

0 comments on commit 87ca538

Please sign in to comment.