Use .Release.Namespace instead of namespace value

This commit is contained in:
Otto Bittner 2022-10-26 10:36:04 +02:00
parent 34f729ccd2
commit 009b2e67e3
10 changed files with 11 additions and 10 deletions

View File

@ -9,4 +9,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: join-service
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}

View File

@ -4,10 +4,11 @@ metadata:
name: join-config
namespace: kube-system
data:
# mustToJson is required so the json-strings passed from go are properly quoted in the rendered yaml.
# mustToJson is required so the json-strings passed from go are of type string in the rendered yaml.
enforcedPCRs: {{ .Values.enforcedPCRs | mustToJson }}
measurements: {{ .Values.measurements | mustToJson }}
{{- if eq .Values.csp "Azure" }}
# ConfigMap.data is of type map[string]string. quote will not quote a quoted string.
enforceIdKeyDigest: {{ .Values.enforceIdKeyDigest | quote }}
idkeydigest: {{ .Values.idkeydigest }}
{{- end }}

View File

@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: join-service
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
labels:
component: join-service
k8s-app: join-service

View File

@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: join-service
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
spec:
type: NodePort
selector:

View File

@ -2,4 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: join-service
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}

View File

@ -9,4 +9,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: kms
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}

View File

@ -6,7 +6,7 @@ metadata:
k8s-app: kms
kubernetes.io/cluster-service: "true"
name: kms
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:

View File

@ -3,7 +3,7 @@ kind: Secret
type: Opaque
metadata:
name: {{ .Values.masterSecretName }}
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
data:
mastersecret: {{ .Values.masterSecret }}
salt: {{ .Values.salt }}

View File

@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: kms
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}
spec:
ports:
- name: grpc

View File

@ -2,4 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: kms
namespace: {{ .Values.namespace }}
namespace: {{ .Release.Namespace }}