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

aws-cloudwatch-metrics - Add support for pod annotations #592

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hintofbasil
Copy link

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

  • Added/modified documentation as required (such as the README.md for modified charts)
  • Incremented the chart version in Chart.yaml for the modified chart(s)
  • Manually tested. Describe what testing was done in the testing section below
  • Make sure the title of the PR is a good description that can go into the release notes

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.

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

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

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: {}

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 | {} |

Choose a reason for hiding this comment

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

| annotations | Optional pod annotations | {} |

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.

2 participants