-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use eks:cluster-name as clusterId #856
Conversation
pkg/publisher/publisher.go
Outdated
@@ -207,6 +198,32 @@ func (p *cloudWatchPublisher) getCloudWatchMetricNamespace() *string { | |||
return aws.String(cloudwatchMetricNamespace) | |||
} | |||
|
|||
func getClusterId(ec2Client *ec2wrapper.EC2Wrapper) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit... could you name this getClusterID()
(capitalized ID) please?
Changes in. PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks Greg!
I just realised that I think the condition should be:
|
Thanks @jaypipes Will this get merged by a collaborator automatically at some stage, or do I need to assign somebody specific? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks @groodt!
* Use eks:cluster-name as clusterId
* Use eks:cluster-name as clusterId
Issue #775
Description of changes:
Prioritise
eks:cluster-name
as clusterId for cni-metrics-helper. This is the tag that EKS node-groups is automatically adding.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.