Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fc1d9dbd
Unverified
Commit
fc1d9dbd
authored
May 24, 2018
by
Tim Wilfong
Committed by
GitHub
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hasClusterTag to actually get behavior we want
parent
d8d2a4e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tags.go
pkg/cloudprovider/providers/aws/tags.go
+5
-5
No files found.
pkg/cloudprovider/providers/aws/tags.go
View file @
fc1d9dbd
...
@@ -137,13 +137,13 @@ func (t *awsTagging) hasClusterTag(tags []*ec2.Tag) bool {
...
@@ -137,13 +137,13 @@ func (t *awsTagging) hasClusterTag(tags []*ec2.Tag) bool {
clusterTagKey
:=
t
.
clusterTagKey
()
clusterTagKey
:=
t
.
clusterTagKey
()
for
_
,
tag
:=
range
tags
{
for
_
,
tag
:=
range
tags
{
tagKey
:=
aws
.
StringValue
(
tag
.
Key
)
tagKey
:=
aws
.
StringValue
(
tag
.
Key
)
// Check if this is a newer-style cluster tag before checking if legacy tag value matches ClusterID
// For 1.6, we continue to recognize the legacy tags, for the 1.5 -> 1.6 upgrade
if
tagKey
==
clusterTagKey
{
// Note that we want to continue traversing tag list if we see a legacy tag with value != ClusterID
if
(
tagKey
==
TagNameKubernetesClusterLegacy
)
&&
(
aws
.
StringValue
(
tag
.
Value
)
==
t
.
ClusterID
)
{
return
true
return
true
}
}
// For 1.6, we continue to recognize the legacy tags, for the 1.5 -> 1.6 upgrade
if
tagKey
==
clusterTagKey
{
if
tagKey
==
TagNameKubernetesClusterLegacy
{
return
true
return
aws
.
StringValue
(
tag
.
Value
)
==
t
.
ClusterID
}
}
}
}
return
false
return
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment