Skip to content

Commit

Permalink
Remove VertexAPIKey for secret only
Browse files Browse the repository at this point in the history
  • Loading branch information
wajihyassine committed Apr 5, 2024
1 parent ee4182e commit 9068a75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 0 additions & 5 deletions charts/turbinia/templates/init-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ data:
sed -i -e "s/^STACKDRIVER_TRACEBACK = .*$/STACKDRIVER_TRACEBACK = True/g" turbinia.conf
{{- end }}
{{- if and .Values.config.vertexAPIKey .Values.gcp.enabled }}
# Set up VertexAI API key
sed -i -e "s/^GCP_GENERATIVE_LANGUAGE_API_KEY = .*$/GCP_GENERATIVE_LANGUAGE_API_KEY = '{{ .Values.config.vertexAPIKey }}'/g" turbinia.conf
{{- end -}}
{{- if and .Values.config.existingVertexSecret .Values.gcp.enabled }}
# Set up VertexAI API key from secret key reference
sed -i -e "s/^GCP_GENERATIVE_LANGUAGE_API_KEY = .*$/GCP_GENERATIVE_LANGUAGE_API_KEY = '$VERTEX_APIKEY'/g" turbinia.conf
Expand Down
6 changes: 1 addition & 5 deletions charts/turbinia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,8 @@ config:
## @param config.disabledJobs List of Turbinia Jobs to disable. Overrides DISABLED_JOBS in the Turbinia config.
##
disabledJobs: "['BinaryExtractorJob', 'BulkExtractorJob', 'HindsightJob', 'PhotorecJob', 'VolatilityJob']"
## @param config.vertexAPIKey enables the Turbinia LLM Artifacts Analyzer using VertexAI.
## @param config.existingVertexSecret Name of existing secret containing Vertex API Key in order to enable the Turbinia LLM Artifacts Analyzer. The secret must contain the key `turbinia-vertexapi`
## Please see https://ai.google.dev/tutorials/setup to generate your own API key.
##
vertexAPIKey: ""
## @param config.existingVertexSecret Name of existing secret containing Vertex API Key. Must contain key `turbinia-vertexapi`
## When it's set, the `config.vertexAPIKey` parameter is ignored
## e.g. kubectl create secret generic turbinia-vertexapi-secret --from-literal=turbinia-vertexapi=VERTEX_API_KEY
##
existingVertexSecret: ""
Expand Down

0 comments on commit 9068a75

Please sign in to comment.