Commit Graph

1568 Commits

Author SHA1 Message Date
Hidde Beydals 07e204615b
loader: log HTTP errors to provide faster feedback
This configures a logger on the HTTP client used to load a Helm chart,
ensuring HTTP errors surface faster.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-13 11:30:37 +01:00
Hidde Beydals 259b8f812f
Merge pull request #844 from fluxcd/sc-hostname-overwrite
loader: allow overwrite of URL hostname again
2023-12-13 09:56:37 +01:00
Hidde Beydals 1e66201829
loader: allow overwrite of URL hostname again
This adds back the support for overwriting the host name a chart is
downloaded from (again) using the `SOURCE_CONTROLLER_LOCALHOST`
environment variable.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-13 09:35:05 +01:00
Hidde Beydals 8a6e68b4ea
Merge pull request #843 from fluxcd/fix-spec-typos
docs/spec: address typo
2023-12-13 09:09:32 +01:00
Hidde Beydals 504b268be8
docs/spec: address typo
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-13 08:52:04 +01:00
Hidde Beydals 50aab28614
Merge pull request #842 from fluxcd/release-v0.37.0
Release v0.37.0
2023-12-12 09:00:10 +01:00
Hidde Beydals 4cae41ce3e
Release v0.37.0
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-12 08:48:56 +01:00
Hidde Beydals 14a333d46a
Merge pull request #828 from fluxcd/document-v2beta2
docs/spec: document `v2beta2` API
2023-12-11 19:22:31 +01:00
Hidde Beydals bb5a03bbfb
docs: various doc nits
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:51:58 +01:00
Hidde Beydals d8966cd8de
docs/spec: refer to v2beta2 doc for design details
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:57 +01:00
Hidde Beydals 344bd829ca
docs/spec/v2beta2: address review comment
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:56 +01:00
Hidde Beydals 302978f1b2
docs/spec/v2beta2: add Ready characteristics
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:55 +01:00
Hidde Beydals 9eefbf7e1a
docs/spec/v2beta2: address review comments
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:53 +01:00
Hidde Beydals 2b80e30560
docs: add notes about drift detection support
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:52 +01:00
Hidde Beydals 015eba09ed
docs/spec/v2beta2: add README
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:51 +01:00
Hidde Beydals 0075f20efb
docs/spec/v2beta2: rewrite intro
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:51 +01:00
Hidde Beydals 8a9acd6ce7
docs/spec/v2beta2: document Status Conditions
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:50 +01:00
Hidde Beydals 875e605ea9
docs/spec/v2beta2: explain example
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:50 +01:00
Hidde Beydals 04600fe15a
docs/spec/v2beta2: document most Status fields
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:50 +01:00
Hidde Beydals 99303f3e19
docs/spec/v2beta2: document debugging section
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:49 +01:00
Hidde Beydals 1b0e5d71f8
docs/spec/v2beta2: make note of release triggers
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:49 +01:00
Hidde Beydals aeef72abbf
docs/spec/v2beta2: add uninstall warnings
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:48 +01:00
Hidde Beydals d741525b2f
docs/spec/v2beta2: document remote clusters
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:48 +01:00
Hidde Beydals 2c48cf280f
docs/spec/v2beta2: document failure handling
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:47 +01:00
Hidde Beydals eca86919be
doc/spec/v2beta2: document CRD lifecycle
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:47 +01:00
Hidde Beydals f26749231e
docs/spec/v2beta2: document RBAC
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:47 +01:00
Hidde Beydals 436860f061
docs/spec: start documenting v2beta2
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 18:28:46 +01:00
Stefan Prodan 7d0aecfa41
Merge pull request #841 from fluxcd/fix-test-flake
controller: address test flake
2023-12-11 17:11:14 +01:00
Hidde Beydals f64246ba86
controller: address test flake
As the Kubernetes client used in tests is cache backed, it can take a
tiny bit of time for the client to actually notice the removal.

Wrapping in `Eventually` should address this.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 16:59:55 +01:00
Hidde Beydals f3e4789d4d
Merge pull request #840 from fluxcd/update-deps
Update source-controller to v1.2.2
2023-12-11 15:42:39 +01:00
Hidde Beydals c9423cc721
Update github.com/fluxcd/pkg/runtime to v0.43.2
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 15:28:02 +01:00
Hidde Beydals c1d3f90bf7
Update source-controller to v1.2.2
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 15:26:42 +01:00
Hidde Beydals cca1d3a2c0
Merge pull request #839 from fluxcd/update-deps
Update Kustomize to v5.3.0
2023-12-11 10:24:17 +01:00
Hidde Beydals c44d615335
Update dependencies
This includes an update of Kustomize to v5.3.0.

- github.com/fluxcd/cli-utils to v0.36.0-flux.2
- github.com/fluxcd/pkg/runtime to v0.43.1
- k8s.io/utils to v0.0.0-20231127182322-b307cd553661
- sigs.k8s.io/kustomize/api to v0.16.0
- sigs.k8s.io/kustomize/kyaml to v0.16.0

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 09:57:26 +01:00
Hidde Beydals 9322e73f93
api: update (indirect) dependencies
- github.com/go-logr/logr to v1.3.0
- golang.org/x/net to v0.19.0
- golang.org/x/text to v0.14.0
- k8s.io/klog/v2 to v2.110.1
- k8s.io/utils to v0.0.0-20231127182322-b307cd553661
- sigs.k8s.io/structured-merge-diff/v4 to v4.4.1

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 09:57:25 +01:00
Hidde Beydals 2586fdd907
Merge pull request #838 from fluxcd/alpine-319
build: update Alpine to 3.19
2023-12-11 09:24:26 +01:00
Hidde Beydals 74da69e7fb
build: update `tonistiigi/xx` to 1.3.0
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 09:12:04 +01:00
Hidde Beydals c2f1d8f660
build: update Alpine to 3.19
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-11 09:11:43 +01:00
Stefan Prodan 8848fb81e6
Merge pull request #837 from fluxcd/dependabot/github_actions/ci-bf6ecd85f3
build(deps): bump the ci group with 3 updates
2023-12-11 08:40:48 +01:00
dependabot[bot] 19d25347b1
build(deps): bump the ci group with 3 updates
Bumps the ci group with 3 updates: [actions/setup-go](https://github.com/actions/setup-go), [anchore/sbom-action](https://github.com/anchore/sbom-action) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `actions/setup-go` from 4.1.0 to 5.0.0
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](93397bea11...0c52d547c9)

Updates `anchore/sbom-action` from 0.15.0 to 0.15.1
- [Release notes](https://github.com/anchore/sbom-action/releases)
- [Commits](fd74a6fb98...5ecf649a41)

Updates `github/codeql-action` from 2.22.8 to 2.22.9
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](407ffafae6...c0d1daa7f7)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: ci
- dependency-name: anchore/sbom-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ci
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ci
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 04:04:39 +00:00
Hidde Beydals 7d7f081610
Merge pull request #836 from fluxcd/address-test-flake 2023-12-08 20:05:35 +01:00
Hidde Beydals 8b19eb0aa2
ci: increase timeout delete-ns tests
This test has shown to be a flake on multiple ocassions.

After running it locally a dozen of times, my conclusion is that the
time it takes for Kubernetes to shutdown a Pod may sometimes be a tiny
bit longer than anticipated by the current timeout.

Therefore, increase it to 5 minutes and provide more context on the
state of the namespace in case a timeout occurs.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-08 18:17:24 +01:00
Hidde Beydals 56ceb305a5
Merge pull request #835 from fluxcd/update-sc
Update source-controller to v1.2.1
2023-12-08 14:56:16 +01:00
Hidde Beydals 17d4b726bd
Update source-controller to v1.2.1
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-08 14:13:48 +01:00
Sunny c4915d1154
Merge pull request #833 from fluxcd/stale-remediated-in-sync
Remove stale remediated condition when in-sync
2023-12-08 18:28:56 +05:30
Sunny 9eb596eb46 Remove stale remediated condition when in-sync
Remediation can roll back to a version that matches with the next good
config. In such situation, release will be in-sync and no action will be
performed. The status conditions will continue to show Remediated=True
and Released=False. Check and remove stale Remediated condition and add
a Released=True condition with message constructed from the latest
release.

Introduce replaceCondition() to replaces target condition with a
replacement condition, retaining the transition time. This helps ensure
that the last transition time of releases don't change when a release is
marked from remediated to released.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-12-08 18:14:52 +05:30
Hidde Beydals fe8569bae6
Merge pull request #834 from fluxcd/propagate-hc-msg
controller: enrich "HelmChart not ready" messages
2023-12-08 13:27:39 +01:00
Hidde Beydals 93d2118f71
controller: enrich "HelmChart not ready" messages
This propagates the reason a HelmChart is (likely) not ready to the
message of the Ready condition.

The goal of this is to make it easier for people to reason about a
potential failure that may be happening while retrieving the chart,
without having to inspect the HelmChart itself.

As at times, they may not have access (due to e.g. not being able to
access the namespace, while the controller is allowed to create the
object there), or are simply not aware of the fact that this object
is created by the controller for them.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-07 23:35:44 +01:00
Hidde Beydals ee8177e005
Merge pull request #832 from fluxcd/api-kus-deprecations
api: deprecate stragic merge and JSON 6902 patches
2023-12-07 17:59:24 +01:00
Hidde Beydals 35e914d159
api: deprecate stragic merge and JSON 6902 patches
They have been deprecated for a long time, and should be scheduled for
removal to ensure they can be removed in the final `v2` release.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-12-07 17:37:00 +01:00