Skip to content

Commit

Permalink
feat: add ability to use an existing secret
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Jun 14, 2024
1 parent 98ee8ea commit 7f0c309
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ spec:
subPath: config.ini
envFrom:
- secretRef:
{{- if .Values.falcon.existingSecret }}
name: {{ .Values.falcon.existingSecret }}
{{- else }}
name: {{ include "falcon-integration-gateway.fullname" . }}-creds
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
command:
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/falcon-integration-gateway/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.falcon.existingSecret -}}
apiVersion: v1
kind: Secret
type: Opaque
Expand Down Expand Up @@ -26,3 +27,4 @@ data:
{{- if .Values.push.vmware_workspace_one.enabled }}
WORKSPACEONE_TOKEN: {{ .Values.push.vmware_workspace_one.token | b64enc }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions helm-charts/falcon-integration-gateway/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
"us-gov-1"
]
},
"existingSecret": {
"type": "string"
},
"integration_gateway": {
"type": "object",
"properties": {
Expand Down
5 changes: 5 additions & 0 deletions helm-charts/falcon-integration-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ falcon:
client_secret:
cloud_region:

# Use this value if you have an existing secret
# defined in your k8s that may contain secrets
# for falcon api client id and pw
existingSecret: ""

integration_gateway:
# Configure number of threads that process Falcon Events
worker_threads: 4
Expand Down

0 comments on commit 7f0c309

Please sign in to comment.