Skip to content

Commit

Permalink
fix(helm): chart and identation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Egenolf committed Jun 18, 2024
1 parent 4cb2f53 commit db62f61
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 23 deletions.
8 changes: 4 additions & 4 deletions k8s/helm/tngkds/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "tngkds-backend.fullname" . }}
name: {{ include "tngkds.fullname" . }}
labels:
{{- include "tngkds-backend.labels" . | nindent 4 }}
{{- include "tngkds.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "tngkds-backend.selectorLabels" . | nindent 6 }}
{{- include "tngkds.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "tngkds-backend.labels" . | nindent 8 }}
{{- include "tngkds.labels" . | nindent 8 }}
spec:
imagePullSecrets:
- name: {{ .Values.imagePullSecrets }}
Expand Down
2 changes: 1 addition & 1 deletion k8s/helm/tngkds/templates/did-signer-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
name: did-signer-secret
namespace: {{ .Release.Namespace }}
data:
did-signer.p12: {{ .Values.secrets.didSigner }}
did-signer.p12: {{ .Values.secrets.didSigner }}
type: Opaque
6 changes: 3 additions & 3 deletions k8s/helm/tngkds/templates/mtls-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: mtls-secret
namespace: {{ .Release.Namespace }}
data:
tls_key_store.p12: {{ .Values.secrets.mtls.tlsKeyStore }}
tls_key_store.p12: {{ .Values.secrets.mtls.tlsKeyStore }}
tng_tls_server_truststore.p12: {{ .Values.secrets.mtls.tlsServerTrustStore }}
trustanchor_store.jks: {{ .Values.secrets.mtls.tlsTrustAnchorStore }}
type: Opaque
trustanchor_store.jks: {{ .Values.secrets.mtls.tlsTrustAnchorStore }}
type: Opaque
6 changes: 3 additions & 3 deletions k8s/helm/tngkds/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "tngkds-backend.fullname" . }}-service
name: {{ include "tngkds.fullname" . }}-service
labels:
{{- include "tngkds-backend.labels" . | nindent 4 }}
{{- include "tngkds.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.service.type }}
Expand All @@ -16,4 +16,4 @@ spec:
name: {{ .name }}
{{ end }}
selector:
{{- include "tngkds-backend.selectorLabels" . | nindent 4 }}
{{- include "tngkds.selectorLabels" . | nindent 4 }}
4 changes: 2 additions & 2 deletions k8s/helm/tngkds/templates/tng-distribution-pull-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
name: tng-distribution-pull-secret
namespace: {{ .Release.Namespace }}
data:
.dockerconfigjson: {{ .Values.secrets.dockerPull }}
type: kubernetes.io/dockerconfigjson
.dockerconfigjson: {{ .Values.secrets.dockerPull }}
type: kubernetes.io/dockerconfigjson
4 changes: 2 additions & 2 deletions k8s/helm/tngkds/templates/truststore-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
name: truststore-secret
namespace: {{ .Release.Namespace }}
data:
tls_trust_store.jks: {{ .Values.secrets.trustStore }}
type: Opaque
tls_trust_store.jks: {{ .Values.secrets.trustStore }}
type: Opaque
4 changes: 2 additions & 2 deletions k8s/helm/tngkds/values-local.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Default values for tngkds-backend.
# Default values for tngkds.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

Expand Down Expand Up @@ -117,4 +117,4 @@ secrets: # Below are all b64 encoded
mtls:
tlsKeyStore: <tls trust store>
tlsServerTrustStore: <tls server trust store>
tlsTrustAnchorStore: <tls trustanchor store>
tlsTrustAnchorStore: <tls trustanchor store>
8 changes: 2 additions & 6 deletions k8s/helm/tngkds/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Default values for tngkds-backend.
# Default values for tngkds.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

Expand All @@ -18,11 +18,6 @@ imagePullSecrets: tng-distribution-pull-secret
nameOverride: ""
fullnameOverride: ""

# Liquibase
liquibaseImage:
repository: ghcr.io/worldhealthorganization/tng-key-distribution/tng-key-distribution-initcontainer
tag: <liquibase-image-tag>

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down Expand Up @@ -174,6 +169,7 @@ did:
EU: XEU
group-deny-list:
- UPLOAD
- AUTHENTICATION
group-name-mapping:
CSCA: SCA

Expand Down

0 comments on commit db62f61

Please sign in to comment.