Commit Graph

904 Commits

Author SHA1 Message Date
Hidde Beydals 8c4b2885b2
docs: document experimental drift detection
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-03-01 09:36:43 +01:00
Hidde Beydals c93e5e1908
diff: additional test cases
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-03-01 09:36:43 +01:00
Hidde Beydals b7d8244496
diff: allow exclusion of specific objects
This allows a specific object from a release manifest to be excluded
from drift detection by labeling or annotating it with:
`helm.toolkit.fluxcd.io/diff: disabled`.

Using a Kustomize post renderer definition in a HelmRelease, this can
be used to ignore any object from an arbitrary chart.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-03-01 09:36:43 +01:00
Hidde Beydals 1240f20183
Enable experimental drift detection
This enables experimental drift detection of cluster state compared to
the current manifest data from the Helm storage's manifest blob.

Drift detection works based on the already proven approach of the
kustomize-controller's SSA package, and utilizes the managed field
configured by the controller since `v0.12.2`.

This feature is planned to go out of experimental once the further
controller rewrite has been finished, and the state of the Helm storage
itself is more fault tolerant.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-03-01 09:36:43 +01:00
Hidde Beydals 16ce900b20
api: switch to `meta.KubeConfigReference`
This is backwards compatible, as it only changes the type without the
further requirements around the YAML declaration.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-03-01 09:36:43 +01:00
Hidde Beydals d5dd5a91c8
Merge pull request #620 from fluxcd/helm-action-ctx
helm: propagate context to install and upgrade
2023-02-27 15:13:19 +01:00
Hidde Beydals 8a9ba1c12c
helm: propagate context to install and upgrade
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-02-27 10:32:44 +01:00
Hidde Beydals 5f465cf7d8
Merge pull request #614 from fluxcd/fix-snyk
ci: Fix Snyk code scanning
2023-02-17 13:10:29 +01:00
Stefan Prodan 4c58aa8da2
ci: Fix Snyk code scanning
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-02-17 12:56:03 +02:00
Hidde Beydals 41f530928c
Merge pull request #613 from fluxcd/release-0.30.0
Release v0.30.0
2023-02-17 10:49:14 +01:00
Hidde Beydals 2e52949426 Release v0.30.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-17 10:34:53 +01:00
Hidde Beydals f8ea4505d7
Merge pull request #612 from fluxcd/update-deps
Update source-controller to v0.35.1
2023-02-17 10:05:13 +01:00
Hidde Beydals 43e7fbef7b Update source-controller to v0.35.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-17 09:41:47 +01:00
Hidde Beydals 67a096d5f4
Merge pull request #610 from fluxcd/update-deps
Update dependencies
2023-02-16 18:47:33 +01:00
Hidde Beydals db7ce7e695 Update controller API build tooling
- Update both to their latest versions
- Introduce version variables

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-16 17:54:51 +01:00
Hidde Beydals db286fe8c7 Update dependencies
- github.com/fluxcd/pkg/apis/event to v0.4.0
- github.com/fluxcd/pkg/runtime to v0.29.0
- helm.sh/helm/v3 to v3.11.1
- k8s.io/utils to v0.0.0-20230209194617-a36077c30491
- github.com/containerd/containerd to v1.6.18

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-16 17:54:51 +01:00
Hidde Beydals 8aedb5de24 api: update dependencies
- sigs.k8s.io/controller-runtime to v0.14.4
- Unpin golang.org/x/text from v0.4.0 to allow update to v0.5.0

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-16 17:49:08 +01:00
Hidde Beydals 2d2c9aaed8
Merge pull request #606 from fluxcd/digest-revision-fmt
Support RFC-0005 revision format
2023-02-16 17:47:02 +01:00
Hidde Beydals 8b3edfd7b9 Support RFC-0005 revision format
This updates all the comparisons to make use of `HasRevision` which
supports the RFC-0005 and legacy revision formats.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-16 17:10:08 +01:00
Hidde Beydals 16fd8f9420
Merge pull request #598 from fluxcd/release-0.29.0
Release v0.29.0
2023-02-01 15:14:35 +00:00
Hidde Beydals fff787d60b Release v0.29.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-01 15:02:45 +00:00
Hidde Beydals b0a9e77ace
Merge pull request #597 from fluxcd/update-deps
Update source-controller to v0.34.0
2023-02-01 14:45:10 +00:00
Hidde Beydals 6a7949951e Update source-controller to v0.34.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-02-01 14:28:11 +00:00
Hidde Beydals 60a6b5390e
Merge pull request #596 from fluxcd/label-crds
Patch CRDs with origin labels
2023-02-01 09:26:05 +00:00
Hidde Beydals 362a27173e Patch CRDs with origin labels
This allows the applied CRDs to be traced using the same labels as
currently applied to resources using a Kustomize post-render.

Kustomize is not used here as the apply logic for CRDs is different
from the approach used during releasing, where we inject the labels
in such a way that they are written back to the Helm storage in the
rendered manifest. This to match Helm's logic from which our present
code is already derived (buth with support for policies).

This also moves the full responsibility of dealing with the install
of CRDs to ourselves, as we no longer fall back to Helm's logic when
`Create` is configured as a policy during a Helm install. As this
would not allow us to add the labels.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2023-01-31 15:09:21 +00:00
Hidde Beydals e47b08e039
Merge pull request #595 from fluxcd/kube-1.26
Update dependencies
2023-01-31 15:09:06 +00:00
Stefan Prodan 7b19e37eb8
Update dependencies
- helm.sh/helm/v3 v3.11.0
- k8s.io/* v0.26.1
- sigs.k8s.io/controller-runtime v0.14.2
- github.com/fluxcd/pkg/runtime v0.27.0

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-01-31 16:51:15 +02:00
Stefan Prodan 1e49ba6ee7
Merge pull request #594 from fluxcd/docker-sbom
build: Enable SBOM and SLSA Provenance
2023-01-30 16:09:45 +02:00
Stefan Prodan 8f1592aab5
build: Enable SBOM and SLSA Provenance
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-01-30 15:57:30 +02:00
Stefan Prodan d4e1033dfc
Update Alpine to v3.17
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-01-30 15:53:25 +02:00
Stefan Prodan 6f0b7cdc76
Merge pull request #585 from fluxcd/release-v0.28.1
Release v0.28.1
2022-12-22 15:23:51 +02:00
Aurel Canciu 57d715f5ef
Release v0.28.1
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2022-12-22 14:12:33 +01:00
Aurel Canciu b3185d4c17
Merge pull request #584 from fluxcd/adjust-graceful-shutdown-default-timeout
Align graceful-shutdown-timeout with terminationGracePeriodSeconds
2022-12-22 13:49:25 +01:00
Aurel Canciu 9875909496
e2e: Update Kubernetes to v1.23.13
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2022-12-22 09:06:23 +01:00
Aurel Canciu d2b52dece8
Align graceful-shutdown-timeout with terminationGracePeriodSeconds
Setting the default value for the graceful-shutdown-timeout flag to
match the default terminationGracePeriodSeconds value we set for the
controller pod container.
It seems the controller-runtime does not support passing -1 as a value
to skip the timeout as documented here:
https://github.com/kubernetes-sigs/controller-runtime/blob/v0.13.1/pkg/manager/manager.go#L286

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2022-12-21 19:11:27 +01:00
Hidde Beydals 6f0773d131
Merge pull request #583 from fluxcd/release-0.28.0
Release v0.28.0
2022-12-20 15:57:34 +00:00
Hidde Beydals ef3a0b45b2 Release v0.28.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-20 15:41:59 +00:00
Hidde Beydals 39412cdf7b
Merge pull request #582 from fluxcd/default-shutdown-value
Set `--graceful-shutdown-timeout` default to `-1`
2022-12-20 15:20:47 +00:00
Hidde Beydals 2e96c92918 Set `--graceful-shutdown-timeout` default to `-1`
This is the correct default value as intended in #570.

xref: 92234b3c49/pkg/manager/manager.go (L292-L293)

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-20 15:07:42 +00:00
Hidde Beydals 25f86bfa97
Merge pull request #581 from fluxcd/update-sc
Update source-controller and dependencies
2022-12-20 15:01:06 +00:00
Hidde Beydals e139ca63ec Update dependencies
- github.com/onsi/gomega to v1.24.2

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-20 14:39:56 +00:00
Hidde Beydals 261b5acbf3 Update source-controller to v0.33.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-20 14:39:56 +00:00
Hidde Beydals 2b49090c05
Merge pull request #564 from stoetti/main
assign the value of 'DisableOpenApiValidation' from the HelmRelease
2022-12-20 14:39:43 +00:00
stoetti 5ea57b72ee assign the value of 'DisableOpenApiValidation' from the HelmRelease-resource to the helm-command 2022-12-20 14:22:27 +00:00
Hidde Beydals 19b00a3759
Merge pull request #513 from mac-chaffee/no-cache-secrets
Disable caching of secrets and configmaps
2022-12-20 10:11:43 +00:00
Mac Chaffee 9bcf125e2c
Disable caching of secrets and configmaps by default.
You can re-enabled caching of secrets by starting the
controller with the argument '--feature-gates=CacheSecretsAndConfigMaps=true'

Signed-off-by: Mac Chaffee <machaffe@renci.org>
2022-12-19 09:53:01 -05:00
Hidde Beydals cb7b8967e3
Merge pull request #580 from rollandf/typo
Minor typo in doc
2022-12-15 12:25:20 +00:00
Fred Rolland 060d5262a2 Minor typo in doc
Signed-off-by: Fred Rolland <frolland@nvidia.com>
2022-12-15 11:59:17 +00:00
Hidde Beydals 0102a23c61
Merge pull request #577 from fluxcd/update-helm
helm: Update SDK to v3.10.3
2022-12-15 11:58:25 +00:00
Hidde Beydals 1099c1b6a2 helm: Update SDK to v3.10.3
This patches a number of security related issues. Refer to
https://github.com/helm/helm/releases/tag/v3.10.3 for precise information.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-15 11:22:26 +00:00