Updated to 7.7.0.20250830-3-BN0276-ubi
Updated ANM destinationCertCA for 7.7.0.20250830-3-BN0276-ubi
This commit is contained in:
78
apigateway/charts/v7-traceability/templates/_helpers.tpl
Normal file
78
apigateway/charts/v7-traceability/templates/_helpers.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "v7-traceability.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "v7-traceability.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains $name .Release.Name }}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "v7-traceability.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "v7-traceability.labels" -}}
|
||||
helm.sh/chart: {{ include "v7-traceability.chart" . }}
|
||||
{{ include "v7-traceability.selectorLabels" . }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "v7-traceability.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "v7-traceability.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "v7-traceability.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "v7-traceability.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the image name
|
||||
*/}}
|
||||
{{- define "v7-traceability.imageName" -}}
|
||||
{{- if .Values.image.fullPath }}
|
||||
{{- .Values.image.fullPath }}
|
||||
{{- else }}
|
||||
{{- $tag := default .Chart.AppVersion .Values.image.tag -}}
|
||||
{{- if .Values.image.registry }}
|
||||
{{- printf "%s/%s/%s:%s" .Values.image.registry .Values.image.repository .Values.image.name $tag }}
|
||||
{{- else }}
|
||||
{{- printf "%s/%s:%s" .Values.image.repository .Values.image.name $tag }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
174
apigateway/charts/v7-traceability/templates/daemonset.yaml
Normal file
174
apigateway/charts/v7-traceability/templates/daemonset.yaml
Normal file
@@ -0,0 +1,174 @@
|
||||
{{- if not .Values.statefulSet.enabled -}}
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: {{ include "v7-traceability.fullname" . }}
|
||||
labels:
|
||||
{{- include "v7-traceability.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "v7-traceability.selectorLabels" . | nindent 6 }}
|
||||
{{- with .Values.additionalLabels }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ default "none" $key }}: {{ default "none" $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "v7-traceability.selectorLabels" . | nindent 8 }}
|
||||
{{- with .Values.additionalLabels }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ default "none" $key }}: {{ default "none" $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.image.pullSecret }}
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.image.pullSecret }}
|
||||
{{- end }}
|
||||
{{- if .Values.initContainer.enabled }}
|
||||
initContainers:
|
||||
- name: init
|
||||
image: "{{ .Values.initContainer.image.name }}"
|
||||
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
|
||||
securityContext: {{- toYaml .Values.initContainer.securityContext | nindent 12 }}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- chown -R {{ .Values.podSecurityContext.fsGroup }}:{{ .Values.podSecurityContext.fsGroup }} /data;
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "v7-traceability.serviceAccountName" . }}
|
||||
{{- with .Values.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: {{ include "v7-traceability.imageName" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: probe-port
|
||||
containerPort: {{ .Values.statusPort }}
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /status
|
||||
port: probe-port
|
||||
{{- with .Values.livenessProbe }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /status
|
||||
port: probe-port
|
||||
{{- with .Values.readinessProbe }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- with .Values.env }}
|
||||
{{- range $key, $value := . }}
|
||||
{{- if and (not (eq (toString $value) "")) (not (eq (toString $key) "")) }} # ignore any items with empty key or value
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if not .Values.env.CENTRAL_USAGEREPORTING_OFFLINE }}
|
||||
{{- if not .Values.env.APIGATEWAY_ONLY }}
|
||||
- name: APIMANAGER_AUTH_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIMANAGER_AUTH_USERNAME
|
||||
- name: APIMANAGER_AUTH_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIMANAGER_AUTH_PASSWORD
|
||||
{{- end}}
|
||||
{{- if and .Values.env.EVENT_LOG_INPUT .Values.env.APIGATEWAY_GETHEADERS }}
|
||||
- name: APIGATEWAY_AUTH_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIGATEWAY_AUTH_USERNAME
|
||||
- name: APIGATEWAY_AUTH_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIGATEWAY_AUTH_PASSWORD
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
volumeMounts:
|
||||
{{- if not (.Values.env.CENTRAL_USAGEREPORTING_OFFLINE)}}
|
||||
- name: "traceability-keys-secrets"
|
||||
mountPath: /keys
|
||||
{{- end}}
|
||||
- name: events
|
||||
mountPath: {{ .Values.persistentVolumeClaimConfig.events.mountPath }}
|
||||
- name: data
|
||||
mountPath: /data
|
||||
- name: logs
|
||||
mountPath: /logs
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumes:
|
||||
- name: events
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistentVolumeClaimConfig.events.name }}
|
||||
- name: logs
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistentVolumeClaimConfig.logs.name }}
|
||||
{{- if (.Values.dataVolume.useHostPath) }}
|
||||
- name: data
|
||||
hostPath:
|
||||
path: {{ .Values.dataVolume.hostPath }}
|
||||
type: DirectoryOrCreate
|
||||
{{- else }}
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistentVolumeClaimConfig.data.name }}
|
||||
{{- end }}
|
||||
{{- if not (.Values.env.CENTRAL_USAGEREPORTING_OFFLINE)}}
|
||||
- name: traceability-keys-secrets
|
||||
secret:
|
||||
secretName: {{ .Values.secrets.keys }}
|
||||
items:
|
||||
- key: private_key
|
||||
path: private_key.pem
|
||||
- key: public_key
|
||||
path: public_key.pem
|
||||
{{- end}}
|
||||
{{- if .Values.nodeSelector }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
nodeSelector:
|
||||
traceability-agent: "true"
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
91
apigateway/charts/v7-traceability/templates/job.yaml
Normal file
91
apigateway/charts/v7-traceability/templates/job.yaml
Normal file
@@ -0,0 +1,91 @@
|
||||
{{- if not (.Values.dataVolume.useHostPath) }}
|
||||
{{- if .Values.nodeSelector -}}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ include "v7-traceability.fullname" . }}-migrate-to-pvc
|
||||
labels:
|
||||
{{- include "v7-traceability.labels" . | nindent 4 }}
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-weight": "-2"
|
||||
"helm.sh/hook-delete-policy": "before-hook-creation"
|
||||
{{- with .Values.podAnnotations }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "v7-traceability.selectorLabels" . | nindent 8 }}
|
||||
{{- with .Values.additionalLabels }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ default "none" $key }}: {{ default "none" $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.initContainer.enabled }}
|
||||
initContainers:
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "v7-traceability.serviceAccountName" . }}
|
||||
{{- with .Values.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: migrate
|
||||
image: "{{ .Values.initContainer.image.name }}"
|
||||
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
|
||||
securityContext: {{- toYaml .Values.initContainer.securityContext | nindent 12 }}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
echo "checking if data should be migrated"
|
||||
if test -f /data-old/meta.json; then
|
||||
# if a meta.json file exists in the old directory then migrate the data
|
||||
if test -d /data; then
|
||||
# clean the destination directory before migration
|
||||
echo "clean the destination directory before migration"
|
||||
rm -r /data/*
|
||||
fi
|
||||
echo "migrating the data now"
|
||||
mv /data-old/* /data/
|
||||
fi
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
- name: data-old
|
||||
mountPath: /data-old
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistentVolumeClaimConfig.data.name }}
|
||||
- name: data-old
|
||||
hostPath:
|
||||
path: {{ .Values.dataVolume.hostPath }}
|
||||
type: DirectoryOrCreate
|
||||
{{- if .Values.nodeSelector }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
nodeSelector:
|
||||
traceability-agent: "true"
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
29
apigateway/charts/v7-traceability/templates/pvc.yaml
Normal file
29
apigateway/charts/v7-traceability/templates/pvc.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Values.persistentVolumeClaimConfig.logs.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.persistentVolumeClaimConfig.logs.storageClass }}
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
|
||||
{{- if not (.Values.dataVolume.useHostPath) }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Values.persistentVolumeClaimConfig.data.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.persistentVolumeClaimConfig.data.storageClass }}
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
{{- end }}
|
||||
@@ -0,0 +1,12 @@
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "v7-traceability.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "v7-traceability.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
164
apigateway/charts/v7-traceability/templates/statefulset.yaml
Normal file
164
apigateway/charts/v7-traceability/templates/statefulset.yaml
Normal file
@@ -0,0 +1,164 @@
|
||||
{{- if .Values.statefulSet.enabled -}}
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: {{ include "v7-traceability.fullname" . }}
|
||||
labels:
|
||||
{{- include "v7-traceability.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "v7-traceability.selectorLabels" . | nindent 6 }}
|
||||
{{- with .Values.additionalLabels }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ default "none" $key }}: {{ default "none" $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
serviceName: {{ include "v7-traceability.fullname" . }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "v7-traceability.selectorLabels" . | nindent 8 }}
|
||||
{{- with .Values.additionalLabels }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ default "none" $key }}: {{ default "none" $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.image.pullSecret }}
|
||||
imagePullSecrets:
|
||||
- name: {{ .Values.image.pullSecret }}
|
||||
{{- end }}
|
||||
{{- if .Values.initContainer.enabled }}
|
||||
initContainers:
|
||||
- name: init
|
||||
image: "{{ .Values.initContainer.image.name }}"
|
||||
imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }}
|
||||
securityContext: {{- toYaml .Values.initContainer.securityContext | nindent 12 }}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- chown -R {{ .Values.podSecurityContext.fsGroup }}:{{ .Values.podSecurityContext.fsGroup }} /data;
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "v7-traceability.serviceAccountName" . }}
|
||||
{{- with .Values.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: {{ include "v7-traceability.imageName" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: probe-port
|
||||
containerPort: {{ .Values.statusPort }}
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /status
|
||||
port: probe-port
|
||||
{{- with .Values.livenessProbe }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /status
|
||||
port: probe-port
|
||||
{{- with .Values.readinessProbe }}
|
||||
{{- range $key, $value := . }}
|
||||
{{ $key }}: {{ $value }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- with .Values.env }}
|
||||
{{- range $key, $value := . }}
|
||||
{{- if and (not (eq (toString $value) "")) (not (eq (toString $key) "")) }} # ignore any items with empty key or value
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if not .Values.env.CENTRAL_USAGEREPORTING_OFFLINE }}
|
||||
{{- if not .Values.env.APIGATEWAY_ONLY }}
|
||||
- name: APIMANAGER_AUTH_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIMANAGER_AUTH_USERNAME
|
||||
- name: APIMANAGER_AUTH_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIMANAGER_AUTH_PASSWORD
|
||||
{{- end}}
|
||||
{{- if and .Values.env.EVENT_LOG_INPUT .Values.env.APIGATEWAY_GETHEADERS }}
|
||||
- name: APIGATEWAY_AUTH_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIGATEWAY_AUTH_USERNAME
|
||||
- name: APIGATEWAY_AUTH_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.secrets.credentials }}
|
||||
key: APIGATEWAY_AUTH_PASSWORD
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
volumeMounts:
|
||||
{{- if not (.Values.env.CENTRAL_USAGEREPORTING_OFFLINE)}}
|
||||
- name: "traceability-keys-secrets"
|
||||
mountPath: /keys
|
||||
{{- end}}
|
||||
- name: events
|
||||
mountPath: {{ .Values.persistentVolumeClaimConfig.events.mountPath }}
|
||||
- name: data
|
||||
mountPath: /data
|
||||
- name: logs
|
||||
mountPath: /logs
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumes:
|
||||
- name: events
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistentVolumeClaimConfig.events.name }}
|
||||
- name: logs
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistentVolumeClaimConfig.logs.name }}
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.persistentVolumeClaimConfig.data.name }}
|
||||
{{- if not (.Values.env.CENTRAL_USAGEREPORTING_OFFLINE)}}
|
||||
- name: traceability-keys-secrets
|
||||
secret:
|
||||
secretName: {{ .Values.secrets.keys }}
|
||||
items:
|
||||
- key: private_key
|
||||
path: private_key.pem
|
||||
- key: public_key
|
||||
path: public_key.pem
|
||||
{{- end}}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user