-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SLK-88407 Scanner additional cert fix (#919)
* Initial commit * Testing new label context * Updates * Finalising PR * Bumping chart version * Bumping changes in README
- Loading branch information
1 parent
0974c02
commit a8d6358
Showing
5 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
{{ $relname := .Release.Namespace }} | ||
{{ $relName := .Release.Name }} | ||
{{ $relNamespace := .Release.Namespace }} | ||
{{- range $i, $cert := .Values.additionalCerts }} | ||
{{- if $cert.createSecret }} | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ $cert.secretName }} | ||
namespace: {{ $relname }} | ||
namespace: {{ $relNamespace }} | ||
labels: | ||
app: {{ .Release.Name }}-scanner | ||
app: {{ $relName }}-scanner | ||
aqua.component: scanner | ||
{{ include "aqua.labels" . | indent 4 }} | ||
{{ include "aqua.labels" $ | indent 4 }} | ||
data: | ||
cert.pem: {{ $cert.certFile }} | ||
cert.pem: {{ $cert.certFile | b64enc | quote }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters