adeploy 1.3.1__tar.gz → 1.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adeploy-1.3.1 → adeploy-1.3.2}/.gitignore +1 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/PKG-INFO +2 -1
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/helm/index.md +25 -9
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/jinja/index.md +22 -11
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/usage.md +39 -9
- adeploy-1.3.2/examples/helm/001-quickstart/build/helm/playground/hello-world/prod/manifest.yml +75 -0
- adeploy-1.3.2/examples/helm/001-quickstart/build/helm/playground/hello-world/prod/values.yml +19 -0
- adeploy-1.3.2/examples/helm/001-quickstart/namespaces/playground/prod/000-common.yml +2 -0
- adeploy-1.3.2/examples/helm/001-quickstart/namespaces/playground/prod/010-service-account.yml +3 -0
- adeploy-1.3.2/examples/jinja/001-general-structure/namespaces/playground/prod/000-common.yml +5 -0
- adeploy-1.3.1/examples/jinja/001-general-structure/namespaces/playground/prod.yml → adeploy-1.3.2/examples/jinja/001-general-structure/namespaces/playground/prod/010-nginx.yml +2 -5
- {adeploy-1.3.1 → adeploy-1.3.2}/pyproject.toml +2 -1
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/deployment.py +33 -22
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/provider.py +95 -50
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy.egg-info/PKG-INFO +2 -1
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy.egg-info/SOURCES.txt +10 -2
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy.egg-info/requires.txt +1 -0
- adeploy-1.3.2/src/adeploy.egg-info/scm_file_list.json +241 -0
- adeploy-1.3.2/src/adeploy.egg-info/scm_version.json +8 -0
- adeploy-1.3.2/tests/test_release_fragments.py +93 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/uv.lock +107 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/.awesome.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/.gitlab-ci.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/DEVELOP.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/LICENSE +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/css/asciinema-player.css +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/css/badges.css +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/css/docstrings.css +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/css/footer.css +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/download.sh +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/img/awesome-logo.png +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/js/asciinema-init.js +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/assets/js/asciinema-player.min.js +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/_more.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/filters.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/functions.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/includes.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/index.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/labels.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/macros.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/probes.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/resource-limits.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/common/secrets.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/helm/helm-deploy.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/helm/helm-render.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/helm/helm-test.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/helm/hooks.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/helm.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/hooks/asciinema.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/hooks/badges.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/index.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/install.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/jinja/jinja-deploy.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/jinja/jinja-render.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/jinja/jinja-test.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/jinja.cast +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/docs/overrides/partials/copyright.html +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/.exclude-from-test +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/.helmignore +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/Chart.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/templates/NOTES.txt +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/templates/_helpers.tpl +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/templates/deployment.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/templates/service.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/templates/serviceaccount.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/charts/hello-world/values.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/playground/hello-world/test/manifest.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/build/helm/playground/hello-world/test/values.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/001-quickstart/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/.helmignore +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/Chart.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/templates/NOTES.txt +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/templates/_helpers.tpl +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/templates/deployment.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/templates/service.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/templates/serviceaccount.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/charts/hello-world/values.yaml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/playground/hello-world/test/manifest.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/build/helm/playground/hello-world/test/values.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/hooks/patch.sh +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/hooks/patches.d/001-add-env.patch +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/helm/002-hooks/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/.exclude-from-test +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/build/jinja/playground/001-general-structure/prod/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/build/jinja/playground/001-general-structure/prod/job.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/build/jinja/playground/001-general-structure/test/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/build/jinja/playground/001-general-structure/test/job.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/templates/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/001-general-structure/templates/job.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/build/jinja/002-secrets/secrets/playground/prod/secret-7e33ba97416ba4d45b6ce4c6c68b6aace36eacc5 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/build/jinja/002-secrets/secrets/playground/prod/secret-e5e0c551a537d65bcea7c18eb47badaf9c09c349 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/build/jinja/002-secrets/secrets/playground/test/secret-7929a442fae0ceee9eef9558a9a2ef02cc9d4421 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/build/jinja/002-secrets/secrets/playground/test/secret-f310a9ad786b3fb5f7160436346e69795693b951 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/build/jinja/playground/002-secrets/prod/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/build/jinja/playground/002-secrets/test/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/namespaces/playground/prod.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/namespaces/playground/secrets/my_secret_prod +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/namespaces/playground/secrets/my_secret_test +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets/templates/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/002-secrets-ingress/secrets/playground/prod/secret-6e1adb2c4c075e35335e851dd6ebc5f0f7397a80 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/002-secrets-ingress/secrets/playground/prod/secret-7e33ba97416ba4d45b6ce4c6c68b6aace36eacc5 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/002-secrets-ingress/secrets/playground/prod/secret-e5e0c551a537d65bcea7c18eb47badaf9c09c349 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/002-secrets-ingress/secrets/playground/test/secret-7929a442fae0ceee9eef9558a9a2ef02cc9d4421 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/002-secrets-ingress/secrets/playground/test/secret-dcf2a6e7bd78ee395f73f6434b19a9044790c00a +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/002-secrets-ingress/secrets/playground/test/secret-f310a9ad786b3fb5f7160436346e69795693b951 +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/playground/002-secrets-ingress/prod/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/playground/002-secrets-ingress/prod/ingress.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/playground/002-secrets-ingress/test/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/build/jinja/playground/002-secrets-ingress/test/ingress.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/prod.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/secrets/domain_prod/mydomain.com.crt +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/secrets/domain_prod/mydomain.com.key +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/secrets/domain_test/mydomain.com.crt +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/secrets/domain_test/mydomain.com.key +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/secrets/my_secret_prod +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/secrets/my_secret_test +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/templates/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/002-secrets-ingress/templates/ingress.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/build/jinja/playground/003-include/prod/common/configmap.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/build/jinja/playground/003-include/prod/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/build/jinja/playground/003-include/prod/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/build/jinja/playground/003-include/test/common/configmap.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/build/jinja/playground/003-include/test/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/build/jinja/playground/003-include/test/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/namespaces/playground/prod.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/common/__affinity.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/common/__env.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/common/configmap.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/files/conf.d/alpha.json +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/files/conf.d/beta.json +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/files/nginx.conf +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/003-include/templates/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/build/jinja/playground/004-probes/prod/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/build/jinja/playground/004-probes/prod/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/build/jinja/playground/004-probes/test/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/build/jinja/playground/004-probes/test/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/namespaces/playground/prod.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/templates/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/004-probes/templates/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/005-labels/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/005-labels/build/jinja/playground/005-labels/prod/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/005-labels/build/jinja/playground/005-labels/test/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/005-labels/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/005-labels/namespaces/playground/prod.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/005-labels/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/005-labels/templates/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/006-nested-labels/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/006-nested-labels/build/jinja/playground/006-nested-labels/prod/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/006-nested-labels/build/jinja/playground/006-nested-labels/test/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/006-nested-labels/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/006-nested-labels/namespaces/playground/prod.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/006-nested-labels/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/006-nested-labels/templates/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/build/jinja/playground/007-resources/prod/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/build/jinja/playground/007-resources/prod/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/build/jinja/playground/007-resources/test/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/build/jinja/playground/007-resources/test/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/defaults.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/namespaces/playground/prod.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/namespaces/playground/test.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/templates/nginx/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/examples/jinja/007-resources/templates/redis/deployment.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/mkdocs.yml +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/setup.cfg +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/__main__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/args.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/colors.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/errors.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/helpers.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/jinja/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/jinja/dict.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/jinja/env.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/jinja/filters.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/jinja/globals.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/kubectl.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/logging.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets/docker_registry_secret.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets/generic_secret.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets/secret.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets/tls_secret.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets_provider/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets_provider/gopass_provider.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets_provider/plaintext_provider.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets_provider/provider.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets_provider/random_provider.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/secrets_provider/shell_command_provider.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/version.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/yaml/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/yaml/find.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/yaml/labels.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/yaml/probes.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/yaml/resources.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/common/yaml/update.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/main.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/common/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/common/helm.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/common/helm_output.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/common/helm_provider.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/deployer.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/renderer.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/tester.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/helm/watcher.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/jinja/README.md +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/jinja/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/jinja/deployer.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/jinja/renderer.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/jinja/tester.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/providers/jinja/watcher.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/steps/__init__.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/steps/config.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/steps/deploy.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/steps/render.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/steps/test.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy/steps/watch.py +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy.egg-info/dependency_links.txt +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy.egg-info/entry_points.txt +0 -0
- {adeploy-1.3.1 → adeploy-1.3.2}/src/adeploy.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adeploy
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Universal deployment tool for Kubernetes that supports rendering and deployment of lightweight Jinja templated k8s manifests as well as complex Helm charts.
|
|
5
5
|
Author-email: Daniel Morlock <daniel.morlock@awesome-it.de>, Daniel Bross <daniel.bross@awesome-it.de>, Adrian Vielsack <adrian.vielsack@awesome-it.de>, Philip Flohr <philip.flohr@awesome-it.de>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -28,6 +28,7 @@ Requires-Dist: mkdocs; extra == "dev"
|
|
|
28
28
|
Requires-Dist: mkdocs-material; extra == "dev"
|
|
29
29
|
Requires-Dist: beautifulsoup4; extra == "dev"
|
|
30
30
|
Requires-Dist: mkdocstrings[python]; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest<9,>=8; extra == "dev"
|
|
31
32
|
Dynamic: license-file
|
|
32
33
|
|
|
33
34
|
# adeploy
|
|
@@ -5,8 +5,10 @@ release `test` in the namespace `playground` using `adeploy`, create the basic r
|
|
|
5
5
|
|
|
6
6
|
``` { .bash .copy }
|
|
7
7
|
mkdir hello-world && cd hello-world
|
|
8
|
-
mkdir -p namespaces/playground
|
|
9
|
-
touch defaults.yml namespaces/playground/test.yml
|
|
8
|
+
mkdir -p namespaces/playground/prod
|
|
9
|
+
touch defaults.yml namespaces/playground/test.yml \
|
|
10
|
+
namespaces/playground/prod/000-common.yml \
|
|
11
|
+
namespaces/playground/prod/010-service-account.yml
|
|
10
12
|
```
|
|
11
13
|
|
|
12
14
|
## Default Variables
|
|
@@ -32,17 +34,31 @@ Add the Helm Chart repo, the Chart version and default variables to configure th
|
|
|
32
34
|
```
|
|
33
35
|
## Namespace/Release Configuration
|
|
34
36
|
|
|
35
|
-
In the next step, the namespace and the release of the deployment must be defined by creating
|
|
36
|
-
configuration
|
|
37
|
+
In the next step, the namespace and the release of the deployment must be defined by creating namespace/release
|
|
38
|
+
configuration. You can use the legacy single file form `namespaces/<namespace>/<release>.yml` or split one release into
|
|
39
|
+
multiple ordered files below `namespaces/<namespace>/<release>/`.
|
|
37
40
|
|
|
38
|
-
For the namespace `playground
|
|
41
|
+
For the namespace `playground`, this example keeps `test` as a single file and adds a split `prod` release:
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
===+ "`test.yml`"
|
|
44
|
+
``` { .yaml title="namespaces/playground/test.yml"}
|
|
45
|
+
--8<-- "examples/helm/001-quickstart/namespaces/playground/test.yml"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
=== "`prod/000-common.yml`"
|
|
49
|
+
``` { .yaml title="namespaces/playground/prod/000-common.yml"}
|
|
50
|
+
--8<-- "examples/helm/001-quickstart/namespaces/playground/prod/000-common.yml"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
=== "`prod/010-service-account.yml`"
|
|
54
|
+
``` { .yaml title="namespaces/playground/prod/010-service-account.yml"}
|
|
55
|
+
--8<-- "examples/helm/001-quickstart/namespaces/playground/prod/010-service-account.yml"
|
|
56
|
+
```
|
|
43
57
|
|
|
44
58
|
Note that the namespace/release configuration will be rendered using Jinja. So you can use the variables from
|
|
45
59
|
`defaults.yml`, [Jinja native macros and filters](https://jinja.palletsprojects.com/) and the [Jinja macros, filters and functions provided by `adeploy`](../common/index.md).
|
|
60
|
+
If you use a release directory, files are rendered and merged in lexicographic order. In the example above,
|
|
61
|
+
`010-service-account.yml` can use `service_account_name` from `000-common.yml`.
|
|
46
62
|
|
|
47
63
|
|
|
48
64
|
## Render
|
|
@@ -114,4 +130,4 @@ Helm is internally invoked using `helm uprade --install`, so `adeploy -p helm de
|
|
|
114
130
|
Have a look at the advanced topics like [hooks](hooks.md) about how to use `adeploy` for patching upstream Helm
|
|
115
131
|
deployments.
|
|
116
132
|
|
|
117
|
-
--8<-- "docs/common/_more.md"
|
|
133
|
+
--8<-- "docs/common/_more.md"
|
|
@@ -5,8 +5,10 @@ create the basic repository structure as follows:
|
|
|
5
5
|
|
|
6
6
|
``` { .bash .copy }
|
|
7
7
|
mkdir my-deployment && cd my-deployment
|
|
8
|
-
mkdir -p namespaces/playground
|
|
9
|
-
touch defaults.yml namespaces/playground/test.yml
|
|
8
|
+
mkdir -p namespaces/playground/prod
|
|
9
|
+
touch defaults.yml namespaces/playground/test.yml \
|
|
10
|
+
namespaces/playground/prod/000-common.yml \
|
|
11
|
+
namespaces/playground/prod/010-nginx.yml
|
|
10
12
|
```
|
|
11
13
|
|
|
12
14
|
## Default Variables
|
|
@@ -29,21 +31,30 @@ A possible `defaults.yml` might look as follows:
|
|
|
29
31
|
|
|
30
32
|
## Namespace/Release Configuration
|
|
31
33
|
|
|
32
|
-
The destination namespace and the releases of the deployment must be defined by creating
|
|
33
|
-
configurations
|
|
34
|
+
The destination namespace and the releases of the deployment must be defined by creating namespace/release
|
|
35
|
+
configurations. You can use the legacy single file form `namespaces/<namespace>/<release>.yml` or split one release into
|
|
36
|
+
multiple ordered files below `namespaces/<namespace>/<release>/`.
|
|
34
37
|
|
|
35
|
-
For the namespace `playground
|
|
38
|
+
For the namespace `playground`, this example keeps `test` as a single file and splits `prod` into two files:
|
|
36
39
|
|
|
37
|
-
===+ "`
|
|
40
|
+
===+ "`test.yml`"
|
|
38
41
|
``` { .yaml title="namespaces/playground/test.yml"}
|
|
39
|
-
--8<-- "examples/jinja/001-general-structure/namespaces/playground/
|
|
42
|
+
--8<-- "examples/jinja/001-general-structure/namespaces/playground/test.yml"
|
|
40
43
|
```
|
|
41
44
|
|
|
42
|
-
=== "`
|
|
43
|
-
``` { .yaml title="namespaces/playground/
|
|
44
|
-
--8<-- "examples/jinja/001-general-structure/namespaces/playground/
|
|
45
|
+
=== "`prod/000-common.yml`"
|
|
46
|
+
``` { .yaml title="namespaces/playground/prod/000-common.yml"}
|
|
47
|
+
--8<-- "examples/jinja/001-general-structure/namespaces/playground/prod/000-common.yml"
|
|
45
48
|
```
|
|
46
49
|
|
|
50
|
+
=== "`prod/010-nginx.yml`"
|
|
51
|
+
``` { .yaml title="namespaces/playground/prod/010-nginx.yml"}
|
|
52
|
+
--8<-- "examples/jinja/001-general-structure/namespaces/playground/prod/010-nginx.yml"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The files in a release directory are rendered and merged in lexicographic order. In the example above,
|
|
56
|
+
`010-nginx.yml` can use `nginx.upstream_base_port` from `000-common.yml`.
|
|
57
|
+
|
|
47
58
|
## Render
|
|
48
59
|
|
|
49
60
|
After [default variable](#default-variables) and [namespace/release configuration](#namespacerelease-configuration) has
|
|
@@ -103,4 +114,4 @@ adeploy -p jinja deploy
|
|
|
103
114
|
are being executed by `adeploy`.
|
|
104
115
|
|
|
105
116
|
---
|
|
106
|
-
--8<-- "docs/common/_more.md"
|
|
117
|
+
--8<-- "docs/common/_more.md"
|
|
@@ -36,6 +36,18 @@ In any cases the basic structure of your `adeploy` repository looks as follows:
|
|
|
36
36
|
defaults.yml
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
You can also split a release configuration into multiple ordered files:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
<project_name>/
|
|
43
|
+
namespaces/
|
|
44
|
+
<namespace>/
|
|
45
|
+
<release>/
|
|
46
|
+
000-common.yml
|
|
47
|
+
010-app.yml
|
|
48
|
+
defaults.yml
|
|
49
|
+
```
|
|
50
|
+
|
|
39
51
|
!!!tip
|
|
40
52
|
You can specify a custom project name using `adeploy --name <project_name>`.
|
|
41
53
|
You can also use a different namespaces directory using `adeploy --namespaces <namespaces_dir>` i.e. to switch between variables/configs for different clusters.
|
|
@@ -47,20 +59,28 @@ The `defaults.yml` contains your global variables for the Helm chart or your Jin
|
|
|
47
59
|
* Global labels, prob and resource definitions.
|
|
48
60
|
|
|
49
61
|
In the `namespaces` folder you define namespace- and release-specific variables (and secrets) which will overwrite the
|
|
50
|
-
default variables from above
|
|
62
|
+
default variables from above. Use either `namespaces/<namespace>/<release>.yml` or the split form
|
|
63
|
+
`namespaces/<namespace>/<release>/*.yml`.
|
|
51
64
|
|
|
52
65
|
## Variables
|
|
53
66
|
|
|
54
|
-
The variables you specify in `defaults.yml` and in `namespaces/<namespace>/<release>.yml`
|
|
67
|
+
The variables you specify in `defaults.yml` and in `namespaces/<namespace>/<release>.yml` or
|
|
68
|
+
`namespaces/<namespace>/<release>/*.yml` are recursively merged so that
|
|
55
69
|
|
|
56
70
|
* you can use them as Jinja variables in the template files in the [`templates` folder](#jinja-templates)
|
|
57
71
|
* or there are directly [passed as configuration](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing) for your [Helm chart](#helm-charts).
|
|
58
72
|
|
|
59
|
-
Please note that the namespace/release configuration
|
|
60
|
-
|
|
61
|
-
|
|
73
|
+
Please note that the namespace/release configuration is also rendered using the Jinja renderer and the variables from
|
|
74
|
+
`defaults.yml`. So you can also use Jinja templating and some of the `adeploy` specific macros and filters for
|
|
75
|
+
`namespaces/<namespace>/<release>.yml` and `namespaces/<namespace>/<release>/*.yml`, too.
|
|
76
|
+
|
|
77
|
+
This might be useful to create your namespace/release config for your templates or customize your Helm configuration.
|
|
78
|
+
If you use the split form, files are processed in lexicographic order. Each file can use variables from `defaults.yml`
|
|
79
|
+
and all earlier files in the same release directory, for example `010-app.yml` can use variables from `000-common.yml`.
|
|
80
|
+
This also allows release- or namespace-local secrets to stay out of `defaults.yml` while avoiding duplicate values.
|
|
62
81
|
|
|
63
|
-
|
|
82
|
+
Do not define the same release with both structures. If `namespaces/<namespace>/<release>.yml` and
|
|
83
|
+
`namespaces/<namespace>/<release>/` both exist, `adeploy` fails instead of choosing one silently.
|
|
64
84
|
|
|
65
85
|
See [Jinja](jinja/index.md) for defaults about what you can do with Jinja templating.
|
|
66
86
|
|
|
@@ -111,8 +131,12 @@ these versions using the `version(name)` macro that falls back to a `latest` str
|
|
|
111
131
|
--8<-- "examples/jinja/001-general-structure/defaults.yml"
|
|
112
132
|
```
|
|
113
133
|
|
|
114
|
-
``` {.
|
|
115
|
-
--8<-- "examples/jinja/001-general-structure/namespaces/playground/prod.yml"
|
|
134
|
+
``` {.yaml title="namespaces/playground/prod/000-common.yml"}
|
|
135
|
+
--8<-- "examples/jinja/001-general-structure/namespaces/playground/prod/000-common.yml"
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
``` {.jinja title="namespaces/playground/prod/010-nginx.yml"}
|
|
139
|
+
--8<-- "examples/jinja/001-general-structure/namespaces/playground/prod/010-nginx.yml"
|
|
116
140
|
```
|
|
117
141
|
|
|
118
142
|
You can use `adeploy -p <provider> config` to print out the fully merged namespace configuration for each release (here: `prod`):
|
|
@@ -170,6 +194,9 @@ The Jinja templates must be placed in a sub-folder called `myproject/templates`
|
|
|
170
194
|
namespaces/
|
|
171
195
|
<namespace>/
|
|
172
196
|
<release>.yml
|
|
197
|
+
<release>/
|
|
198
|
+
000-common.yml
|
|
199
|
+
010-app.yml
|
|
173
200
|
defaults.yml
|
|
174
201
|
```
|
|
175
202
|
|
|
@@ -194,6 +221,9 @@ chart in the subfolder `myproject/chart`:
|
|
|
194
221
|
namespaces/
|
|
195
222
|
<namespace>/
|
|
196
223
|
<release>.yml
|
|
224
|
+
<release>/
|
|
225
|
+
000-common.yml
|
|
226
|
+
010-app.yml
|
|
197
227
|
defaults.yml
|
|
198
228
|
```
|
|
199
229
|
|
|
@@ -229,4 +259,4 @@ _chart:
|
|
|
229
259
|
It is recommended to always set the `repo_url` and pin the `version` in the `defaults.yml` for automated deployment
|
|
230
260
|
pipelines.
|
|
231
261
|
|
|
232
|
-
See [Helm Quickstart](helm/index.md) to create, test and deploy a Helm chart using `adeploy`.
|
|
262
|
+
See [Helm Quickstart](helm/index.md) to create, test and deploy a Helm chart using `adeploy`.
|
adeploy-1.3.2/examples/helm/001-quickstart/build/helm/playground/hello-world/prod/manifest.yml
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Source: hello-world/templates/serviceaccount.yaml
|
|
3
|
+
apiVersion: v1
|
|
4
|
+
kind: ServiceAccount
|
|
5
|
+
metadata:
|
|
6
|
+
name: prod-hello-world
|
|
7
|
+
labels:
|
|
8
|
+
helm.sh/chart: hello-world-0.1.0
|
|
9
|
+
app.kubernetes.io/name: hello-world
|
|
10
|
+
app.kubernetes.io/instance: prod
|
|
11
|
+
app.kubernetes.io/version: "1.16.0"
|
|
12
|
+
app.kubernetes.io/managed-by: Helm
|
|
13
|
+
---
|
|
14
|
+
# Source: hello-world/templates/service.yaml
|
|
15
|
+
apiVersion: v1
|
|
16
|
+
kind: Service
|
|
17
|
+
metadata:
|
|
18
|
+
name: prod-hello-world
|
|
19
|
+
labels:
|
|
20
|
+
helm.sh/chart: hello-world-0.1.0
|
|
21
|
+
app.kubernetes.io/name: hello-world
|
|
22
|
+
app.kubernetes.io/instance: prod
|
|
23
|
+
app.kubernetes.io/version: "1.16.0"
|
|
24
|
+
app.kubernetes.io/managed-by: Helm
|
|
25
|
+
spec:
|
|
26
|
+
type: ClusterIP
|
|
27
|
+
ports:
|
|
28
|
+
- port: 80
|
|
29
|
+
targetPort: http
|
|
30
|
+
protocol: TCP
|
|
31
|
+
name: http
|
|
32
|
+
selector:
|
|
33
|
+
app.kubernetes.io/name: hello-world
|
|
34
|
+
app.kubernetes.io/instance: prod
|
|
35
|
+
---
|
|
36
|
+
# Source: hello-world/templates/deployment.yaml
|
|
37
|
+
apiVersion: apps/v1
|
|
38
|
+
kind: Deployment
|
|
39
|
+
metadata:
|
|
40
|
+
name: prod-hello-world
|
|
41
|
+
labels:
|
|
42
|
+
helm.sh/chart: hello-world-0.1.0
|
|
43
|
+
app.kubernetes.io/name: hello-world
|
|
44
|
+
app.kubernetes.io/instance: prod
|
|
45
|
+
app.kubernetes.io/version: "1.16.0"
|
|
46
|
+
app.kubernetes.io/managed-by: Helm
|
|
47
|
+
spec:
|
|
48
|
+
replicas: 2
|
|
49
|
+
selector:
|
|
50
|
+
matchLabels:
|
|
51
|
+
app.kubernetes.io/name: hello-world
|
|
52
|
+
app.kubernetes.io/instance: prod
|
|
53
|
+
template:
|
|
54
|
+
metadata:
|
|
55
|
+
labels:
|
|
56
|
+
app.kubernetes.io/name: hello-world
|
|
57
|
+
app.kubernetes.io/instance: prod
|
|
58
|
+
spec:
|
|
59
|
+
serviceAccountName: prod-hello-world
|
|
60
|
+
containers:
|
|
61
|
+
- name: hello-world
|
|
62
|
+
image: "nginx:1.16.0"
|
|
63
|
+
imagePullPolicy: IfNotPresent
|
|
64
|
+
ports:
|
|
65
|
+
- name: http
|
|
66
|
+
containerPort: 80
|
|
67
|
+
protocol: TCP
|
|
68
|
+
livenessProbe:
|
|
69
|
+
httpGet:
|
|
70
|
+
path: /
|
|
71
|
+
port: http
|
|
72
|
+
readinessProbe:
|
|
73
|
+
httpGet:
|
|
74
|
+
path: /
|
|
75
|
+
port: http
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
_chart:
|
|
2
|
+
name: hello-world
|
|
3
|
+
repo_url: https://helm.github.io/examples
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
fullnameOverride: ''
|
|
6
|
+
image:
|
|
7
|
+
pullPolicy: IfNotPresent
|
|
8
|
+
repository: nginx
|
|
9
|
+
tag: ''
|
|
10
|
+
nameOverride: ''
|
|
11
|
+
replicaCount: 2
|
|
12
|
+
service:
|
|
13
|
+
port: 80
|
|
14
|
+
type: ClusterIP
|
|
15
|
+
serviceAccount:
|
|
16
|
+
annotations: {}
|
|
17
|
+
create: true
|
|
18
|
+
name: prod-hello-world
|
|
19
|
+
service_account_name: prod-hello-world
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
versions:
|
|
2
|
-
nginx: 1.22
|
|
3
|
-
|
|
4
1
|
nginx:
|
|
5
2
|
image: registry.awesome-it.de/upstream-docker/library/nginx
|
|
6
3
|
locations:
|
|
7
4
|
{% for name in ["service-1", "service-2"] %}
|
|
8
5
|
- name: {{ name }}
|
|
9
|
-
upstream: 0.0.0.0:{{
|
|
10
|
-
{% endfor %}
|
|
6
|
+
upstream: 0.0.0.0:{{ nginx.upstream_base_port + loop.index0 }}
|
|
7
|
+
{% endfor %}
|
|
@@ -65,7 +65,10 @@ class Deployment:
|
|
|
65
65
|
return False
|
|
66
66
|
|
|
67
67
|
def load_config(
|
|
68
|
-
self,
|
|
68
|
+
self,
|
|
69
|
+
config_path: Path | list[Path],
|
|
70
|
+
defaults_files: list = None,
|
|
71
|
+
log: Logger = None,
|
|
69
72
|
):
|
|
70
73
|
# We're not yet rendering.
|
|
71
74
|
# Reset list of known secrets in order to allow multiple deployments to use the same defaults file
|
|
@@ -101,27 +104,35 @@ class Deployment:
|
|
|
101
104
|
f'Unexpected error while parsing YAML "{colors.bold(defaults_file)}": {e}'
|
|
102
105
|
)
|
|
103
106
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
107
|
+
config_paths = (
|
|
108
|
+
[Path(config_path)]
|
|
109
|
+
if isinstance(config_path, (str, Path))
|
|
110
|
+
else [Path(path) for path in config_path]
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
for path in config_paths:
|
|
114
|
+
template = ""
|
|
115
|
+
try:
|
|
116
|
+
# Compile config with default Jinja renderer i.e. to provide globals and filters
|
|
117
|
+
env = jinja_env.create([path.parent], deployment=self, log=log)
|
|
118
|
+
template = env.get_template(path.name).render(
|
|
119
|
+
defaults=self.config, **self.get_template_values()
|
|
120
|
+
)
|
|
121
|
+
self.config = dict_update_recursive(
|
|
122
|
+
self.config, yaml.load(template, Loader=yaml.FullLoader)
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
except ScannerError as e:
|
|
126
|
+
raise Error(
|
|
127
|
+
f'Unexpected error while scanning YAML "{colors.bold(path)}": {e}\n'
|
|
128
|
+
f"{colors.bold('Template')}:\n{template}"
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
except ParserError as e:
|
|
132
|
+
raise Error(
|
|
133
|
+
f'Unexpected error while parsing YAML "{colors.bold(path)}": {e}\n'
|
|
134
|
+
f"{colors.bold('Template')}:\n{template}"
|
|
135
|
+
)
|
|
125
136
|
|
|
126
137
|
return self.config
|
|
127
138
|
|
|
@@ -105,6 +105,49 @@ class Provider(ABC):
|
|
|
105
105
|
)
|
|
106
106
|
return None
|
|
107
107
|
|
|
108
|
+
def __get_deployment_release_configs(
|
|
109
|
+
self, deployment_dir: Path
|
|
110
|
+
) -> list[tuple[str, list[Path]]]:
|
|
111
|
+
config_files = []
|
|
112
|
+
for ext in self.extensions:
|
|
113
|
+
config_files.extend(Path(p) for p in glob.glob(f"{deployment_dir}/*.{ext}"))
|
|
114
|
+
config_files = sorted(config_files)
|
|
115
|
+
|
|
116
|
+
file_releases = {}
|
|
117
|
+
for config_file in config_files:
|
|
118
|
+
file_releases.setdefault(config_file.stem, []).append(config_file)
|
|
119
|
+
|
|
120
|
+
release_configs = [
|
|
121
|
+
(config_file.stem, [config_file]) for config_file in config_files
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
for release_dir in sorted(
|
|
125
|
+
path for path in deployment_dir.iterdir() if path.is_dir()
|
|
126
|
+
):
|
|
127
|
+
fragment_files = []
|
|
128
|
+
for ext in self.extensions:
|
|
129
|
+
fragment_files.extend(
|
|
130
|
+
Path(p) for p in glob.glob(f"{release_dir}/*.{ext}")
|
|
131
|
+
)
|
|
132
|
+
fragment_files = sorted(fragment_files)
|
|
133
|
+
|
|
134
|
+
if not fragment_files:
|
|
135
|
+
continue
|
|
136
|
+
|
|
137
|
+
if release_dir.name in file_releases:
|
|
138
|
+
existing_files = ", ".join(
|
|
139
|
+
str(path) for path in file_releases[release_dir.name]
|
|
140
|
+
)
|
|
141
|
+
raise RenderError(
|
|
142
|
+
f'Deployment release "{colors.bold(release_dir.name)}" is defined more than once: '
|
|
143
|
+
f'legacy file(s) "{colors.bold(existing_files)}" and '
|
|
144
|
+
f'release directory "{colors.bold(release_dir)}". Use only one structure.'
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
release_configs.append((release_dir.name, fragment_files))
|
|
148
|
+
|
|
149
|
+
return sorted(release_configs, key=lambda item: (item[0], str(item[1][0])))
|
|
150
|
+
|
|
108
151
|
def load_deployments(self):
|
|
109
152
|
self.log.debug(
|
|
110
153
|
f'Scanning for deployment variables in "{self.namespaces_dir}/*/*.({"|".join(self.extensions)})" ...'
|
|
@@ -126,63 +169,65 @@ class Provider(ABC):
|
|
|
126
169
|
# Structure 1
|
|
127
170
|
deployment_dir = self.namespaces_dir.joinpath(ns)
|
|
128
171
|
|
|
129
|
-
for
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
172
|
+
for (
|
|
173
|
+
deployment_release,
|
|
174
|
+
deployment_release_configs,
|
|
175
|
+
) in self.__get_deployment_release_configs(deployment_dir):
|
|
176
|
+
deployment = Deployment(
|
|
177
|
+
self.name, deployment_release, ns, str(self.build_dir)
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
if deployment.skipped(self.args):
|
|
181
|
+
self.log.info(
|
|
182
|
+
f'... Deployment "{colors.blue(deployment)}" skipped by user filter.'
|
|
136
183
|
)
|
|
184
|
+
continue
|
|
137
185
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
)
|
|
142
|
-
continue
|
|
186
|
+
self.log.debug(
|
|
187
|
+
f'Found deployment "{colors.blue(deployment)}", namespace "{colors.bold(ns)}" ...'
|
|
188
|
+
)
|
|
143
189
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
190
|
+
deployment.load_config(
|
|
191
|
+
deployment_release_configs, self.defaults_paths, self.log
|
|
192
|
+
)
|
|
193
|
+
deployment_release_configs_msg = ", ".join(
|
|
194
|
+
str(path) for path in deployment_release_configs
|
|
195
|
+
)
|
|
196
|
+
self.log.debug(
|
|
197
|
+
f'Using config from "{colors.bold(deployment_release_configs_msg)}" ...'
|
|
198
|
+
)
|
|
147
199
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
200
|
+
# Check valid deployment versions
|
|
201
|
+
version = get_package_version()
|
|
202
|
+
if not version:
|
|
203
|
+
# If version cannot be determined then we're likely running from source
|
|
204
|
+
version = "0.0.0"
|
|
205
|
+
deployment_version = deployment.config.get("_adeploy", {}).get(
|
|
206
|
+
"version", "0.0.0"
|
|
207
|
+
)
|
|
208
|
+
if parse_version(str(deployment_version)) > parse_version(
|
|
209
|
+
version.split("-")[0]
|
|
210
|
+
):
|
|
211
|
+
raise RenderError(
|
|
212
|
+
f"Deployment requires at least "
|
|
213
|
+
f"adeploy version {deployment_version}, "
|
|
214
|
+
f"current version is {version}"
|
|
153
215
|
)
|
|
154
216
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
217
|
+
# Check valid target cluster
|
|
218
|
+
deployment_target_cluster = deployment.config.get("_adeploy", {}).get(
|
|
219
|
+
"target_cluster_apiserver_url", None
|
|
220
|
+
)
|
|
221
|
+
if (
|
|
222
|
+
deployment_target_cluster
|
|
223
|
+
and deployment_target_cluster != self.current_cluster
|
|
224
|
+
):
|
|
225
|
+
raise WrongClusterError(
|
|
226
|
+
f'Deployment target cluster is "{deployment_target_cluster}", '
|
|
227
|
+
f"but current cluster is {self.current_cluster}"
|
|
162
228
|
)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
):
|
|
166
|
-
raise RenderError(
|
|
167
|
-
f"Deployment requires at least "
|
|
168
|
-
f"adeploy version {deployment_version}, "
|
|
169
|
-
f"current version is {version}"
|
|
170
|
-
)
|
|
171
|
-
|
|
172
|
-
# Check valid target cluster
|
|
173
|
-
deployment_target_cluster = deployment.config.get(
|
|
174
|
-
"_adeploy", {}
|
|
175
|
-
).get("target_cluster_apiserver_url", None)
|
|
176
|
-
if (
|
|
177
|
-
deployment_target_cluster
|
|
178
|
-
and deployment_target_cluster != self.current_cluster
|
|
179
|
-
):
|
|
180
|
-
raise WrongClusterError(
|
|
181
|
-
f'Deployment target cluster is "{deployment_target_cluster}", '
|
|
182
|
-
f"but current cluster is {self.current_cluster}"
|
|
183
|
-
)
|
|
184
|
-
|
|
185
|
-
deployments.append(deployment)
|
|
229
|
+
|
|
230
|
+
deployments.append(deployment)
|
|
186
231
|
|
|
187
232
|
if self.args.show_configs:
|
|
188
233
|
print("Hello World")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adeploy
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Universal deployment tool for Kubernetes that supports rendering and deployment of lightweight Jinja templated k8s manifests as well as complex Helm charts.
|
|
5
5
|
Author-email: Daniel Morlock <daniel.morlock@awesome-it.de>, Daniel Bross <daniel.bross@awesome-it.de>, Adrian Vielsack <adrian.vielsack@awesome-it.de>, Philip Flohr <philip.flohr@awesome-it.de>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -28,6 +28,7 @@ Requires-Dist: mkdocs; extra == "dev"
|
|
|
28
28
|
Requires-Dist: mkdocs-material; extra == "dev"
|
|
29
29
|
Requires-Dist: beautifulsoup4; extra == "dev"
|
|
30
30
|
Requires-Dist: mkdocstrings[python]; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest<9,>=8; extra == "dev"
|
|
31
32
|
Dynamic: license-file
|
|
32
33
|
|
|
33
34
|
# adeploy
|