Skip to content

Commit cdd1673

Browse files
committed
update outdated comment on encodeTags function
1 parent 9a2ace6 commit cdd1673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gce-cloud-provider/compute/gce-compute.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,8 +1113,8 @@ func removeCryptoKeyVersion(kmsKey string) string {
11131113
return kmsKey
11141114
}
11151115

1116-
// encodeTags encodes requested volume or snapshot tags into JSON string, as GCE does
1117-
// not support tags on GCE PDs and Snapshots and we use Description field as fallback.
1116+
// encodeTags encodes requested volume or snapshot tags into JSON string, suitable for putting into
1117+
// the PD or Snapshot Description field.
11181118
func encodeTags(tags map[string]string) (string, error) {
11191119
if len(tags) == 0 {
11201120
// No tags -> empty JSON

0 commit comments

Comments
 (0)