-
Notifications
You must be signed in to change notification settings - Fork 996
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
aws-cloudwatch-metrics - Add support for pod annotations #592
base: master
Are you sure you want to change the base?
aws-cloudwatch-metrics - Add support for pod annotations #592
Conversation
We are using kube2iam for our IAM roles. This requires adding an annotation to each pod to allow it to assume the required role.
@@ -12,6 +12,10 @@ spec: | |||
metadata: | |||
labels: | |||
{{- include "aws-cloudwatch-metrics.selectorLabels" . | nindent 8 }} | |||
{{- if .Values.podAnnotations }} |
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.
as annotations exist on aws-for-fluent-bit chart. Maybe we should harmonize the variable
{{- if .Values.annotations }}
@@ -12,6 +12,10 @@ spec: | |||
metadata: | |||
labels: | |||
{{- include "aws-cloudwatch-metrics.selectorLabels" . | nindent 8 }} | |||
{{- if .Values.podAnnotations }} | |||
annotations: | |||
{{- toYaml .Values.podAnnotations | nindent 8 }} |
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.
as annotations exist on aws-for-fluent-bit chart. Maybe we should harmonize the variable
{{- toYaml .Values.podAnnotations | nindent 8 }}
@@ -18,3 +18,5 @@ serviceAccount: | |||
name: | |||
|
|||
hostNetwork: false | |||
|
|||
podAnnotations: {} |
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.
annotations: {}
| `serviceAccount.create` | Whether a new service account should be created | `true` | | ||
| `serviceAccount.name` | Service account to be used | | | ||
| `hostNetwork` | Allow to use the network namespace and network resources of the node | `false` | | ||
| `podAnnotations` | Annotations to add to each pod | {} | |
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.
|
annotations | Optional pod annotations | {} |
Issue
Description of changes
We are using kube2iam for our IAM roles. This requires adding an annotation to
each pod to allow it to assume the required role.
Checklist
README.md
for modified charts)version
inChart.yaml
for the modified chart(s)Testing
Templated the chart with various values including no
podAnnotations
value,podAnnotations: {}
and valid annotations. Templated output was not run against a cluster but visually verified.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.