github kubernetes-sigs/kustomize api/v0.13.0

latest releases: kustomize/v5.5.0, api/v0.18.0, cmd/config/v0.15.0...
21 months ago

Breaking changes

  • #4983, #4954, #4922, #4900, #4885: Warning: We made major improvements to the maintainability of the URL-parsing code for remote URLs, fixing several bugs in the process. We have test coverage for backwards-compatibility with all documented supported URLs, but if you experience a regression with a remote URL, please file an issue.
    • #4985: If you previously included .git in an AWS or Azure URL, we will no longer automatically remove that suffix.
    • #4954: Dropped support for using gh: as a host (e.g. gh:kubernetes-sigs/kustomize). We were unable to find any usage of or basis for this and believe it may have been targeting a custom gitconfig shorthand syntax.
  • #4911: Drop support for a very old, legacy style of patches. patches used to be allowed to be used as an alias for patchesStrategicMerge in kustomize v3. You now have to use patchesStrategicMerge explicitly, or update to the new syntax supported by patches. See examples in the PR description of #4911.
  • #4973: Remove long-ignored Inventory field from Kustomization type
  • #4731: Remove a potential build-time side-effect in ConfigMapGenerator and SecretGenerator, which loaded values from the local environment under some circumstances, breaking kustomize build's side-effect-free promise. While this behavior was never intended, we deprecated it and are announcing it as a breaking change since it existed for a long time. See also the Eschewed Features documentation.
    #4929: Duplicate fields in Kustomization files will now result in an error instead of them silently being ignored in an undefined order.

Deprecations

  • #4723, #4923: Deprecated fields: We are deprecating the following Kustomization fields. These fields will never be removed from the kustomize.config.k8s.io/v1beta1 Kustomization API, but they will not be included in the kustomize.config.k8s.io/v1 Kustomization API. When Kustomization v1 is available, we will announce the deprecation of the v1beta1 version. There will be at least two releases between deprecation and removal of Kustomization v1beta1 support from the kustomize CLI, and removal itself will happen in a future major version bump.
    • patchesStrategicMerge. Please use patches instead
    • patchesJson6902. Please use patches instead
    • vars. Please use replacements instead.
    • imageTags. This is an alias for images, please switch to images.
  • #4954: Deprecate RepoSpec git:: prefix, which is invalid. Kustomize currently strips it, but will stop doing so in a future release.

Features

  • #4019: New kustomization field sortOptions, that lets you configure the sort order of resources. Docs pending: kubernetes-sigs/cli-experimental#306
  • Introduce localizer package that contains kustomize localize command logic
  • #4974: Introduce localizertest package with localizer test helpers
  • #4986: Repospec: support ssh urls with ssh certificates
  • #4926, #4808: Support for more helm template args in the helmCharts field: additionalValuesFiles, skipTests, apiVersions and skipTests.
  • #4886: Wildcard support for creation in ReplacementTransformer
  • #4652: Add Repo method to ifc.Loader interface
  • #4856: Add IsRemoteFile function to loader package
  • #4947: Allow fieldspecs (used in advanced transformer configuration) to start with a slash.
  • #4978: Add HelmDefaultHome field storing name of default chart home directory
  • #5000: Output of kustomize version is improved. YAML and JSON formats are now available via the new --output flag.

Bug Fixes/performance improvements

  • #4863: Fix RepoSpec query extraction
  • #4985: Remove forced .git suffix in RepoSpec
    • Arbitrary git servers that do not follow the .git directory naming convention can now be used with Kustomize.
    • The .git suffix no longer incorrectly appears in origin annotations in some cases.
  • #4895: Name references to local-only objects are now correctly resolved before the objects are removed from the set to be printed.
  • #4791, #4944, #4809: Significant performance improvements from refactoring metadata handling in the api and kyaml modules
  • #4758: Emit a warning when using missing field in FunctionSpec
  • #4789: Replacements now throw errors on invalid targets
  • #4890: Fix null value handling when applying strategic merge patches. A null in the patch is a deletion directive, but a null in the target should be preserved.
  • #4654: The working directory of exec KRM-style functions is now the kustomization root that called it. This fixes a bug where KRM exec function executables were looked up incorrectly in base/overlay contexts.
  • #4751, #4805: When using labels.includeTemplates, create template/metadata if not present.
  • #4834: Respect options.disableNameSuffixHash in configmap and secret generator in overlays
  • #4919: Allow overriding of name suffix transformer default configuration

Dependencies

  • #4960: Update sigs.k8s.io/yaml to v1.3.0
  • #4877: Update minimum Go version to Go 1.19
  • #4970: Replace github/pkg/errors with sigs.k8s.io/kustomize/kyaml/errors
  • #4965: Bump k8s.io/kube-openapi to remove archived dependency
  • #4889: fix: all module net and text dependent package CVE-2022-41717 and CVE-2022-32149 vulnerabilities
  • #4830: update kyaml's dependency swag to v0.22.3

Don't miss a new kustomize release

NewReleases is sending notifications on new releases.