Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #324 from spiffe/enable-testing-multiple-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Jul 19, 2023
2 parents a4c1de7 + e426bc0 commit 94a2b72
Show file tree
Hide file tree
Showing 57 changed files with 404 additions and 489 deletions.
1 change: 1 addition & 0 deletions .github/kind/conf/kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ kubeadmConfigPatches:
# admission-control-config-file: /etc/kubernetes/pki/admctrl/admission-control.yaml
nodes:
- role: control-plane
- role: worker
9 changes: 9 additions & 0 deletions .github/scripts/parse-versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

TESTS_PATH="$(dirname "${BASH_SOURCE[0]}")/../tests"

# Set repo and version env variables
REPOS=$(jq -r '.[] | "export " + ("HELM_REPO_" + .name | ascii_upcase | gsub("-";"_")) + "=" + .repo' "${TESTS_PATH}/charts.json")
VERSIONS=$(jq -r '.[] | "export " + ("VERSION_" + .name | ascii_upcase | gsub("-";"_")) + "=" + .version' "${TESTS_PATH}/charts.json")
eval "$REPOS"
eval "$VERSIONS"
6 changes: 0 additions & 6 deletions .github/tests/charts.sh

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ primary:
drop: [ALL]
seccompProfile:
type: RuntimeDefault
auth:
database: spire-server
username: spire
password: sp1ff3Test
rootPassword: sp1ff3TestPassword
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ primary:
drop: [ALL]
seccompProfile:
type: RuntimeDefault
auth:
database: spire-server
username: spire
password: sp1ff3Test
postgresPassword: sp1ff3TestPassword
17 changes: 0 additions & 17 deletions .github/tests/extras/post-install.sh

This file was deleted.

17 changes: 0 additions & 17 deletions .github/tests/federation-bundle-endpoint/post-install.sh

This file was deleted.

19 changes: 0 additions & 19 deletions .github/tests/namespace-override/post-install.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .github/tests/namespace-override/pre-install.sh

This file was deleted.

17 changes: 0 additions & 17 deletions .github/tests/no-spire-controller-manager/post-install.sh

This file was deleted.

11 changes: 11 additions & 0 deletions .github/tests/post-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -x

SCRIPT="$(readlink -f "$0")"
SCRIPTPATH="$(dirname "${SCRIPT}")"

# shellcheck source=/dev/null
source "${SCRIPTPATH}/common.sh"

print_helm_releases
49 changes: 49 additions & 0 deletions .github/tests/pre-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/env bash

set -xe

SCRIPT="$(readlink -f "$0")"
SCRIPTPATH="$(dirname "${SCRIPT}")"
DEPS="${SCRIPTPATH}/dependencies"

# shellcheck source=/dev/null
source "${SCRIPTPATH}/../scripts/parse-versions.sh"

helm_install=(helm upgrade --install --create-namespace)

# namespace override
kubectl create namespace spire-system || true
kubectl create namespace spire-server || true

# nginx ingress
"${helm_install[@]}" ingress-nginx ingress-nginx --version "${VERSION_INGRESS_NGINX}" --repo "${HELM_REPO_INGRESS_NGINX}" \
--namespace ingress-nginx \
--set controller.extraArgs.enable-ssl-passthrough=
kubectl wait --namespace ingress-nginx --for=condition=ready --timeout 60s pod --selector=app.kubernetes.io/component=controller

# prometheus
"${helm_install[@]}" kube-prometheus-stack kube-prometheus-stack \
--namespace prometheus \
--version "${VERSION_KUBE_PROMETHEUS_STACK}" \
--repo "${HELM_REPO_KUBE_PROMETHEUS_STACK}" \
--wait

# cert-manager
"${helm_install[@]}" cert-manager cert-manager --version "$VERSION_CERT_MANAGER" --repo "$HELM_REPO_CERT_MANAGER" \
--namespace cert-manager \
--set installCRDs=true \
--wait

# external database

# mysql
"${helm_install[@]}" mysql mysql --version "$VERSION_MYSQL" --repo "$HELM_REPO_MYSQL" \
--namespace mysql \
--values "${DEPS}/mysql.yaml" \
--wait

# postgres
"${helm_install[@]}" postgresql postgresql --version "$VERSION_POSTGRESQL" --repo "$HELM_REPO_POSTGRESQL" \
--namespace postgresql \
--values "${DEPS}/postgresql.yaml" \
--wait
13 changes: 0 additions & 13 deletions .github/tests/production-example/install.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/tests/production-example/post-install.sh

This file was deleted.

6 changes: 0 additions & 6 deletions .github/tests/production-example/pre-install.sh

This file was deleted.

44 changes: 0 additions & 44 deletions .github/tests/production-external-mysql/install.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/tests/production-external-mysql/post-install.sh

This file was deleted.

6 changes: 0 additions & 6 deletions .github/tests/production-external-mysql/pre-install.sh

This file was deleted.

46 changes: 0 additions & 46 deletions .github/tests/production-external-postgresql/install.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/tests/production-external-postgresql/post-install.sh

This file was deleted.

6 changes: 0 additions & 6 deletions .github/tests/production-external-postgresql/pre-install.sh

This file was deleted.

17 changes: 0 additions & 17 deletions .github/tests/prometheus/post-install.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .github/tests/prometheus/pre-install.sh

This file was deleted.

Loading

0 comments on commit 94a2b72

Please sign in to comment.