Skip to content

Commit

Permalink
fix(helm): pass OAuth configuration variables on integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jvallesm committed Nov 8, 2024
1 parent a31a74a commit 64cf179
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/helm-integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
xk6 build v${{ env.K6_VERSION }} --with github.com/grafana/xk6-sql@v0.4.1 && sudo cp k6 /usr/bin
- name: Launch Helm Instill Core (${{ inputs.target }})
# Dummy GitHub OAuth configuration variables are inserted on
# `pipeline-backend` because tests in this service rely on the
# integration to be configured.
run: |
if [ "${{ inputs.target }}" == "latest" ]; then
helm install core charts/core --namespace instill-ai --create-namespace \
Expand All @@ -60,6 +63,10 @@ jobs:
--set apiGateway.image.tag=latest \
--set mgmtBackend.image.tag=latest \
--set pipelineBackend.image.tag=latest \
--set 'pipelineBackend.extraEnv[0].name=CFG_COMPONENT_SECRETS_GITHUB_OAUTHCLIENTID' \
--set 'pipelineBackend.extraEnv[0].value=dummy' \
--set 'pipelineBackend.extraEnv[1].name=CFG_COMPONENT_SECRETS_GITHUB_OAUTHCLIENTSECRET' \
--set 'pipelineBackend.extraEnv[1].value=dummy' \
--set modelBackend.image.tag=latest \
--set console.image.tag=latest \
--set rayService.image.tag=latest \
Expand Down Expand Up @@ -90,6 +97,10 @@ jobs:
--set mgmtBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
--set pipelineBackend.image.tag=${PIPELINE_BACKEND_VERSION} \
--set pipelineBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
--set 'pipelineBackend.extraEnv[0].name=CFG_COMPONENT_SECRETS_GITHUB_OAUTHCLIENTID' \
--set 'pipelineBackend.extraEnv[0].value=dummy' \
--set 'pipelineBackend.extraEnv[1].name=CFG_COMPONENT_SECRETS_GITHUB_OAUTHCLIENTSECRET' \
--set 'pipelineBackend.extraEnv[1].value=dummy' \
--set modelBackend.instillCoreHost=http://${INSTILL_CORE_HOST}:${API_GATEWAY_PORT} \
--set modelBackend.image.tag=${MODEL_BACKEND_VERSION} \
--set console.image.tag=${CONSOLE_VERSION} \
Expand Down

0 comments on commit 64cf179

Please sign in to comment.