Repository navigation
v9.0.0
Breaking change ahead! [#170]
This release cleans up lots of K8s targets and renames targets and variables in a more matching manner.
Please take the time to revise the changes for your project if you use them after a major version upgrade.
Changed
General K8s and k8s dogu-related
- the k8s variable
IMAGE_DEVno longer contains a version tag because it makes editing YAML files easier- you can append
${VERSION}as it should already be defined in your main makefile.
- you can append
- k8s tool versions are now replaceable by these variables
BINARY_YQ_4_VERSION,BINARY_HELM_VERSION, andCONTROLLER_GEN_VERSIONcan now be customized if needed- simply set these variables before the inclusion of any
k8s*.mkfiles
- simply set these variables before the inclusion of any
- the corresponding path and version variables move to the same place in
k8s.mkfor better maintenance experience
- the variable
K8S_RESOURCE_TEMP_FOLDERno longer contains amakesubdirectory to simplify the directory structure intarget/ - the k8s/dogu variable
DOGU_JSON_DEV_FILEis no longer a relative path but absolute - The k8s/dogu target
k8s-create-temporary-resourcerenames tocreate-dogu-resource- its output can be optionally defined by setting
K8S_RESOURCE_DOGUbut defaults to `target/k8s/${ARTIFACT_ID}.yaml
- its output can be optionally defined by setting
Helm / components
- the k8s/helm target
helm-generate-chartrenames tohelm-generatehelm-generatealso provides now optional post-exec targets by settingHELM_POST_GENERATE_TARGETS
- the k8s/helm target
helm-applyalso executesimage-import- this target also allows now optional pre-exec targets by setting
HELM_PRE_APPLY_TARGETS
- this target also allows now optional pre-exec targets by setting
- the k8s/helm target
helm-chart-importalso executesimage-import - these overridable variables rename to their respective counterparts:
K8S_HELM_TARGETtoHELM_TARGET_DIRK8S_HELM_RESSOURCEStoHELM_SOURCE_DIRK8S_HELM_ARTIFACT_NAMESPACEtoHELM_ARTIFACT_NAMESPACE
Helm-CRD
- the k8s/crd targets
manifestsandgenerateare no longer specific to the controller implementationmanifestscan be found by includingbuild/make/k8s-crd.mk- this target also allows now optional post-exec targets by setting
CRD_POST_MANIFEST_TARGETS
- this target also allows now optional post-exec targets by setting
generatecan be found by includingbuild/make/k8s-controller.mk
- the k8s/crd target
crd-helm-generate-chartrenames tocrd-helm-generateand executes prior two checks:validate-crd-chart,validate-crdcrd-helm-generateallows also now optional post-exec targets by settingK8S_POST_CRD_HELM_GENERATE_TARGETS
k8s controller
- the k8s/controller target
generaterenames togenerate-deepcopyfor better understandability
Removed
- the k8s targets
k8s-delete,k8s-generate, andk8s-applyare removed in favor of Helm targets- along with these targets, the variables
K8S_PRE_GENERATE_TARGETS,PRE_APPLY_TARGETS,K8S_POST_GENERATE_TARGETSare removed - instead these targets take their place:
HELM_PRE_GENERATE_TARGETS,HELM_PRE_APPLY_TARGETS/COMPONENT_PRE_APPLY_TARGETS,HELM_POST_GENERATE_TARGETS
- along with these targets, the variables
- the k8s/controller target
k8s-create-temporary-resourcewhich used to produce monolithic YAML resources is removed
Added
- the k8s target
check-all-varsexecutes now also thecheck-k8s-image-env-varcheck - the k8s/helm targets
${HELM_TARGET_DIR}/Chart.yaml(and thushelm-generate) may execute pre-targets configured in the new variableHELM_PRE_GENERATE_TARGETS- this target also checks with
validate-chartif a source HelmChart.yamlexists
- this target also checks with
- the k8s/helm target
copy-helm-filescopies all Helm files (includingChart.yaml) from the source directory totarget/k8s/helm
${COMPONENT_PRE_APPLY_TARGETS} - adds k8s/crd target
validate-crd-chartto check for a source CRDChart.yaml - adds k8s/crd target
validate-crdto check ifK8S_CRD_COMPONENT_SOURCEwas properly set - adds k8s/crd target
crd-helm-lintto lint the CRD's Helm chart - adds k8s/component target
helm-lintto lint the component's Helm chart