Skip to content

Releases: cloudogu/makefiles

v9.2.1

05 Sep 08:12
v9.2.1
ddc0d0e
Compare
Choose a tag to compare

Fixed

  • Add missing yq dependency on docker-build target

v9.2.0

28 Aug 14:05
v9.2.0
3537e63
Compare
Choose a tag to compare

Added

  • Add make target govulncheck to scan go repositories for vulnerabilities using govulncheck

Changed

  • bats.mk:
    • Raise BATS image version to 1.11.0
    • set BATS's /workspace directory as a safe git directory to avoid the git error detected dubious ownership

Fixed

  • Remove Docker warning about potentially missing ARG default values [#190]

v9.1.0

28 Jun 09:04
3526ce4
Compare
Choose a tag to compare

Added

  • Add support for remote runtimes and container-registries for k8s-make-targets [#18]
    • The make-targets for k8s like dogu-build, helm-apply or component-apply now support deploying to remote kubernetes-clusters

v9.0.5

23 May 08:19
1399847
Compare
Choose a tag to compare

Changed

  • Bugfix/185 update golangci lint version by @ppxl in #187

v9.0.4

19 Apr 08:18
36e0817
Compare
Choose a tag to compare

Fixed

  • [#180] Properly delete previous helm packages to mitigate error where helm secrets get too big.
  • Update CONTROLLER_GEN_VERSION to v0.14.0 to avoid panic during manifest-run when using go1.22 [#178]

v9.0.3

18 Mar 08:18
v9.0.3
4ced461
Compare
Choose a tag to compare

Changed

  • Pick up mockery version when the version was defined before including mocks.mk
    • it is no longer necessary to set the version variable MOCKERY_VERSION after including mocks.mk. Instead the variable can be overwritten before the include.

Fixed

  • Update Mockery to v2.42.1 to avoid error messages during mock generation [#176]
    • these error messages occurred only with very recent Golang versions like Go 1.22. No errors were shown with Go 1.21

V9.0.2

05 Mar 14:16
v9.0.2
6b561a3
Compare
Choose a tag to compare

v9.0.2 2024-01-18

Fixed

  • Remove duplicate version-tag from Dogu-Image in ks8-dogu.mk [#174]
  • Set the yq output to YAML (instead of JSON)

v9.0.1

01 Dec 10:52
v9.0.1
1053247
Compare
Choose a tag to compare

Changed

  • Make the targets for generate and copy manifests configurable. External components have to override them with empty values because they do not have CRDs in go-code. [#172]
  • Make the target to importing images configurable. Components with own images to build should override IMAGE_IMPORT_TARGET with image-import. [#172]
  • Make the target to check all environment variables configurable. Components with own images to build should override CHECK_VAR_TARGETS with check-all-vars. [#172]

Fixed

  • fixes wrong container image version latest during image-import [#172]
  • the k8s/CRD target helm-package-release renames to helm-package in order to harmonize with crd-helm-package
  • the k8s/CRD target manifests honors now the variable HELM_CRD_SOURCE_DIR if set to a different value

Added

  • runs k8s/CRD target crd-add-labels by default after the CRD generation target manifest

v9.0.0

30 Nov 08:12
v9.0.0
41f2e15
Compare
Choose a tag to compare

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_DEV no 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.
  • k8s tool versions are now replaceable by these variables
    • BINARY_YQ_4_VERSION, BINARY_HELM_VERSION, and CONTROLLER_GEN_VERSION can now be customized if needed
      • simply set these variables before the inclusion of any k8s*.mk files
    • the corresponding path and version variables move to the same place in k8s.mk for better maintenance experience
  • the variable K8S_RESOURCE_TEMP_FOLDER no longer contains a make subdirectory to simplify the directory structure in target/
  • the k8s/dogu variable DOGU_JSON_DEV_FILE is no longer a relative path but absolute
  • The k8s/dogu target k8s-create-temporary-resource renames to create-dogu-resource
    • its output can be optionally defined by setting K8S_RESOURCE_DOGU but defaults to `target/k8s/${ARTIFACT_ID}.yaml

Helm / components

  • the k8s/helm target helm-generate-chart renames to helm-generate
    • helm-generate also provides now optional post-exec targets by setting HELM_POST_GENERATE_TARGETS
  • the k8s/helm target helm-apply also executes image-import
    • this target also allows now optional pre-exec targets by setting HELM_PRE_APPLY_TARGETS
  • the k8s/helm target helm-chart-import also executes image-import
  • these overridable variables rename to their respective counterparts:
    • K8S_HELM_TARGET to HELM_TARGET_DIR
    • K8S_HELM_RESSOURCES to HELM_SOURCE_DIR
    • K8S_HELM_ARTIFACT_NAMESPACE to HELM_ARTIFACT_NAMESPACE

Helm-CRD

  • the k8s/crd targets manifests and generate are no longer specific to the controller implementation
    • manifests can be found by including build/make/k8s-crd.mk
      • this target also allows now optional post-exec targets by setting CRD_POST_MANIFEST_TARGETS
    • generate can be found by including build/make/k8s-controller.mk
  • the k8s/crd target crd-helm-generate-chart renames to crd-helm-generate and executes prior two checks: validate-crd-chart, validate-crd
    • crd-helm-generate allows also now optional post-exec targets by setting K8S_POST_CRD_HELM_GENERATE_TARGETS

k8s controller

  • the k8s/controller target generate renames to generate-deepcopy for better understandability

Removed

  • the k8s targets k8s-delete, k8s-generate, and k8s-apply are removed in favor of Helm targets
    • along with these targets, the variables K8S_PRE_GENERATE_TARGETS, PRE_APPLY_TARGETS, K8S_POST_GENERATE_TARGETS are removed
    • instead these targets take their place: HELM_PRE_GENERATE_TARGETS, HELM_PRE_APPLY_TARGETS/COMPONENT_PRE_APPLY_TARGETS, HELM_POST_GENERATE_TARGETS
  • the k8s/controller target k8s-create-temporary-resource which used to produce monolithic YAML resources is removed

Added

  • the k8s target check-all-vars executes now also the check-k8s-image-env-var check
  • the k8s/helm targets ${HELM_TARGET_DIR}/Chart.yaml (and thus helm-generate) may execute pre-targets configured in the new variable HELM_PRE_GENERATE_TARGETS
    • this target also checks with validate-chart if a source Helm Chart.yaml exists
  • the k8s/helm target copy-helm-files copies all Helm files (including Chart.yaml) from the source directory to target/k8s/helm
    ${COMPONENT_PRE_APPLY_TARGETS}
  • adds k8s/crd target validate-crd-chart to check for a source CRD Chart.yaml
  • adds k8s/crd target validate-crd to check if K8S_CRD_COMPONENT_SOURCE was properly set
  • adds k8s/crd target crd-helm-lint to lint the CRD's Helm chart
  • adds k8s/component target helm-lint to lint the component's Helm chart

v8.8.0

21 Nov 08:34
Compare
Choose a tag to compare

Added

  • [#168] Publish targets for yarn to run publish tasks in a unified way
    • update the variable NODE_VERSION to define the used version of nodeJs (default: 8)
    • new target node-release to start the release for a node package