Skip to content

Commit c712780

Browse files
committed
use auth token in CI
1 parent c37cec9 commit c712780

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/chart-lint-test-release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ jobs:
5050
if: steps.list-changed.outputs.changed == 'true'
5151
uses: helm/kind-action@v1
5252

53+
- name: Create LocalStack auth token secret
54+
if: steps.list-changed.outputs.changed == 'true'
55+
# LocalStack requires an auth token for all installations
56+
# The LOCALSTACK_AUTH_TOKEN secret must be configured in the GitHub repository settings
57+
run: |
58+
kubectl create secret generic localstack-auth-token \
59+
--from-literal=auth-token="${{ secrets.LOCALSTACK_AUTH_TOKEN }}"
60+
5361
- name: Run chart-testing (install)
5462
if: steps.list-changed.outputs.changed == 'true'
5563
run: ct install --target-branch ${{ github.event.repository.default_branch }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# CI test values for chart-testing
2+
# This file is automatically used by the chart-testing tool during CI runs
3+
4+
# Enable debug mode for better test output
5+
debug: true
6+
7+
# Set DNS policy to avoid circular DNS issues in test environments
8+
dnsPolicy: "Default"
9+
10+
# Configure LocalStack auth token from a Kubernetes secret
11+
# The secret is created by the GitHub workflow before running tests
12+
extraEnvVars:
13+
- name: LOCALSTACK_AUTH_TOKEN
14+
valueFrom:
15+
secretKeyRef:
16+
name: localstack-auth-token
17+
key: auth-token
18+
19+
# Enable startup scripts to test initialization
20+
enableStartupScripts: true
21+
startupScriptContent: |
22+
#!/bin/bash
23+
awslocal sqs create-queue --queue-name test-queue

0 commit comments

Comments
 (0)