-
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.
feat!: migration to cmak-docker for cmak image
- Loading branch information
1 parent
e53864e
commit deea757
Showing
28 changed files
with
2,156 additions
and
4,253 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,9 +1,11 @@ | ||
venv | ||
.venv | ||
*.json | ||
*.yaml | ||
.github | ||
.git | ||
*.adoc | ||
*.md | ||
.editorconfig | ||
.gitignore | ||
.helmignore | ||
justfile |
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,8 +14,3 @@ indent_size = 4 | |
[*.md] | ||
max_line_length = 120 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
|
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 |
---|---|---|
|
@@ -5,3 +5,5 @@ node_modules | |
.idea | ||
values-dev.yaml | ||
__pycache__ | ||
.venv | ||
|
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
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 |
---|---|---|
@@ -1,31 +1,57 @@ | ||
@test: test-lint test-unit | ||
export E2E_TEST := "default" | ||
|
||
@test-e2e: | ||
helm test cmak-operator --logs | ||
default: | ||
@just --list | ||
|
||
@test-lint: | ||
test-lint: | ||
./test/linter/test.sh | ||
echo | ||
echo ======================= | ||
echo = LINTER TESTS PASSED = | ||
echo ======================= | ||
|
||
@test-unit: | ||
test-unit: | ||
helm plugin ls | grep unittest || helm plugin install https://github.com/quintush/helm-unittest | ||
helm unittest -f 'test/unit/*.yaml' -3 . | ||
echo | ||
echo ===================== | ||
echo = UNIT TESTS PASSED = | ||
echo ===================== | ||
|
||
@_skaffold-ctx: | ||
skaffold config set default-repo localhost:5000 | ||
test: test-lint test-unit | ||
|
||
_skaffold-ctx: | ||
skaffold config set default-repo localhost:5000 | ||
|
||
# (re) create local k8s cluster using k3d | ||
@k3d: && _skaffold-ctx | ||
k3d cluster create --config ./test/e2e/k3d.yaml | ||
kubectl apply -f test/e2e/kafka.yaml | ||
k3d: && _skaffold-ctx | ||
k3d cluster rm cmak-operator || true | ||
k3d cluster create --config ./test/e2e/k3d.yaml | ||
sleep 15 | ||
|
||
# install into local k8s | ||
up: _skaffold-ctx down | ||
skaffold run | ||
|
||
# remove from local k8s | ||
down: | ||
skaffold delete || true | ||
|
||
_chk-py: | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
if [ ! -d .venv ]; then | ||
python3 -mvenv .venv | ||
pip3 install -r test/e2e/requirements.txt | ||
fi | ||
# run only e2e test script | ||
test-e2e-sh: _chk-py | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
source .venv/bin/activate | ||
pytest --capture=tee-sys test/e2e/{{E2E_TEST}}/test.py | ||
# run single e2e test | ||
test-e2e: up test-e2e-sh | ||
|
||
# deploy chart to local k8s | ||
@up: _skaffold-ctx | ||
skaffold run |
Oops, something went wrong.