Skip to content

Commit

Permalink
Merge pull request #96 from guipal/main
Browse files Browse the repository at this point in the history
Conditional generation of secret
  • Loading branch information
szEvEz authored Jan 13, 2025
2 parents 8235513 + ef7b00a commit ca26926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion charts/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if .Values.defectDojoApiCredentials.createSecret }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -9,4 +10,5 @@ stringData:
| quote }}
url: {{ required "defectDojoApiCredentials.url is required" .Values.defectDojoApiCredentials.url
| quote }}
type: Opaque
type: Opaque
{{ end }}
1 change: 1 addition & 0 deletions charts/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
defectDojoApiCredentials:
createSecret: true
apiKey: "YOUR_DEFECTDOJO_API_KEY"
url: "YOUR_DEFECTDOJO_URL"
kubernetesClusterDomain: cluster.local
Expand Down

0 comments on commit ca26926

Please sign in to comment.