-
Notifications
You must be signed in to change notification settings - Fork 695
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
add deploymentAnnotations field in helm chart #864
add deploymentAnnotations field in helm chart #864
Conversation
76b56be
to
07f6880
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.
Thanks a lot for your PR. There are some comments from my side. Could you also include the key inside the README file and bump the version value inside the Chart.yaml to 2.3.0, please?
Álvaro
helm/sealed-secrets/values.yaml
Outdated
@@ -363,3 +363,8 @@ metrics: | |||
## @param metrics.dashboards.namespace Namespace where Grafana dashboard ConfigMap is deployed | |||
## | |||
namespace: "" | |||
|
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.
Please, could you move this new section after the extraDeploy key.
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.
added
@@ -5,6 +5,9 @@ metadata: | |||
name: {{ include "sealed-secrets.fullname" . }} | |||
namespace: {{ include "sealed-secrets.namespace" . }} | |||
labels: {{- include "sealed-secrets.labels" . | nindent 4 }} | |||
{{- if .Values.deploymentAnnotations }} | |||
annotations: {{- toYaml .Values.deploymentAnnotations | 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.
Please use the key commonAnnotations instead of deploymentAnnotations
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.
added
07f6880
to
8fdc9a3
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.
Thanks for the PR! Could you also add the common annotations to the rest of the deployed resources? Thanks!
helm/sealed-secrets/README.md
Outdated
@@ -77,6 +77,7 @@ The command removes all the Kubernetes components associated with the chart and | |||
| `fullnameOverride` | String to fully override sealed-secrets.fullname | `""` | | |||
| `namespace` | Namespace where to deploy the Sealed Secrets controller | `""` | | |||
| `extraDeploy` | Array of extra objects to deploy with the release | `[]` | | |||
| `commonAnnotations`| common annotations | `[]` | |
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.
| `commonAnnotations`| common annotations | `[]` | | |
| `commonAnnotations`| Annotations to add to all deployed resources | `[]` | |
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.
added
@@ -5,6 +5,9 @@ metadata: | |||
name: {{ include "sealed-secrets.fullname" . }} | |||
namespace: {{ include "sealed-secrets.namespace" . }} | |||
labels: {{- include "sealed-secrets.labels" . | nindent 4 }} | |||
{{- if .Values.commonAnnotations }} | |||
annotations: {{- toYaml .Values.commonAnnotations | 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.
annotations: {{- toYaml .Values.commonAnnotations | nindent 8 }} | |
annotations: {{- toYaml .Values.commonAnnotations | nindent 4 }} |
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.
updated
helm/sealed-secrets/values.yaml
Outdated
@@ -15,6 +15,10 @@ namespace: "" | |||
## @param extraDeploy [array] Array of extra objects to deploy with the release | |||
## | |||
extraDeploy: [] | |||
## @param commonAnnotations [object] common annotations |
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.
## @param commonAnnotations [object] common annotations | |
## @param commonAnnotations [object] Annotations to add to all deployed resources |
8fdc9a3
to
677fcc2
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.
Thanks for the PR!
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.
LGTM
Description of the change
This will add
commonAnnotation
field in Helm chartBenefits
This will allow users to set annotation on sealed -secrets controller deployment
Ref: #863