Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

add option for adding annotations for deployment #22

Open
wants to merge 1 commit into
base: master
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ helm install -f values.yaml kowl cloudhut/kowl
| `podAnnotations` | Annotations to attach on Kowl pod | `{}` |
| `podSecurityContext` | Pod Security Context | `{runAsUser: 99, fsGroup: 99}` |
| `securityContext` | Container Security Context | `{runAsNonRoot: true}` |
| `deployment.annotations` | Deployment annotations | `{}` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | Service port | `80` |
| `service.type` | Annotations to attach to service | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions kowl/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "kowl.fullname" . }}
labels:
{{- include "kowl.labels" . | nindent 4 }}
{{- with (.Values.deployment).annotations }}
Copy link
Member

Choose a reason for hiding this comment

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

Hey, mind explaining the reason for the parenthesis?

annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand Down
3 changes: 3 additions & 0 deletions kowl/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ securityContext:
# runAsNonRoot: true
# runAsUser: 1000

deployment:
annotations: {}

service:
type: ClusterIP
port: 80
Expand Down