This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ergon/airlock-helm-charts
- Loading branch information
Showing
10 changed files
with
137 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
helm-extra-args: --timeout 300s | ||
check-version-increment: false | ||
charts: charts/microgateway | ||
debug: true | ||
namespace: validation-namespace | ||
release-label: release | ||
chart-repos: | ||
namespace: default | ||
release-label: app.kubernetes.io/instance | ||
chart-repos: | ||
- bitnami=https://charts.bitnami.com/bitnami | ||
- ealenn=https://ealenn.github.io/charts |
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 |
---|---|---|
|
@@ -4,24 +4,15 @@ on: | |
pull_request: | ||
paths: | ||
- 'charts/**' | ||
- '.github/workflows/ci.yaml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint-chart: | ||
generate-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Run chart-testing (lint) | ||
uses: helm/chart-testing-action@master | ||
with: | ||
command: lint | ||
config: .github/ct.yaml | ||
lint-docs: | ||
runs-on: ubuntu-latest | ||
needs: lint-chart | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
- name: Install helm-docs | ||
run: .github/helm-docs-install.sh | ||
env: | ||
|
@@ -39,14 +30,13 @@ jobs: | |
kubeval-chart: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- lint-chart | ||
- lint-docs | ||
- generate-docs | ||
strategy: | ||
matrix: | ||
k8s: | ||
- v1.16.4 | ||
- v1.17.2 | ||
- v1.18.2 | ||
- v1.18.15 | ||
- v1.19.7 | ||
- v1.20.2 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
@@ -57,39 +47,36 @@ jobs: | |
install-chart: | ||
name: install-chart | ||
runs-on: ubuntu-latest | ||
env: | ||
_v_namespace: validation-namespace | ||
needs: | ||
- lint-chart | ||
- lint-docs | ||
- kubeval-chart | ||
strategy: | ||
matrix: | ||
k8s: | ||
- v1.16.4 | ||
- v1.17.2 | ||
- v1.18.2 | ||
- v1.18.15 | ||
- v1.19.7 | ||
- v1.20.2 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: v3.4.0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
- name: Run chart-testing (lint) | ||
run: ct lint --config .github/ct.yaml | ||
- name: Create kind ${{ matrix.k8s }} cluster | ||
uses: helm/kind-action@master | ||
uses: helm/kind-action@v1.0.0 | ||
with: | ||
node_image: kindest/node:${{ matrix.k8s }} | ||
- name: Create Secrets | ||
run: | | ||
kubectl cluster-info | ||
kubectl get pods -n kube-system | ||
echo "current-context:" $(kubectl config current-context) | ||
kubectl create namespace $_v_namespace | ||
kubectl create secret docker-registry dockersecret --docker-username=${{ secrets.DOCKER_USER }} --docker-password=${{ secrets.DOCKER_USER_TOKEN }} --namespace $_v_namespace | ||
echo "${{ secrets.WAF_LICENSE }}" >> tmplicense.txt | ||
echo "${{ secrets.WAF_PASSPHRASE }}" >> tmppassphrase.txt | ||
kubectl create secret generic microgatewaysecrets --from-file=license=tmplicense.txt --from-file=passphrase=tmppassphrase.txt --namespace $_v_namespace | ||
kubectl describe secret dockersecret --namespace $_v_namespace | ||
kubectl describe secret microgatewaysecrets --namespace $_v_namespace | ||
kubectl create secret docker-registry dockersecret --docker-username=${{ secrets.DOCKER_USER }} --docker-password=${{ secrets.DOCKER_USER_TOKEN }} | ||
kubectl create secret generic microgatewaysecrets --from-literal=license="${{ secrets.WAF_LICENSE }}" --from-literal=passphrase="${{ secrets.WAF_PASSPHRASE }}" | ||
- name: Run chart-testing (install) | ||
uses: helm/chart-testing-action@master | ||
with: | ||
command: install | ||
config: .github/ct.yaml | ||
run: ct install --config .github/ct.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 |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
- master | ||
paths: | ||
- 'charts/**/Chart.yaml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
|
@@ -17,7 +18,17 @@ jobs: | |
run: | | ||
git config user.name "'${{ secrets.TECHNICAL_USER }}'" | ||
git config user.email "'${{ secrets.TECHNICAL_USER }}'@users.noreply.github.com" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: v3.4.0 | ||
- name: Add Helm Repo | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo add ealenn https://ealenn.github.io/charts | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@master | ||
uses: helm/[email protected] | ||
with: | ||
config: .github/ct.yaml | ||
env: | ||
CR_TOKEN: '${{ secrets.TECHNICAL_USER_TOKEN }}' |
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,3 @@ | ||
helm-docs: | ||
@echo --- Generating Chart READMEs | ||
@docker run --rm -v $$(pwd):/helm-docs -u $$(id -u) jnorwood/helm-docs:v0.13.0 |
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 |
---|---|---|
|
@@ -14,5 +14,5 @@ maintainers: | |
- email: [email protected] | ||
name: Airlock | ||
name: microgateway | ||
version: 0.6.0 | ||
appVersion: 1.0 | ||
version: 0.6.3 | ||
appVersion: "1.0" |
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.