Skip to content

Commit

Permalink
chore(charts): fix testing install
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepentland committed Feb 29, 2024
1 parent 1a9462d commit 6570e50
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/chart_lint_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: |
cp testing-files/secret.yml charts/nx-cloud/templates/secret.yaml
cp testing-files/secret.yml charts/nx-agents/templates/secret.yaml
- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

# We copy this over on automated testing but for local we need to copy it in so ignore
# if someone forgets to delete before pushing
charts/nx-cloud/templates/secret.yml
charts/nx-cloud/templates/secret.yml
charts/nx-agents/templates/secret.yml
4 changes: 2 additions & 2 deletions charts/nx-agents/ci/basic-moreenv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ daemonset:
secret:
name: 'cloudsecret'
awsS3AccessKeyId: 'ABC123556'
awsS3SecretAccessKey: 'BBBAAA1234'
awsS3AccessKeyId: 'AWS_KEY'
awsS3SecretAccessKey: 'AWS_SECRET'
4 changes: 2 additions & 2 deletions charts/nx-agents/ci/basic-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ daemonset:
secret:
name: 'cloudsecret'
awsS3AccessKeyId: 'ABC123556'
awsS3SecretAccessKey: 'BBBAAA1234'
awsS3AccessKeyId: 'AWS_KEY'
awsS3SecretAccessKey: 'AWS_SECRET'
5 changes: 4 additions & 1 deletion testing-files/secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: cloudsecret
namespace: {{ .Values.global.namespace }}
type: Opaque
stringData:
NX_CLOUD_MONGO_SERVER_ENDPOINT: "mongodb://127.0.0.1"
Expand All @@ -17,4 +18,6 @@ stringData:
GITHUB_WEBHOOK_SECRET: "A_GITHUB_SECRET_VALUE"
GITHUB_AUTH_TOKEN: "A_GITHUB_SECRET_VALUE"
GITHUB_APP_PRIVATE_KEY: "A_GITHUB_SECRET_VALUE"
GITHUB_APP_ID: "A_GITHUB_SECRET_VALUE"
GITHUB_APP_ID: "A_GITHUB_SECRET_VALUE"
AWS_KEY: "MYAWSKEY"
AWS_SECRET: "SUPER_SECRET_AWS_SECRET"

0 comments on commit 6570e50

Please sign in to comment.