Skip to content
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

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

gazal-k
Copy link
Contributor

@gazal-k gazal-k commented Oct 11, 2020

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.

Copy link
Contributor

@jaypipes jaypipes left a 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` |
Copy link
Contributor

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.

Copy link
Contributor

@jaypipes jaypipes left a 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 }}
Copy link
Contributor

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...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops 🙂

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.

Copy link
Contributor

@jaypipes jaypipes left a 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! :)

@jaypipes jaypipes merged commit 6ff9787 into aws:master Oct 13, 2020
@gazal-k gazal-k deleted the cloudwatch-metrics branch December 15, 2020 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants