-
Notifications
You must be signed in to change notification settings - Fork 909
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
feat: Add chart for cloudwatch-metrics #275
Conversation
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.
@gazal-k looking really great, thank you! just add the one missing configuration field for service account name and we're good to go.
| `image.tag` | Image tag to deploy | `1.247345.36b249270` | ||
| `image.pullPolicy` | Pull policy for the image | `IfNotPresent` | ✔ | ||
| `clusterName` | Name of your cluster | `cluster_name` | ✔ | ||
| `serviceAccount.create` | Whether a new service account should be created | `true` | |
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.
There is also the serviceAccount.name
field.
3aeb922
to
a0e61d5
Compare
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.
One other thing I caught... please see inline :)
{{- if .Values.serviceAccount.create -}} | ||
{{ default (include "aws-cloudwatch-metrics.fullname" .) .Values.serviceAccount.name }} | ||
{{- else -}} | ||
{{ default "default" .Values.serviceAccount.name }} |
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.
And one other issue I see is that this is copying in a mistake that was fixed here: 8c0db8a
Basically, you need to remove the {{ if
block around the Values.serviceAccount.create
check above...
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.
oops 🙂
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.
Hi. this service account name template is not used in your cluster role binding. There it just uses {{ include "aws-cloudwatch-metrics.fullname" . }}. It should also use the template aws-cloudwatch-metrics.serviceAccountName in role binding I think.
a0e61d5
to
701a0c9
Compare
Helm chart created from reference here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-metrics.html
701a0c9
to
e7caa3f
Compare
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.
Awesome work on this @gazal-k thank you! :)
Helm chart created from reference here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-setup-metrics.html
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.