-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Schuetz <[email protected]>
- Loading branch information
Showing
8 changed files
with
109 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Test Scenarios | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
env: | ||
# renovate: datasource=github-tags depName=kudobuilder/kuttl | ||
KUTTL_VERSION: "v0.15.0" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
run-scenarios: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
|
||
- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b # v4 | ||
with: | ||
python-version: '3.9' | ||
check-latest: true | ||
|
||
- name: Download KUTTL | ||
run: | | ||
curl -fL https://github.com/kudobuilder/kuttl/releases/download/${{ env.KUTTL_VERSION }}/kubectl-kuttl_${KUTTL_VERSION#v}_linux_x86_64 -o kubectl-kuttl | ||
chmod +x kubectl-kuttl | ||
mv kubectl-kuttl /usr/local/bin | ||
- name: Set up chart-testing | ||
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0 | ||
|
||
- name: Cleanup Chart.lock for test | ||
run: rm charts/glasskube-operator/Chart.lock | ||
|
||
- name: Run chart-testing (lint) | ||
run: ct lint --validate-maintainers=false --check-version-increment=false --chart-dirs charts --target-branch ${{ github.event.repository.default_branch }} --all | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@d8ccf8fb623ce1bb360ae2f45f323d9d5c5e9f00 # v1.5.0 | ||
|
||
- name: Cleanup Chart.lock for test | ||
run: rm charts/glasskube-operator/Chart.lock | ||
|
||
- name: Run chart-testing (install) | ||
run: > | ||
ct install --chart-dirs charts --skip-clean-up --target-branch ${{ github.event.repository.default_branch }} --all | ||
--helm-extra-set-args '--set=cert-manager.enabled=true --set=mariadb-operator.enabled=true --set=cloudnative-pg.enabled=true --set=kube-prometheus-stack.enabled=true' | ||
- name: Run Tests | ||
working-directory: e2e | ||
run: make test |
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,4 +1,5 @@ | ||
/.gradle/ | ||
/**/build/ | ||
/.idea/ | ||
/e2e/kubeconfig | ||
/charts/*/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
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,3 @@ | ||
.PHONY: test | ||
test: | ||
kubectl kuttl test --start-kind=false ./kuttl --config=./kuttl/kuttl-test.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kuttl.dev/v1 | ||
kind: TestSuite | ||
testDirs: | ||
- ./test | ||
timeout: 400 | ||
skipDelete: true | ||
namespace: default |
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,27 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: matomo-matomo | ||
labels: | ||
app: matomo | ||
app.kubernetes.io/managed-by: glasskube-operator | ||
glasskube.eu/Matomo: matomo | ||
status: | ||
availableReplicas: 1 | ||
readyReplicas: 1 | ||
replicas: 1 | ||
updatedReplicas: 1 | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: matomo-matomo-mariadb | ||
status: | ||
availableReplicas: 1 | ||
currentReplicas: 1 | ||
readyReplicas: 1 | ||
replicas: 1 | ||
updatedReplicas: 1 | ||
|
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,6 @@ | ||
apiVersion: "glasskube.eu/v1alpha1" | ||
kind: Matomo | ||
metadata: | ||
name: matomo | ||
spec: | ||
host: matomo.minikube |