Skip to content

Commit 892cf6e

Browse files
authored
fix secret names (#1834)
Signed-off-by: Jose I. Paris <[email protected]>
1 parent bfa42fe commit 892cf6e

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

deployment/chainloop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Chainloop is an open source software supply chain control plane, a
77

88
type: application
99
# Bump the patch (not minor, not major) version on each change in the Chart Source code
10-
version: 1.184.0
10+
version: 1.184.1
1111
# Do not update appVersion, this is handled automatically by the release process
1212
appVersion: v0.166.0
1313

deployment/chainloop/templates/controlplane/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ spec:
160160
{{- end }}
161161
{{- if .Values.controlplane.keylessSigning.enabled }}
162162
{{- range $index, $backend := .Values.controlplane.keylessSigning.backends }}
163-
- name: sign-backend-{{$backend.type}}-{{$index}}
164-
mountPath: /sign_secrets_{{$backend.type}}_{{$index}}
163+
- name: sign-backend-{{$backend.type | lower}}-{{$index}}
164+
mountPath: /sign_secrets_{{$backend.type | lower}}_{{$index}}
165165
{{- end }}
166166
{{- end }}
167167
{{- if include "controlplane.tls-secret-name" . }}
@@ -230,9 +230,9 @@ spec:
230230
{{- end }}
231231
{{- if and .Values.controlplane.keylessSigning.enabled }}
232232
{{- range $index, $backend := .Values.controlplane.keylessSigning.backends }}
233-
- name: sign-backend-{{$backend.type}}-{{$index}}
233+
- name: sign-backend-{{$backend.type | lower}}-{{$index}}
234234
secrets:
235-
secretName: {{ include "chainloop.controlplane.fullname" $ }}-keyless-{{$backend.type}}-{{$index}}
235+
secretName: {{ include "chainloop.controlplane.fullname" $ }}-keyless-{{$backend.type | lower}}-{{$index}}
236236
{{- end }}
237237
{{- end }}
238238
{{- if .Values.controlplane.extraVolumes }}

deployment/chainloop/templates/controlplane/secret-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ stringData:
6161
{{- with $backend.fileCA }}
6262
- issuer: {{default false $backend.issuer }}
6363
file_ca:
64-
cert_path: "/sign_secrets_{{$backend.type}}_{{$index}}/file_ca.cert"
65-
key_path: "/sign_secrets_{{$backend.type}}_{{$index}}/file_ca.key"
64+
cert_path: "/sign_secrets_{{$backend.type | lower}}_{{$index}}/file_ca.cert"
65+
key_path: "/sign_secrets_{{$backend.type | lower}}_{{$index}}/file_ca.key"
6666
key_pass: "{{- required "FileCA keyPass is mandatory" .keyPass }}"
6767
{{- end }}
6868
{{- else if eq "ejbcaCA" $backend.type }}
6969
{{- with $backend.ejbcaCA }}
7070
- issuer: {{default false $backend.issuer}}
7171
ejbca_ca:
72-
cert_path: "/sign_secrets_{{$backend.type}}_{{$index}}/ejbca_client.cert"
73-
key_path: "/sign_secrets_{{$backend.type}}_{{$index}}/ejbca_client.key"
74-
root_ca_path: "/sign_secrets_{{$backend.type}}_{{$index}}/ejbca_ca.cert"
72+
cert_path: "/sign_secrets_{{$backend.type | lower}}_{{$index}}/ejbca_client.cert"
73+
key_path: "/sign_secrets_{{$backend.type | lower}}_{{$index}}/ejbca_client.key"
74+
root_ca_path: "/sign_secrets_{{$backend.type | lower}}_{{$index}}/ejbca_ca.cert"
7575
server_url: "{{- required "EJBCA server URL is mandatory" .serverURL }}"
7676
certificate_profile_name: "{{- required "EJBCA certificate profile name is mandatory" .certProfileName }}"
7777
end_entity_profile_name: "{{- required "EJBCA end entity profile name is mandatory" .endEntityProfileName }}"

deployment/chainloop/templates/controlplane/secrets-signer-ca.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SPDX-License-Identifier: APACHE-2.0
1010
apiVersion: v1
1111
kind: Secret
1212
metadata:
13-
name: {{ include "chainloop.controlplane.fullname" $ }}-keyless-{{$backend.type}}-{{$index}}
13+
name: {{ include "chainloop.controlplane.fullname" $ }}-keyless-{{$backend.type | lower}}-{{$index}}
1414
labels:
1515
{{- include "chainloop.controlplane.labels" $ | nindent 4 }}
1616
type: Opaque

0 commit comments

Comments
 (0)