From 9068a75c73dc8d56507e0aa370a089622d74f5fa Mon Sep 17 00:00:00 2001 From: wajihyassine Date: Fri, 5 Apr 2024 15:15:27 -0700 Subject: [PATCH] Remove VertexAPIKey for secret only --- charts/turbinia/templates/init-configmap.yaml | 5 ----- charts/turbinia/values.yaml | 6 +----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/charts/turbinia/templates/init-configmap.yaml b/charts/turbinia/templates/init-configmap.yaml index 92ffaf99..d347a6cb 100644 --- a/charts/turbinia/templates/init-configmap.yaml +++ b/charts/turbinia/templates/init-configmap.yaml @@ -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 diff --git a/charts/turbinia/values.yaml b/charts/turbinia/values.yaml index c2e5806a..3a3f4683 100644 --- a/charts/turbinia/values.yaml +++ b/charts/turbinia/values.yaml @@ -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: ""