-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* working * Enable dynamic load for generator classes
- Loading branch information
Showing
589 changed files
with
6,728 additions
and
17,146 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
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,16 @@ | ||
version: 0.31 | ||
version: 0.32 | ||
compile: | ||
prune: true | ||
embed-refs: true | ||
prune: true | ||
embed-refs: true | ||
fetch: true | ||
yaml-dump-null-as-empty: true | ||
compose-node-name: true | ||
refs-path: ./system/refs | ||
jinja2-filters: ./system/lib/jinja2_filters.py | ||
search-paths: | ||
- . | ||
- ./system/ | ||
- ./system/lib | ||
- ./system/generators | ||
refs: | ||
refs-path: ./system/refs |
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,26 +1,26 @@ | ||
exclude: ^compiled/|^components/charts/ | ||
exclude: ^compiled/|^system/sources/ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-docstring-first | ||
- id: check-json | ||
- id: check-yaml | ||
exclude: | | ||
(?x)( | ||
^Docs/| | ||
^system/sources/| | ||
) | ||
- id: debug-statements | ||
- id: name-tests-test | ||
- id: requirements-txt-fixer | ||
- id: check-merge-conflict | ||
- repo: https://github.com/psf/black | ||
rev: 22.8.0 | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
set -o nounset -o pipefail -o noclobber -o errexit | ||
|
||
TARGET_NAME="argocd" | ||
TARGET_PATH="argocd" | ||
GCP_PROJECT_ID="argocd" | ||
TARGET="argocd" | ||
TARGET_RELATIVE_PATH_FROM_KAPITAN_BASEDIR=compiled/${TARGET_PATH} | ||
|
||
SCRIPT_RELATIVE_PATH=${BASH_SOURCE[1]} | ||
SCRIPT_RELATIVE_DIR=$(dirname ${SCRIPT_RELATIVE_PATH}) | ||
SCRIPT_ABS_PATH=$(cd "${SCRIPT_RELATIVE_DIR}"; pwd) | ||
|
||
KAPITAN_ABSOLUTE_BASEDIR=${SCRIPT_ABS_PATH%${TARGET_RELATIVE_PATH_FROM_KAPITAN_BASEDIR}/*} | ||
SCRIPT_RELATIVE_DIR_FROM_KAPITAN_BASEDIR=$(dirname ${SCRIPT_ABS_PATH#${KAPITAN_ABSOLUTE_BASEDIR}/}) | ||
|
||
GIT_ABSOLUTE_BASEDIR=$(cd ${KAPITAN_ABSOLUTE_BASEDIR}; git rev-parse --show-toplevel) | ||
KAPITAN_BASEDIR_RELATIVE_PATH_FROM_GIT_BASEDIR=$(realpath ${KAPITAN_ABSOLUTE_BASEDIR} --relative-to=${GIT_ABSOLUTE_BASEDIR}) | ||
KAPITAN_BASEDIR_RELATIVE_PATH_FROM_SCRIPT_DIR=$(realpath ${KAPITAN_ABSOLUTE_BASEDIR} --relative-to=${SCRIPT_ABS_PATH}) | ||
KAPITAN_BASEDIR_RELATIVE_PATH_FROM_PWD=$(realpath ${KAPITAN_ABSOLUTE_BASEDIR} --relative-to=$(pwd)) | ||
|
||
BASH_INCLUDE_RELATIVE_PATH=${BASH_SOURCE[0]} | ||
BASH_INCLUDE_RELATIVE_DIR=$(dirname ${BASH_INCLUDE_RELATIVE_PATH}) | ||
|
||
KAPITAN_TEMPLATES_DIRNAME=${KAPITAN_BASEDIR_RELATIVE_PATH_FROM_GIT_BASEDIR%%/*} | ||
|
||
# Legacy | ||
ROOT=${KAPITAN_ABSOLUTE_BASEDIR} | ||
DIR=${SCRIPT_RELATIVE_DIR} | ||
|
||
source ${SCRIPT_RELATIVE_DIR}/gcloud.include | ||
source ${SCRIPT_RELATIVE_DIR}/kapitan.include | ||
|
||
KUBECTL_CONTEXT="${TARGET}" | ||
KUBECTL_SCRIPT="${SCRIPT_RELATIVE_DIR}/kubectl" | ||
KUBECTL_COMMAND="${KUBECTL_BINARY} --context ${KUBECTL_CONTEXT}" | ||
|
||
function in_docker() { | ||
grep -sq 'docker\|lxc' /proc/1/cgroup | ||
} | ||
|
||
function check_installed() { | ||
CMD=$1 | ||
if ! $(which ${CMD} > /dev/null); then | ||
error "${CMD} not installed. Exiting..." | ||
fi | ||
} | ||
|
||
# Only GNU xargs supports --no-run-if-empty | ||
XARGS="xargs --no-run-if-empty" | ||
if ! echo | $XARGS 2>/dev/null; then | ||
# Looks like we have BSD xargs, use -x instead | ||
XARGS="xargs" | ||
fi | ||
|
||
|
||
SCRIPT_TMP_DIR="$(mktemp -d /tmp/kapitan.XXXXXXXXXX)" | ||
trap "rm -fr '${SCRIPT_TMP_DIR}'" INT TERM EXIT |
Oops, something went wrong.