Skip to content

Commit

Permalink
fix(chart): Add missing labels (#306)
Browse files Browse the repository at this point in the history
* fix(chart): Add missing labels

* Add missing label

* fix syntax issue
  • Loading branch information
gnarea authored Nov 29, 2020
1 parent 52d7d7c commit 62efd0c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions chart/templates/generated-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ metadata:
annotations:
"helm.sh/hook": "pre-install"
"helm.sh/hook-weight": "-5"
labels:
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
data:
GATEWAY_KEY_ID: {{ default (randAlphaNum 12 | b64enc) .Values.gatewayKeyId | quote }}
2 changes: 2 additions & 0 deletions chart/templates/global-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "relaynet-internet-gateway.fullname" . }}
labels:
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
data:
NATS_SERVER_URL: {{ .Values.nats.serverUrl }}
NATS_CLUSTER_ID: {{ .Values.nats.clusterId }}
Expand Down
2 changes: 2 additions & 0 deletions chart/templates/global-secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "relaynet-internet-gateway.fullname" . }}
labels:
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
type: Opaque
data:
MONGO_PASSWORD: {{ .Values.mongo.password | b64enc }}
Expand Down
4 changes: 1 addition & 3 deletions chart/templates/keygen-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ spec:
metadata:
name: "{{ .Release.Name }}-keygen"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
{{- include "relaynet-internet-gateway.labels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "relaynet-internet-gateway.serviceAccountName" . }}-keygen
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions chart/templates/mongo-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "relaynet-internet-gateway.fullname" . }}-mongo
labels:
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
data:
MONGO_URI: {{ .Values.mongo.uri }}
MONGO_DB: {{ .Values.mongo.db }}
Expand Down
6 changes: 2 additions & 4 deletions chart/templates/vault-config-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Job
metadata:
name: {{ include "relaynet-internet-gateway.fullname" . }}-vault-config
labels:
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": post-install
"helm.sh/hook-weight": "0"
Expand All @@ -14,9 +14,7 @@ spec:
metadata:
name: "{{ .Release.Name }}-vault-config"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
{{- include "relaynet-internet-gateway.labels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "relaynet-internet-gateway.serviceAccountName" . }}-vault-config
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/vault-config-sa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: ServiceAccount
metadata:
name: {{ include "relaynet-internet-gateway.serviceAccountName" . }}-vault-config
labels:
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
{{- include "relaynet-internet-gateway.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": post-install
"helm.sh/hook-weight": "-1"
Expand Down

0 comments on commit 62efd0c

Please sign in to comment.