diff --git a/admission-controller/Chart.yaml b/admission-controller/Chart.yaml index ecb30e6..a775071 100644 --- a/admission-controller/Chart.yaml +++ b/admission-controller/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 appVersion: "0.0.1" -version: 0.1.14 +version: 0.1.15 name: admission-controller description: Lacework admission controller using Lacework proxy scanner type: application @@ -15,4 +15,4 @@ dependencies: - name: proxy-scanner version: 0.10.0 condition: proxy-scanner.enabled - repository: https://lacework.github.io/helm-charts \ No newline at end of file + repository: https://lacework.github.io/helm-charts diff --git a/admission-controller/templates/certs.yaml b/admission-controller/templates/certs.yaml index c0b7bf8..6c824d6 100644 --- a/admission-controller/templates/certs.yaml +++ b/admission-controller/templates/certs.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.certs.secret_name }} apiVersion: v1 kind: Secret metadata: @@ -7,4 +8,5 @@ data: ca.crt: {{ .Values.scanner.caCert }} # root CA for scanner {{- end }} admission.crt: {{ .Values.certs.serverCertificate }} # place server cert - admission.key: {{ .Values.certs.serverKey }} # place server key \ No newline at end of file + admission.key: {{ .Values.certs.serverKey }} # place server key +{{- end }}