Rebase all into one commit. I should have used a branch
All checks were successful
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 28s

Trying out a readiness check

Added init-container for dind

Use a more graceful netcat command

Slimmed some things down

Added docker cli and use that for its readiness check

fix: unittest

Added parameter for deploying multiple runners

Fix unittest job

remove reference nc command

remove reference in unittest again

Trying to fix unittests

Passing unit tests

readme update

readme making using pnpm
This commit is contained in:
2025-07-23 12:26:46 +02:00
parent 75bf520697
commit daf69e1ad7
7 changed files with 38 additions and 33 deletions

View File

@@ -60,7 +60,7 @@ tests:
asserts:
- hasDocuments:
count: 0
- it: renders a Job with correct nc command
- it: renders a Job with correct wget wait command
template: templates/job.yaml
set:
enabled: true
@@ -83,6 +83,7 @@ tests:
- equal:
path: spec.template.spec.initContainers[0].command[2]
value: |
while ! nc -z git.example.com 8443; do
sleep 5
echo 'Waiting for gitea...'
while ! wget -qO- https://git.example.com:8443 > /dev/null; do
sleep 2
done

View File

@@ -73,7 +73,7 @@ tests:
- it: renders a StatefulSet http (with correct GITEA_INSTANCE_URL env from giteaRootURL)
template: templates/statefulset.yaml
set:
giteaRootURL: "http://git.example.com"
giteaRootURL: "https://git.example.com"
enabled: true
existingSecret: "my-secret"
existingSecretKey: "my-secret-key"
@@ -88,12 +88,13 @@ tests:
path: spec.template.spec.containers[0].env[4]
value:
name: GITEA_INSTANCE_URL
value: "http://git.example.com"
value: "https://git.example.com"
- equal:
path: spec.template.spec.initContainers[0].command[2]
value: |
while ! nc -z git.example.com 80; do
sleep 5
echo 'Waiting for gitea...'
while ! wget -qO- https://git.example.com > /dev/null; do
sleep 2
done
- it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL)
template: templates/statefulset.yaml
@@ -117,13 +118,14 @@ tests:
- equal:
path: spec.template.spec.initContainers[0].command[2]
value: |
while ! nc -z git.example.com 443; do
sleep 5
echo 'Waiting for gitea...'
while ! wget -qO- https://git.example.com > /dev/null; do
sleep 2
done
- it: renders a StatefulSet https (with correct GITEA_INSTANCE_URL env from giteaRootURL)
template: templates/statefulset.yaml
set:
giteaRootURL: "https://git.example.com:8443"
giteaRootURL: "https://git.example.com"
enabled: true
existingSecret: "my-secret"
existingSecretKey: "my-secret-key"
@@ -138,12 +140,13 @@ tests:
path: spec.template.spec.containers[0].env[4]
value:
name: GITEA_INSTANCE_URL
value: "https://git.example.com:8443"
value: "https://git.example.com"
- equal:
path: spec.template.spec.initContainers[0].command[2]
value: |
while ! nc -z git.example.com 8443; do
sleep 5
echo 'Waiting for gitea...'
while ! wget -qO- https://git.example.com > /dev/null; do
sleep 2
done
- it: allows adding custom environment variables to the docker-in-docker container
template: templates/statefulset.yaml