Skip to content

Commit

Permalink
add annotations for goinceptions (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Jun 16, 2022
1 parent b604d5f commit bd1d347
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/goinception/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
apiVersion: v2
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: goinception
version: 0.1.0
version: 0.2.0
home: https://github.com/hanchuanchuan/goInception
maintainers:
- name: LeoQuote
Expand Down
7 changes: 7 additions & 0 deletions charts/goinception/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ metadata:
helm.sh/chart: {{ include "goinception.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- range $key, $val := .Values.deployment.labels }}
{{ $key }}: {{ $val | quote }}
{{- end}}
{{- with .Values.deployment.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
4 changes: 4 additions & 0 deletions charts/goinception/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ service:
port: 4000
targetPort: 4000

deployment:
labels: {}
annotations: {}

initEnv:
- name: BACKUP_PASSWORD
value: "my-password"
Expand Down

0 comments on commit bd1d347

Please sign in to comment.