diff --git a/templates/injector-deployment.yaml b/templates/injector-deployment.yaml index 0e03344..ed5a2da 100644 --- a/templates/injector-deployment.yaml +++ b/templates/injector-deployment.yaml @@ -44,9 +44,9 @@ spec: - name: AGENT_INJECT_VAULT_IMAGE value: "{{ .Values.injector.agentImage.repository }}:{{ .Values.injector.agentImage.tag }}" {{- if .Values.injector.certs.secretName }} - - name: AGENT_INJECT_CERT_FILE + - name: AGENT_INJECT_TLS_CERT_FILE value: "/etc/webhook/certs/{{ .Values.injector.certs.certName }}" - - name: AGENT_INJECT_KEY_FILE + - name: AGENT_INJECT_TLS_KEY_FILE value: "/etc/webhook/certs/{{ .Values.injector.certs.keyName }}" {{- else }} - name: AGENT_INJECT_TLS_AUTO diff --git a/test/unit/injector-deployment.bats b/test/unit/injector-deployment.bats index 3cc85c7..cdb07ce 100755 --- a/test/unit/injector-deployment.bats +++ b/test/unit/injector-deployment.bats @@ -118,7 +118,7 @@ load _helpers local actual=$(echo $object | yq -r '.[4].name' | tee /dev/stderr) - [ "${actual}" = "AGENT_INJECT_CERT_FILE" ] + [ "${actual}" = "AGENT_INJECT_TLS_CERT_FILE" ] local actual=$(echo $object | yq -r '.[4].value' | tee /dev/stderr) @@ -126,7 +126,7 @@ load _helpers local actual=$(echo $object | yq -r '.[5].name' | tee /dev/stderr) - [ "${actual}" = "AGENT_INJECT_KEY_FILE" ] + [ "${actual}" = "AGENT_INJECT_TLS_KEY_FILE" ] local actual=$(echo $object | yq -r '.[5].value' | tee /dev/stderr)