Skip to content

Latest commit

 

History

History
1637 lines (1173 loc) · 57.8 KB

CHANGELOG.md

File metadata and controls

1637 lines (1173 loc) · 57.8 KB

Changelog

All notable changes to this project are documented in this file.

0.29.0

Release date: 2022-09-29

This prerelease comes with strict validation rules for API fields which define a (time) duration. Effectively, this means values without a time unit (e.g. ms, s, m, h) will now be rejected by the API server. To stimulate sane configurations, the units ns, us and µs can no longer be configured, nor can h be set for fields defining a timeout value.

In addition, the controller dependencies have been updated to Kubernetes controller-runtime v0.13.

⚠️ Breaking changes:

  • .spec.interval new validation pattern is "^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
  • .spec.retryInterval new validation pattern is "^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
  • .spec.timeout new validation pattern is "^([0-9]+(\\.[0-9]+)?(ms|s|m))+$"

Improvements:

  • api: add custom validation for v1.Duration types #731
  • Build with Go 1.19 #733
  • Update dependencies #735

Fixes:

  • Fix health checking for global objects #730

0.28.0

Release date: 2022-09-12

This prerelease comes with improvements to reconciling Kubernetes class type objects, SOPS decryption and fuzzing. In addition, the controller dependencies have been updated to Kubernetes controller-runtime v0.12.

⚠️ Breaking change: The controller logs have been aligned with the Kubernetes structured logging. For more details on the new logging structure please see: fluxcd/flux2#3051.

Improvements:

  • Align controller logs to Kubernetes structured logging #718
  • Reconcile Kubernetes class type objects in a dedicated stage #720
  • Sort SOPS masterkeys so offline decrypt methods are tried first #726
  • SOPS: Update the AWS SDK for KMS #721
  • Refactor Fuzzers based on Go native fuzzing #723
  • Fuzz optimisations #722
  • Update dependencies #724

0.27.1

Release date: 2022-08-29

This prerelease comes with panic recovery, to protect the controller from crashing when reconciliations lead to a crash.

In addition, the controller dependencies have been updated to Kubernetes v1.25.0.

Improvements:

  • Enable RecoverPanic option on reconciler #708
  • Update Kubernetes packages to v1.25.0 #714
  • Add file path to sops decryption errors #706
  • Update doc on target namespace #712

0.27.0

Release date: 2022-08-08

This prerelease comes with support for the OCIRepository source type.

In addition, the controller has been updated to Kubernetes v1.24.3 and Kustomize v4.5.7.

Features:

  • Add support for OCIRepository sources #684

Improvements:

  • Update dependencies #704

0.26.3

Release date: 2022-07-13

This prerelease adds a retry mechanism for "not found" errors when downloading artifacts and recovers from SOPS store panics. Some dependencies have also been updated to patch upstream CVEs.

Fixes:

  • decryptor: recover from SOPS store panic #691

Improvements:

  • Retry downloading artifacts on not found errors #689
  • Update dependencies #692 #696
  • build: Upgrade to Go 1.18 #694

0.26.2

Release date: 2022-06-29

This prerelease adds support for health checking Kubernetes Jobs when impersonating a service account.

Fixes:

  • Fix job wait by adding polling options to impersonation client #687

0.26.1

Release date: 2022-06-08

This prerelease comes with documentation improvements on how to generate image pull secrets from SOPS encrypted .dockerconfigjson files.

In addition, the controller has been updated to Kubernetes v1.24.1.

Improvements:

  • docs: Add example section and dockerconfigjson encryption #675
  • Update dependencies #676
  • Update fluxcd/pkg dependencies #677

0.26.0

Release date: 2022-06-01

This prerelease comes with support for configuring the authentication to AWS KMS, Azure Key Vault and GCP KMS on multi-tenant clusters. A tenant can create a secret in their namespace with their KMS credentials and supply it to Flux using Kustomization.spec.decryption.secretRef. For more details on how to configure SOPS decryption with KMS, see the docs.

Starting with this version, the controller conforms to the Kubernetes API Priority and Fairness. The controller detects if the server-side throttling is enabled and uses the advertised rate limits. When server-side throttling is enabled, the controller ignores the --kube-api-qps and --kube-api-burst flags.

In addition, Kustomize has been updated to v4.5.5 which comes with significant performance improvements for OpenAPI parsing.

Improvements:

  • Support AWS KMS credentials using decryption secretRef #641 #667
  • Support GCP KMS credentials using decryption secretRef #635
  • Update SOPS to v3.7.3 #647
  • Update controller to kustomize v4.5.5 #660
  • Update dependencies #650
  • Update Alpine to v3.16 #661
  • Update go-yaml to v3.0.0 #665
  • Update source-controller/api to v0.25.0 #671

Fixes:

  • Set digests in image override #655

0.25.0

Release date: 2022-05-03

This prerelease adds support for disallowing remote bases in Kustomize overlays using --no-remote-bases=true (default: false). When this flag is enabled on the controller, all resources must refer to local files included in the Source Artifact, meaning only the Flux Sources can affect the cluster-state. Users are encouraged to enable it on production systems for security and performance reasons.

In addition, support has been introduced for defining a KubeConfig Secret data key in the .spec.kubeConfig.SecretRef.key (default: value or value.yaml), and dependencies have been updated.

Improvements:

  • Support defining a KubeConfig Secret data key #615 #645
  • Disallow remote bases usage in Kustomize overlays #638
  • decryptor: improve detection of in and out formats for Secret data fields #644

0.24.4

Release date: 2022-04-28

This prerelease ensures we recover from Kustomize build panics to guarantee continuity of operations when running into invalid object data.

In addition, handling of file formats while decrypting Secret generator entries with SOPS has been improved to ensure encrypted files in format A can be decrypted to target format B.

Fixes:

  • Use Secret generator keys for SOPS format hint #636

Improvements:

  • generator: recover from kustomize build panics #637

0.24.3

Release date: 2022-04-22

This prerelease allows for configuring the exponential back-off retry, already introduced in other Flux controllers. It can be configured with the new flags: --min-retry-delay (default: 750ms) and --max-retry-delay (default: 15min). Previously the defaults were set to 5ms and 1000s.

Fixes:

  • Ensure generated temp dir is absolute on all OSes #630

Improvements:

  • feat: flags to configure exponential backoff retry #631
  • Update source-controller to v0.24.1 #632

0.24.2

Release date: 2022-04-21

This prerelease updates the Go golang.org/x/crypto dependency to latest to please static security analysers (CVE-2022-27191).

Fixes:

  • Update golang.org/x/crypto #628

0.24.1

Release date: 2022-04-20

This prerelease fixes a regression bug introduced in #620, which prevented remote build directories from being reachable within the FS.

Fixes:

  • generator: ensure remote build dirs can be reached #626

0.24.0

Release date: 2022-04-19

This prerelease matures the Kustomize decryptor service, which handles the actual decryption of SOPS' encrypted Secrets, and now allows decrypting file sources referenced in Kustomization files.

In addition, Kustomize now operates using our own file system implementation, and dependencies have been updated to their latest versions.

Improvements:

  • controllers: improve decryptor and add tests #619
  • controllers: use own Kustomize FS implementation #620
  • Update dependencies #621 #622

0.23.0

Release date: 2022-04-05

This prerelease adds some breaking changes around the use and handling of kubeconfigs files for remote reconciliations. Implements health checks for kubernetes jobs and updates documentation.

SOPS implementation was refactored to include various improvements and extended code coverage. Age identities are now imported once and reused multiple times, optimising CPU and memory usage between decryption operations.

Breaking changes:

  • Use of file-based KubeConfig options are now permanently disabled (e.g. TLSClientConfig.CAFile, TLSClientConfig.KeyFile, TLSClientConfig.CertFile and BearerTokenFile). The drive behind the change was to discourage insecure practices of mounting Kubernetes tokens inside the controller's container file system.
  • Use of TLSClientConfig.Insecure in KubeConfig file is disabled by default, but can enabled at controller level with the flag --insecure-kubeconfig-tls.
  • Use of ExecProvider in KubeConfig file is now disabled by default, but can enabled at controller level with the flag --insecure-kubeconfig-exec.

Improvements:

  • Add kubeconfig flags #593
  • sops: various improvements and tests #607
  • docs/spec/v1beta2: fix recommended settings typo #609
  • Implement health check for Kubernetes jobs #608
  • Update KubeConfig documentation #611

0.22.3

Release date: 2022-03-29

This prerelease fixes a compatability issue between SOPS' Azure Key Vault integration, and the controller's. In addition, Kustomize has been updated to v4.5.4 to address an issue with ConfigMap and Secret generators.

Fixes:

  • sops/azkv: ensure compatibility with upstream #604
  • Update Kustomize to v4.5.4 #606

0.22.2

Release date: 2022-03-25

This prerelease fixes a regression bug where the SOPS keyservice would not properly fall back to the default server for Azure Key Vault decryption requests.

In addition, Kustomize has been updated to v4.5.3 to address an issue with YAML anchors.

Improvements:

  • Update Kustomize to v4.5.3 #594
  • Update source-controller API to v0.22.3 #596

Fixes:

  • sops/keyservice: properly fallback to default #597

0.22.1

Release date: 2022-03-24

This prerelease fixes a regression bug where alerts are sent for every reconciliation run.

Fixes:

  • Ensure event annotations are prefixed with Group FQDN #591

0.22.0

Release date: 2022-03-21

This prerelease introduces a new annotation kustomize.toolkit.fluxcd.io/ssa: merge for allowing kustomize-controller to patch cluster addons such as CoreDNS without removing the kubectl managed fields.

The source-controller dependency was updated to version v0.22 which introduces API v1beta2 and deprecates v1beta1.

In addition, various dependencies where updated to their latest versions, and the code base was refactored to align with fluxcd/pkg/runtime v0.13 release.

Improvements:

  • Allow shared ownership of in-cluster objects applied with kubectl #581
  • Update pkg/runtime and apis/meta #575
  • Update dependencies #584
  • SOPS: Add support for Azure Key Vault credentials #495

0.21.1

Release date: 2022-02-23

This prerelease comes with a workaround for an upstream bug in Kubernetes, where the keys set in a Secret with stringData are not removed from the cluster when the keys are deleted from the manifest.

Improvements:

  • Convert stringData to data before applying Secrets #576
  • Update dependencies #574

0.21.0

Release date: 2022-02-16

This prerelease comes with support for making the Kubernetes Secrets and ConfigMaps referenced in postBuild.substituteFrom optional. When substituteFrom.optional is set to true, the controller will ignore not found errors, and will substitute the variables with their default values.

Features:

  • Tolerate absence of resources in post-build substitution #570

0.20.2

Release date: 2022-02-10

This prerelease comes with an update to the sigs.k8s.io/kustomize/api package, bringing the controller on par with the Kustomize v4.5.2 release.

Kustomize v4.5.2 contains a regression bug fix for pseudo git HTTP URLs.

Improvements:

  • Update controller to kustomize v4.5.2 #567
  • Clarify spec.path in API docs #566
  • Fix typo in API docs #564

0.20.1

Release date: 2022-02-07

This prerelease comes with an update to the sigs.k8s.io/kustomize packages, bringing the controller on par with the Kustomize v4.5.1 release.

Improvements:

  • Update controller to kustomize v4.5.1 #559

Fixes:

  • Transfer ownership of the kubectl managed fields #562

0.20.0

Release date: 2022-02-01

This prerelease comes with security improvements for multi-tenant clusters:

  • Platform admins can enforce impersonation across the cluster using the --default-service-account flag. When the flag is set, all Kustomizations, which don't have spec.serviceAccountName specified, use the service account name provided by --default-service-account=<SA Name> in the namespace of the object.
  • Platform admins can disable cross-namespace references with the --no-cross-namespace-refs=true flag. When this flag is set, Kustomizations can only refer to sources (GitRepositories and Buckets) in the same namespace as the Kustomization object, preventing tenants from accessing another tenant's repositories.

The controller container images are signed with Cosign and GitHub OIDC, and a Software Bill of Materials in SPDX format has been published on the release page.

Starting with this version, the controller deployment conforms to the Kubernetes restricted pod security standard:

  • all Linux capabilities were dropped
  • the root filesystem was set to read-only
  • the seccomp profile was set to the runtime default
  • run as non-root was enabled
  • the user and group ID was set to 65534

Breaking changes:

  • The use of new seccomp API requires Kubernetes 1.19.
  • The controller container is now executed under 65534:65534 (userid:groupid). This change may break deployments that hard-coded the user ID of 'controller' in their PodSecurityPolicy.
  • When both spec.kubeConfig and spec.ServiceAccountName are specified, the controller will impersonate the service account on the target cluster, previously the controller ignored the service account.

Features:

  • Allow setting a default service account for impersonation #550
  • Allow disabling cross-namespace references #549
  • SOPS: Add support for HashiCorp Vault token-based authentication #538

Improvements:

  • Publish SBOM and sign release artifacts #541
  • Drop capabilities, enable seccomp and enforce runAsNonRoot #539
  • docs: Add var substitution operator escape syntax #537
  • Update development documentation #540
  • Refactor Fuzz implementation #536

Fixes:

  • Revoke kubectl managed fields ownership #527
  • Ensure object are finalized under impersonation #552
  • Use patch instead of update when adding finalizers #535
  • Fix preflight validation #544
  • Fix the missing protocol for the first port in manager config #547

0.19.1

Release date: 2022-01-13

This prerelease fixes a regression bug introduced in v0.19.0 that prevented StatefulSets from being reconciled on Kubernetes <= 1.21.

Fixes:

  • Update fluxcd/pkg/ssa to exclude the status field from apply #533

0.19.0

Release date: 2022-01-10

This prerelease comes with an update to the Kubernetes and controller-runtime dependencies to align them with the Kubernetes 1.23 release.

In addition, the controller is now built with Go 1.17 and Alpine 3.15.

Improvements:

  • Update Go to v1.17 and controller-runtime to v0.11 #478
  • Add condition to checkDependencies when SourceRef is the same #521

Fixes:

  • Fix HPA diff (upstream bug) #526
  • Fix inconsistent code-style raised at security audit #522

0.18.2

Release date: 2021-12-09

This prerelease comes with improvements to force applying objects with immutable fields changes.

Improvements:

  • Update dependencies (fix CVE-2021-43784) #509
  • Update golang.org/x/text to v0.3.7 (fix CVE-2021-38561) #512
  • Add test for replacing variables in secrets #505
  • Document behaviour when changes are made to fields not stored in git #501
  • SOPS: ensure proper wiring to default server #513

0.18.1

Release date: 2021-11-23

This prerelease replaces deprecated dependencies, most notably being the OpenPGP package where golang.org/x/crypto/openpgp was replaced with github.com/ProtonMail/go-crypto/openpgp.

Improvements:

  • Update source-controller/api to v0.19.0 #499
  • Replace deprecated dependencies #498
  • Update opencontainers/{image-spec, runc} #497

0.18.0

Release date: 2021-11-12

This prerelease comes with artifact integrity verification. During the acquisition of an artifact, kustomize-controller computes its checksum using SHA-2 and verifies that it matches the checksum advertised in the Status of the Source.

The controller dependencies has been updated to match kustomize v4.4.1.

Improvements:

  • Verify artifacts integrity #489
  • Update controller to kustomize v4.4.1 #488

0.17.0

Release date: 2021-11-09

This prerelease comes with support for ignoring changes made to in-cluster resources by annotating them with:

kustomize.toolkit.fluxcd.io/reconcile: disabled

When the kustomize.toolkit.fluxcd.io/reconcile annotation is set to disabled, the controller will no longer apply changes from source, nor will it prune the resource. To resume reconciliation, set the annotation to enabled or remove it.

Features:

  • Allow disabling the reconciliation of in-cluster resources #484

Fixes:

  • Set delete propagation policy to background #482
  • Warn when secrets are not decrypted before apply #483
  • Remove gopass dependency #480
  • Remove deprecated io/ioutil dependency #479

0.16.0

Release date: 2021-10-19

This prerelease comes with support for SOPS encrypted .env files used in kustomize secret generator.

Improvements:

  • SOPS: Decrypt dotenv files used in kustomize secret generator #463
  • SOPS: Document dotenv secret generator #469

Fixes:

  • Fix cluster scope detection of applied objects #465

0.15.5

Release date: 2021-10-13

This prerelease comes with improvements to drift detection of Kubernetes custom resources.

Improvements:

  • Improve drift detection #459

0.15.4

Release date: 2021-10-12

This prerelease comes with fixes to HPA and Service objects validation.

Fixes:

  • Fix Service and HPA v2beta1 validation #455

0.15.3

Release date: 2021-10-11

This prerelease comes with fixes for drift detection in Secrets and ConfigMaps.

Fixes:

  • Fix drift detection in Secrets and ConfigMaps #451

0.15.2

Release date: 2021-10-10

This prerelease comes with fixes for server-side apply upstream bugs affecting Kubernetes < 1.22.

Fixes:

  • Fix SSA upstream bugs for Kubernetes < 1.22 #448

0.15.1

Release date: 2021-10-08

This prerelease comes with fixes to backwards compatibility with Flux CLI 0.17 and older.

Fixes:

  • Fix inventory panic for v1beta1 objects #445

0.15.0

Release date: 2021-10-08

This prerelease comes with a new reconciler based on Kubernetes server-side apply and graduates the API to v1beta2.

The controller dependencies has been updated to match kustomize v4.4.0 which restores the usage of YAML anchors.

Breaking changes

  • Namespaced objects must contain metadata.namespace, defaulting to the default namespace is no longer supported. Setting a namespace for all objects reconciled by a Kustomization can be done with spec.targetNamespace.

  • The logs, events and alerts that report Kubernetes namespaced object changes are now using the Kind/Namespace/Name format instead of Kind/Name.

  • The minimum required version of Kubernetes has changed to:

    Kubernetes version Minimum required
    v1.16 >= 1.16.11
    v1.17 >= 1.17.7
    v1.18 >= 1.18.4
    v1.19 and later >= 1.19.0

Features and Improvements

  • Being able to validate and reconcile sources that contain both CRDs and CRs.
  • Being able to wait for all the applied resources to become ready without requiring users to fill-in the health check list.
  • Improve performance (CPU, memory, network, FD usage) and reduce the number of calls to Kubernetes API by replacing kubectl execs with a specialized applier written in Go.
  • Detect and report drift between the desired state (git, s3, etc) and cluster state reliably.
  • Improve the overall observably of the reconciliation process by reporting in real-time the garbage collection and health assessment actions.
  • Reconcile empty sources including pruning of all the resources previously applied.
  • Mask secrets data in logs, events and alerts.

API changes

The kustomize.toolkit.fluxcd.io/v1beta2 API is backwards compatible with v1beta1.

Additions, deprecations and removals:

  • .spec.patchesStrategicMerge deprecated in favour of .spec.patches
  • .spec.patchesJson6902 deprecated in favour of .spec.patches
  • .spec.validation deprecated and no longer used (server-side validation is implicit)
  • .spec.wait added (when enabled, will wait for all the reconciled resources to become ready)
  • .status.snapshot replaced by .status.inventory

Updating the manifests in Git to v1beta2 can be done at any time after the kustomize-controller upgrade. All users are encouraged to update the manifests as the deprecated fields will be removed when the next API version will be released.

0.14.1

Release date: 2021-09-09

This prerelease comes with improvements to logging. When Kubernetes Secrets can't be reconciled due to validation errors, the controller will mask the secret data from logs and events to prevent disclosing sensitive information.

Improvements:

  • Mask the Kubernetes Secrets data from dry-run and apply logs #420

0.14.0

Release date: 2021-08-26

This prerelease comes with improvements to garbage collection. When pruning is enabled, the controller will skip the deletion of objects with ownerReference.BlockOwnerDeletion=true, as they are subject to Kubernetes GC.

The controller dependencies has been updated to match kustomize v4.3.0.

Improvements:

  • Update controller to kustomize v4.3.0 #416
  • Skip garbage collection of objects with owner references #411
  • Add tests for various kustomize transformers #408

0.13.3

Release date: 2021-08-05

This prerelease comes with support for SOPS encrypted kubeconfigs.

Improvements:

  • Make the kubeconfig secrets compatible with SOPS #400
  • Remove old util ObjectKey #397
  • Var substitution opt-in docs #389
  • Update dependencies #401

Fixes:

  • Prevent nil pointer dereference in health checks #394

0.13.2

Release date: 2021-07-05

This prerelease comes with improvements to health assessment error reporting.

The controller dependencies has been updated to match kustomize v4.2.0.

Improvements:

  • Make it easier to reason about health check failures #374
  • Update Alpine v3.14 and kubectl v1.21.2 #385
  • Update controller to kustomize v4.2.0 #383

Fixes:

  • Fix typo in dependency ready log #384

0.13.1

Release date: 2021-06-30

This prerelease comes with kubectl v1.21.1.

Improvements:

  • Update kubectl to v1.21.1 #381
  • e2e: Update Kubernetes to v1.21.1 #380
  • Improve test coverage of the dependsOn feature #380

0.13.0

Release date: 2021-06-14

This prerelease brings the controller on a par with Kustomize v4. The Kubernetes and controller-runtime dependencies have been updated to match the Kubernetes 1.21 release.

The Kustomization API has been extended with support for generic in-line patches.

Starting with this version, the controller uses an annotation instead of a label to keep track of removed manifests from source. Please consult the garbage collection docs for more details.

Breaking changes:

  • Due to the removal of hashicorp/go-getter from Kustomize v4, the set of URLs accepted by Kustomize in the resources filed is reduced to only file system paths or values compatible with git clone. This means you can no longer use resources from archives (zip, tgz, etc).
  • YAML anchors are no longer supported in Kustomize v4, see kustomize/issues/3675 for more details.
  • Due to a bug in Kustomize v4, if you have non-string keys in your manifests, the controller will fail with json: unsupported type error.

Features:

  • Add support for in-line generic patches to Flux Kustomization API #364

Improvements:

  • Upgrade controller to Kustomize v4 #343
  • Move the GC checksum from labels to annotations #362

0.12.2

Release date: 2021-06-02

This prerelease comes with support for decrypting any file format used with Kustomize secretGenerator.

Improvements:

  • Support decrypting any file format in secret generator #353

0.12.1

Release date: 2021-05-26

This prerelease comes with a fix to the reconciliation timeout handling.

Improvements:

  • Update Go to v1.16 #350
  • Publish on-demand release candidates container images #342

Fixes:

  • Fix validation and application timeout handling #346

0.12.0

Release date: 2021-04-29

This prerelease comes with support for decrypting Kubernetes secrets generated with SOPS and Kustomize secretGenerator.

Features:

  • SOPS: Decrypt Kubernetes secrets generated by kustomize #329

Improvements:

  • Extract validation error from apply server dry run output #333

0.11.1

Release date: 2021-04-22

This prerelease comes with a bug fix where the rate limited events were delaying the reconciliation.

Improvements:

  • Move GC test to Go test suite #318
  • Refactor indexers to use high-order functions #322

Fixes:

  • Avoid retrying rate limited events #326
  • Make log level info for 'Dependencies do not meet ready condition' #317

0.11.0

Release date: 2021-04-06

This prerelease extends the Mozilla SOPS integration with support for age encryption format.

This prerelease comes with a breaking change to SOPS integration. The OpenPGP private keys stored in Kubernetes secrets must have the .asc file extension. For age, the private keys file extension must be .agekey.

Features:

  • Support SOPS age encryption #309

Improvements:

  • Move Kustomize patch tests to Go test suite #313
  • Detect and replace empty err output on apply #312

0.10.0

Release date: 2021-03-26

This prerelease comes with a breaking change to the leader election ID from 7593cc5d.fluxcd.io to kustomize-controller-leader-election to be more descriptive. This change should not have an impact on most installations, as the default replica count is 1. If you are running a setup with multiple replicas, it is however advised to scale down before upgrading.

Improvements:

  • Set leader election deadline to 30s #303
  • Update SOPS to v3.7.0 #304

0.9.3

Release date: 2021-03-17

This prerelease comes with updates to the runtime packages.

The controller exposes a gauge metric to track the suspended status of Kustomization objects: gotk_suspend_status{kind,name,namespace}.

Improvements:

  • Expose suspended status as Prometheus metric #299
  • Update dependencies #298

0.9.2

Release date: 2021-03-05

This prerelease comes with improvements to the notification system. The controller retries with exponential backoff when fetching artifacts, preventing spamming events when source-controller becomes unavailable for a short period of time.

Improvements:

  • Retry with exponential backoff when fetching artifacts #289
  • Validate the var names before substitution #291

0.9.1

Release date: 2021-02-25

This prerelease comes with an update to the sigs.k8s.io/cli-utils dependency, to guard against a potential bug with health assessments that was discovered in the flux CLI.

Improvements:

  • Update sigs.k8s.io/cli-utils to v0.22.2 #287

0.9.0

Release date: 2021-02-24

This is the ninth MINOR prerelease.

This prerelease comes with support for recreating Kubernetes objects (e.g. Jobs) when immutable fields are changed in Git.

Features:

  • Add support for recreating objects when immutable fields are updated #271

Improvements:

  • Extracting validation error from apply dry run output #280
  • Update kubectl to v1.20.4 #283

Fixes:

  • Avoid prompts on SOPS key import by adding batch flag to gpg #281

0.8.1

Release date: 2021-02-18

This prerelease adds an array field called substituteFrom to the post build API. SubstituteFrom holds references to ConfigMaps and Secrets containing the variables (data keys) and their values (data values) to be substituted in the YAML manifests.

You can disable the variable substitution for certain resources by either labeling or annotating them with:

kustomize.toolkit.fluxcd.io/substitute: disabled

Features:

  • Implement var substitution from ConfigMaps and Secrets #275

0.8.0

Release date: 2021-02-12

This is the eight MINOR prerelease.

This prerelease comes with support for bash-style variable substitutions.

The Kustomization API was extended with in-line support for Kustomize Strategic Merge and JSON 6902 patches.

Pruning can be disabled for certain resources by either labeling or annotating them with:

kustomize.toolkit.fluxcd.io/prune: disabled

Golang pprof endpoints have been enabled on the metrics server, making it easier to collect runtime information to debug performance issues.

Features:

  • Add support for variable substitutions #253
  • Support Strategic Merge and JSON 6902 patches #264
  • Allow disabling of prune on certain resources #267

Improvements:

  • Enable pprof endpoints on metrics server #266
  • Update kustomize/api to v0.7.4 #269

0.7.4

Release date: 2021-02-02

This prerelease comes with a change to the Kustomization status so that the controller can keep track of the last health assessment result and avoid issuing redundant health check events.

Improvements:

  • Add Healthy status condition #262

0.7.3

Release date: 2021-02-01

This prerelease comes with support for running the Kustomization validation using service account impersonation.

Improvements:

  • Support impersonation for validation #260

0.7.2

Release date: 2021-01-26

This prerelease comes with a fix to the service account impersonation when running health checks and garbage collection.

Fixes:

  • Clear config.BearerTokenFile when setting BearerToken #258

0.7.1

Release date: 2021-01-25

This prerelease fixes a regression bug introduced in v0.7.0 that caused failed reconciliations to be immediately retried instead of being scheduled at the specified interval.

Fixes:

  • Fix reconciliation retry scheduler #256

0.7.0

Release date: 2021-01-22

This is the seventh MINOR prerelease.

An optional field was added spec.retryInterval that allows users to requeue a failed reconciliation at a different interval than spec.Interval.

The LocalObjectReference from the Kubernetes core has been replaced with our own, making Name a required field. The impact of this should be limited to direct API consumers only, as the field was already required by controller logic.

Improvements:

  • Allow failed reconciliations to be scheduled at a different interval #250
  • Update fluxcd/pkg/runtime to v0.8.0 #247

0.6.3

Release date: 2021-01-19

This prerelease comes with fixes to the kustomize build procedure by disabling kyaml. The Kubernetes packages were updated to v1.20.2 and kustomize/api to v0.7.2.

Improvements:

  • Update kustomize/api to v0.7.2 and disable kyaml #241
  • Update Kubernetes packages to v1.20.2 #240

0.6.2

Release date: 2021-01-15

This prerelease adds support for kustomization.yml and Kustomization files at the root of the configured path.

Improvements:

  • Look for all accepted Kustomization filenames #238

0.6.1

Release date: 2021-01-14

This prerelease fixes a regression bug introduced in v0.6.0 that caused reconciliation request annotations to be ignored in certain scenarios.

Two new argument flags are introduced to support configuring the QPS (--kube-api-qps) and burst (--kube-api-burst) while communicating with the Kubernetes API server.

Improvements:

  • Add support for QPS and burst configurations #233
  • Update source-controller to v0.6.1 #234

Fixes:

  • Upgrade runtime package to v0.6.2 for regression bug fix #234

0.6.0

Release date: 2021-01-12

This is the sixth MINOR prerelease, upgrading the controller-runtime dependencies to v0.7.0.

The container image for ARMv7 and ARM64 that used to be published separately as kustomize-controller:*-arm64 has been merged with the AMD64 image.

Improvements:

  • Update kubectl to v1.20.1 #231
  • Update kustomize/api to v0.7.1 #229
  • Run GC and health checks using service account impersonation #221

Fixes:

  • No longer treat dirs as kustomization files #224

0.5.3

Release date: 2020-12-18

This prerelease comes with improvements to health reporting.

Improvements:

  • Emit healthcheck event when Kustomization was not ready #219
  • Add debug logs to garbage collection #218
  • Add SOPS user error to logs #220

0.5.2

Release date: 2020-12-16

This prerelease comes with improvements to garbage collection and adds safe guards for relative paths.

The Path field was marked as optional, when not specified, it defaults to the root path of the SourceRef.

Health checking and garbage collection for HelmReleases and other custom resources were fixed by downgrading to controller-runtime v0.6.3.

Improvements:

  • Refactor garbage collection #210
  • Make Path field optional and add safe guards for relative paths #211

0.5.1

Release date: 2020-12-14

This prerelease comes with improvements to error reporting.

Improvements:

  • Refactor apply error reporting #205

0.5.0

Release date: 2020-12-11

This is the fifth MINOR prerelease. It comes with support for overriding container images with spec.images.

Improvements:

  • Implement container image setters #194
  • Update kustomize/api to v0.7.0 #198

0.4.0

Release date: 2020-11-26

This is the fourth MINOR prerelease. Suspended Kustomizations are no longer marked as not ready, the status sub-resource is left untouched.

Improvements:

  • Do not mark suspended resource as not ready #183
  • Set field manager to kustomize-controller instead of kubectl #184

Fixes:

  • Requeue after interval on source not found errors #182

0.3.0

Release date: 2020-11-20

This is the third MINOR prerelease. It introduces two breaking changes:

  • the ServiceAccount field has been removed and replaced by ServiceAccountName; it is no longer possible to specify a namespace for a service account, the namespace is inferred from the Kustomization namespace
  • the status condition type has changed to the type introduced in Kubernetes API machinery v1.19.0

Improvements:

  • Use ServiceAccountName for impersonation #180
  • Adopt Kubernetes condition type #174
  • Add docs for excluding non-k8 YAML files in kustomization generation #176
  • Use DeletionTimestamp for prune and readiness #177

Fixes:

  • Add fsGroup to security context (fix for AWS KMS IAM Role bindings) #178

0.2.2

Release date: 2020-11-12

This prerelease comes with improvements to status reporting. The Kustomization dry-run can now be explicitly disabled by setting spec.validation to none.

Improvements:

  • Patch status sub-resource #171
  • Update kustomize/api to v0.6.5 #170
  • Allow disabling validation #168

0.2.1

Release date: 2020-11-04

This prerelease comes with improvements to garbage collection. The Kubernetes packages have been updated to v1.19.

Improvements:

  • Update k8s to 1.19 + kustomize 0.6.4 #161
  • Add openssh client to support git+ssh Kustomize resources #159

Fixes:

  • Use latest generation when updating final status #164
  • Omit checksum label if GC is disabled #162

0.2.0

Release date: 2020-10-29

This is the second MINOR prerelease, it comes with breaking changes:

  • the histogram metric gotk_reconcile_duration was renamed to gotk_reconcile_duration_seconds
  • the annotation fluxcd.io/reconcileAt was renamed to reconcile.fluxcd.io/requestedAt

Improvements:

  • Refactor predicates and enqueuers #156 #155 #153
  • Use annotation helpers #152
  • Suppress health check events when no changes made #151
  • Use controller-runtime utils for finalizer and health checks #150
  • Improve remote cluster documentation #148

0.1.2

Release date: 2020-10-16

This prerelease comes with support for targeting remote clusters created with Cluster-API.

Improvements:

  • Implement non-caching, per-kustomization GC-client/statusPoller for cross-cluster kubeconfigs #135

Fixes:

  • Fix status reporting when the source is not found #141
  • Validate manifests when generating kustomization.yaml #143
  • Set correct status on failure events #145

0.1.1

Release date: 2020-10-13

This prerelease comes with Prometheus instrumentation for the controller's resources.

For each kind, the controller exposes a gauge metric to track the Ready condition status, and a histogram with the reconciliation duration in seconds:

  • gotk_reconcile_condition{kind, name, namespace, status, type="Ready"}
  • gotk_reconcile_duration{kind, name, namespace}

0.1.0

Release date: 2020-09-30

This is the first MINOR prerelease, it promotes the kustomize.toolkit.fluxcd.io API to v1beta1 and removes support for v1alpha1.

Going forward, changes to the API will be accompanied by a conversion mechanism. With this release the API becomes more stable, but while in beta phase there are no guarantees about backwards compatibility between beta releases.

0.0.13

Release date: 2020-09-22

This prerelease comes with support for S3 bucket sources and cross-namespace dependencies. Container images for ARMv7 and ARMv8 are published to ghcr.io/fluxcd/kustomize-controller-arm64.

0.0.12

Release date: 2020-09-14

This prerelease comes with improvements to health assessment. The health checks leverage the kstatus library to support custom resources such as HelmReleases that implement the Ready condition.

0.0.11

Release date: 2020-09-12

This prerelease comes with the option to watch for resources in the runtime namespace of the controller or at cluster level.

0.0.10

Release date: 2020-09-05

This prerelease comes with a bug fix to garbage collection.

0.0.9

Release date: 2020-09-04

This prerelease comes with support for decrypting Kubernetes secrets with Mozilla SOPS. Container images for linux/amd64 and linux/arm64 are published to GHCR.

0.0.8

Release date: 2020-08-18

This prerelease upgrades the github.com/fluxcd/pkg/* dependencies to dedicated versioned modules, and makes the api package available as a dedicated versioned module.

0.0.7

Release date: 2020-07-31

This prerelease comes with a breaking change, the CRDs group has been renamed to kustomize.toolkit.fluxcd.io. The dependency on source-controller has been updated to v0.0.7 to be able to work with source.toolkit.fluxcd.io resources.

0.0.6

Release date: 2020-07-25

This prerelease comes with improvements to the dependency management and service account impersonation.

0.0.5

Release date: 2020-07-20

This prerelease drops support for Kubernetes <1.16. The CRDs have been updated to apiextensions.k8s.io/v1.

0.0.4

Release date: 2020-07-16

This prerelease comes with improvements to the alerting system and allows sources to be referenced across namespaces. The kustomize/api has been updated to v0.5.1.

0.0.3

Release date: 2020-07-13

This prerelease comes with improvements to logging. The default logging format is JSON and the timestamp format is ISO8601. Introduce fluxcd.io/reconcileAt annotation for on-demand reconciliation of kustomization objects.

0.0.2

Release date: 2020-07-02

This prerelease comes with improvements to the alerting system. The reconciliation events can be forwarded to notification controller and alerting can be configured for Slack, MS Teams, Discord and Rocket chat using the notification.fluxcd.io API.

0.0.1

Release date: 2020-06-24

This is the first prerelease ready for public testing. To get started testing, see the GitOps Toolkit guide.

0.0.1-beta.2

Release date: 2020-06-10

This beta release allows configuring the number of concurrent reconciles. Starting with this version, the controller watches for resources only in the namespace where it's deployed.

0.0.1-beta.1

Release date: 2020-05-29

This is the first beta release of kustomize controller. This release comes with improvements to the reconciliation engine when dealing with CRDs/CRs. The kustomize/api has been updated to v0.4.1.

0.0.1-alpha.9

Release date: 2020-05-11

This alpha release includes a bug fix for the source event handler and sets the current context to the default namespace.

0.0.1-alpha.8

Release date: 2020-05-09

This alpha release comes with improvements to health assessment and dependency management. When a source revision changes, the Kustomizations are executed based on the depends-on graph.

0.0.1-alpha.7

Release date: 2020-05-05

This alpha release comes with improvements to the garbage collector. The new GC doesn't require label selectors to be set in the kustomization and can prune resources safely without hitting Kubernetes API rate limits.

0.0.1-alpha.6

Release date: 2020-05-03

This alpha release comes with role-based access control for restricting the execution of a kustomization apply to a specific service account.

0.0.1-alpha.5

Release date: 2020-04-27

This alpha release introduces an intermediate state to the status ready condition to signal that a reconciliation is underway. This allows waiting for an on-demand sync to complete.

0.0.1-alpha.4

Release date: 2020-04-24

This alpha release introduces a new status field for recording the last applied source revision.

Feature comparison with Flux has been added to docs/spec.

0.0.1-alpha.3

Release date: 2020-04-23

This alpha release introduces the option to tell the controller to automatically generate the kustomization.yaml for repositories that contain plain Kubernetes manifests.

The controller design and motivation can be found at docs/spec.

0.0.1-alpha.2

Release date: 2020-04-21

This alpha release introduces the Profile CRD that allows grouping Kustomization objects and defining a common behavior for them. The v1alpha1 profiles can be used for configuring Slack and Discord alerting.

0.0.1-alpha.1

Release date: 2020-04-20

This is the first alpha release of kustomize controller. The controller is an implementation of the kustomize.fluxcd.io/v1alpha1 API.