mirror of https://github.com/kubernetes/kops.git
Merge pull request #4960 from justinsb/dont_spurious_log_on_shared_volume_tag
Ignore shared-ownership tags on volumes
This commit is contained in:
commit
99cf4b63e9
|
|
@ -226,6 +226,8 @@ func (a *AWSVolumes) findVolumes(request *ec2.DescribeVolumesInput) ([]*Volume,
|
|||
vol.Info.EtcdClusters = append(vol.Info.EtcdClusters, spec)
|
||||
} else if strings.HasPrefix(k, awsup.TagNameRolePrefix) {
|
||||
// Ignore
|
||||
} else if strings.HasPrefix(k, awsup.TagNameClusterOwnershipPrefix) {
|
||||
// Ignore
|
||||
} else {
|
||||
glog.Warningf("unknown tag on volume %q: %s=%s", volumeID, k, v)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,9 @@ const TagRoleMaster = "master"
|
|||
// TagNameKopsRole is the AWS tag used to identify the role an object plays for a cluster
|
||||
const TagNameKopsRole = "kubernetes.io/kops/role"
|
||||
|
||||
// TagNameClusterOwnershipPrefix is the AWS tag used for ownership
|
||||
const TagNameClusterOwnershipPrefix = "kubernetes.io/cluster/"
|
||||
|
||||
const (
|
||||
WellKnownAccountKopeio = "383156758163"
|
||||
WellKnownAccountRedhat = "309956199498"
|
||||
|
|
|
|||
Loading…
Reference in New Issue