-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate manifests for producation usage (#130)
* Generate manifests for producation usage * Multiple configuration options for Vault * Fix generator test * Fix generator test * Fix generator test * Fix generator test
- Loading branch information
Showing
52 changed files
with
788 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Generator test on pr | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, v2* ] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
actions: read | ||
security-events: write | ||
packages: write | ||
|
||
concurrency: | ||
group: ci-generator-${{ github.ref }}-1 | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
docker-compose: | ||
name: docker compose | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install Taskfile | ||
run: mkdir bin && cd bin ; curl -Ls https://github.com/go-task/task/releases/download/v3.13.0/task_linux_amd64.tar.gz | tar -xz task | ||
- uses: "finnp/create-file-action@master" | ||
env: | ||
FILE_NAME: "trousseau-env" | ||
FILE_DATA: | | ||
TR_VERBOSE_LEVEL=3 | ||
TR_ENABLED_PROVIDERS="--enabled-providers=awskms --enabled-providers=vault" | ||
TR_SOCKET_LOCATION=${PWD}/bin/run | ||
TR_PROXY_IMAGE=ondat/trousseau:proxy-develop | ||
TR_AWSKMS_IMAGE=ondat/trousseau:awskms-develop | ||
TR_VAULT_IMAGE=ondat/trousseau:vault-develop | ||
TR_TROUSSEAU_IMAGE=ondat/trousseau:trousseau-develop | ||
TR_AWSKMS_CREDENTIALS=${HOME}/.aws/credentials | ||
TR_AWSKMS_CONFIG=${PWD}/tests/e2e/kuttl/kube-v1.24/awskms.yaml | ||
TR_VAULT_CONFIG=${PWD}/tests/e2e/kuttl/kube-v1.24/vault.yaml | ||
- name: generate services | ||
run: PATH=./bin:$PATH ./bin/task prod:generate:docker-compose ENV_LOCATION=trousseau-env | ||
- name: validate compose files | ||
run: cd generated_manifests/docker-compose ; docker compose -f docker-compose.yaml -f docker-compose.override.awskms.yaml -f docker-compose.override.vault.yaml config | ||
kustomize: | ||
name: kustomize | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install Taskfile | ||
run: mkdir bin && cd bin ; curl -Ls https://github.com/go-task/task/releases/download/v3.13.0/task_linux_amd64.tar.gz | tar -xz task | ||
- uses: "finnp/create-file-action@master" | ||
env: | ||
FILE_NAME: "awskms.yaml" | ||
FILE_DATA: | | ||
profile: default | ||
- uses: "finnp/create-file-action@master" | ||
env: | ||
FILE_NAME: "trousseau-env" | ||
FILE_DATA: | | ||
TR_VERBOSE_LEVEL=3 | ||
TR_ENABLED_PROVIDERS="--enabled-providers=awskms --enabled-providers=vault" | ||
TR_SOCKET_LOCATION=${PWD}/bin/run | ||
TR_PROXY_IMAGE=ondat/trousseau:proxy-develop | ||
TR_AWSKMS_IMAGE=ondat/trousseau:awskms-develop | ||
TR_VAULT_IMAGE=ondat/trousseau:vault-develop | ||
TR_TROUSSEAU_IMAGE=ondat/trousseau:trousseau-develop | ||
TR_AWSKMS_CREDENTIALS=${HOME}/.aws/credentials | ||
TR_AWSKMS_CONFIG=${PWD}/tests/e2e/kuttl/kube-v1.24/awskms.yaml | ||
TR_VAULT_CONFIG=${PWD}/tests/e2e/kuttl/kube-v1.24/vault.yaml | ||
TR_VAULT_ADDRESS=http://127.0.0.1:8200 | ||
- name: generate services | ||
run: PATH=./bin:$PATH ./bin/task prod:generate:kustomize ENV_LOCATION=trousseau-env | ||
- uses: karancode/kustomize-github-action@master | ||
with: | ||
kustomize_version: '4.5.5' | ||
kustomize_build_dir: 'generated_manifests/kustomize' | ||
kustomize_output_file: "manifests.yaml" | ||
- uses: makocchi-git/actions-k8s-manifests-validate-kubeval@master | ||
with: | ||
files: manifests.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ bin | |
*.socket | ||
cover.out | ||
kind-logs-*/ | ||
kubeconfig | ||
kubeconfig | ||
generated_manifests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.