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

add option for deployment annotations to helm chart #424

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions deploy/charts/trust-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,13 @@ Pod labels to add to trust-manager pods.
> ```

Pod annotations to add to trust-manager pods.
#### **app.deploymentAnnotations** ~ `object`
> Default value:
> ```yaml
> {}
> ```

Deployment annotations to add to the trust-manager deployment.
### Webhook

#### **app.webhook.host** ~ `string`
Expand Down
4 changes: 4 additions & 0 deletions deploy/charts/trust-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
namespace: {{ include "trust-manager.namespace" . }}
labels:
{{- include "trust-manager.labels" . | nindent 4 }}
{{- if .Values.app.deploymentAnnotations }}
annotations:
{{- toYaml .Values.app.deploymentAnnotations | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
3 changes: 3 additions & 0 deletions deploy/charts/trust-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ app:
# Pod annotations to add to trust-manager pods.
podAnnotations: {}

# Deployment annotations to add to the trust-manager deployment.
deploymentAnnotations: {}

# +docs:section=Webhook

webhook:
Expand Down