Commit Graph

2491 Commits

Author SHA1 Message Date
Hidde Beydals 65bebebb0c
Merge pull request #273 from fluxcd/start-fs-on-leader-election 2021-02-01 15:13:56 +01:00
Hidde Beydals c665907540 Use controller-runtime health probe for liveness
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-02-01 15:00:17 +01:00
Hidde Beydals 3fd74bb938 Enable controller-runtime probes
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-02-01 15:00:17 +01:00
Hidde Beydals 47a565866b Start file server on leader election
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-02-01 15:00:12 +01:00
Hidde Beydals 8277eb7463
Merge pull request #271 from fluxcd/verbose-chart-name-validation
Be more verbose about invalid chart name
2021-01-29 15:46:17 +01:00
Hidde Beydals 2c09df6570 Be more verbose about invalid chart name
Includes a change to _not_ requeue after validation failure, as
there is no chance on recovery.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-29 15:26:54 +01:00
Hidde Beydals 7012579b3f
Merge pull request #269 from fluxcd/local-helm-chart-dep-fix
Assume local dependency without Helm repository
2021-01-28 12:41:38 +01:00
Hidde Beydals 3cdc897236 Assume local dependency without Helm repository
This commit fixes a bug where local chart dependencies would not be
detected correctly due to the absence of a repository URL.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-28 12:28:19 +01:00
Hidde Beydals 83da57d7d9
Merge pull request #268 from fluxcd/release-v0.7.1
Release v0.7.1
2021-01-25 23:28:40 +01:00
Hidde Beydals 144754112b Release v0.7.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-25 23:02:05 +01:00
Hidde Beydals aae1a052ca
Merge pull request #267 from martinezleoml/FIX/helm-repository-unchanged-index
Rely on index checksum for HelmRepository reconcile operation
2021-01-25 20:50:07 +01:00
Léo Martinez c1512d34a0
rely on index checksum for HelmRepository reconcile operation
Fixes #256

Signed-off-by: Léo Martinez <leo84.martinez@gmail.com>
2021-01-25 19:11:57 +01:00
Hidde Beydals ab6ceb0de7
Merge pull request #266 from fluxcd/release-v0.7.0
Release v0.7.0
2021-01-21 17:07:54 +00:00
Hidde Beydals 2effa7c0b6 Release v0.7.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-21 17:43:57 +01:00
Stefan Prodan 0864abac7e
Merge pull request #265 from fluxcd/pkg/runtime-v0.8.0
Update fluxcd/pkg/runtime to v0.8.0
2021-01-21 16:00:48 +02:00
Stefan Prodan 207ed99d72
Use LocalObjectReference from fluxcd/pkg/meta v0.7
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-21 14:18:42 +02:00
Stefan Prodan 8e3700ebd8
Add QPS/Burst flags using fluxcd/pkg/runtime v0.8
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-21 14:13:07 +02:00
Stefan Prodan 2dac836772
Merge pull request #264 from fluxcd/fix-zero-len-values-file-override
Fix values file override
2021-01-21 14:03:51 +02:00
Aurel Canciu f1b5768200
Fix values file override
`io.Read` was used incorrectly to read from the override file provided
by the user.
This is now replaced with `ioutil.ReadFile` for better handling and
error reporting.

Fixes #263

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2021-01-21 13:40:12 +02:00
Hidde Beydals 00d9d1d209
Merge pull request #262 from fluxcd/release-v0.6.3
Release v0.6.3
2021-01-19 11:36:37 +01:00
Hidde Beydals a050f6457c Release v0.6.3
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-19 11:21:38 +01:00
Hidde Beydals fb6a94e07f
Merge pull request #261 from fluxcd/fix-tarball-chart-reconcile-err-handling
Fix unreachable code issue in helmchart reconciler
2021-01-18 22:54:38 +01:00
Aurel Canciu 778b07cdd4
Fix unreachable code issue in helmchart reconciler
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2021-01-18 23:06:30 +02:00
Hidde Beydals 2c7c1888e3
Merge pull request #260 from fluxcd/watch-chart-sources
Align HelmChart source indexer and watches
2021-01-18 17:25:24 +01:00
Hidde Beydals 34c4290cda Alin HelmChart source indexer and watches
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-18 17:08:25 +01:00
Stefan Prodan 97b6bed825
Merge pull request #259 from fluxcd/release-0.6.2
Release v0.6.2
2021-01-16 15:26:04 +02:00
Stefan Prodan 057c134bfa
Release v0.6.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-16 15:12:56 +02:00
Stefan Prodan e167b5bb5d
Merge pull request #258 from fluxcd/update-dependencies
Update Kubernetes and Helm packages
2021-01-16 15:06:28 +02:00
Stefan Prodan ab16dd7c2e
Update Kubernetes and Helm packages
- k8s.io/api v0.20.2
- controller-runtime v0.8.0
- helm v3.5.0

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-16 14:38:28 +02:00
Hidde Beydals 48b58ea8ce
Merge pull request #257 from fluxcd/release-v0.6.1
Release v0.6.1
2021-01-14 12:24:40 +01:00
Hidde Beydals b979574454 Release v0.6.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-14 12:05:14 +01:00
Hidde Beydals 910127e2e9
Merge pull request #255 from fluxcd/upgrade-runtime-v0.6.1
Upgrade runtime package to v0.6.2
2021-01-14 11:59:01 +01:00
Hidde Beydals 566ce8aa15 Upgrade runtime package to v0.6.2
To include a bug fix to the `ReconcilateAtChangedPredicate`
and renaming to `ReconcileRequestedPredicate`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-14 11:39:47 +01:00
Hidde Beydals 2ef575d431
Merge pull request #254 from fluxcd/release-v0.6.0
Release v0.6.0
2021-01-12 12:55:17 +01:00
Hidde Beydals fa257b13f3 Release v0.6.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-12 12:41:45 +01:00
Hidde Beydals c42cc37730
Merge pull request #252 from fluxcd/multi-arch-image 2021-01-11 13:23:24 +01:00
Hidde Beydals 74363f3d5e Publish as single multi-arch Docker image
This commit bundles the `source-controller:$VER-arm64` ARM image tag
range that was previously released separately with the
`source-controller:$VER` image, as GitHub now provides us insights into
image layer statistics.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-01-11 12:59:14 +01:00
Hidde Beydals 73678e147f
Merge pull request #246 from fluxcd/controller-runtime-v0.7.0
Upgrade controller-runtime to v0.7.0
2021-01-11 12:52:33 +01:00
Hidde Beydals fda481efe9 Upgrade controller-runtime to v0.7.0
This commit upgrades the `controller-runtime` dependency to `v0.7.0`,
including all changes required to make all wiring work again.

- Upgrade `runtime` to v0.6.0 to include `controller-runtime` changes.
- Loggers have been removed from the reconcilers and are now retrieved
  from the `context.Context` passed to the `Reconcile` method and
  downwards functions.
- Logger configuration flags are now bound to the flag set using
  `BindFlags` from `runtime/logger`, ensuring the same contract across
  GitOps Toolkit controllers, and the `--log-json` flag has been
  deprecated in favour of the `--log-encoding=json` default.
- The `ChangePredicate` from `runtime` has changed to a
  `ReconcilateAtChangedPredicate`, and is now chained with the
  `GenerationChangedPredicate` from `controller-runtime` using
  `predicate.Or`.
- Signatures that made use of `runtime.Object` have changed to
  `client.Object`, removing the requirement to e.g. call
  `runtime.Object#Object`.
- The `client.MatchingField` function was deprecated, and has been
  replaced with `client.MatchingFields{}`.
- The `leader-election-role` was changed, as leader election now works
  via the `coordination/v1` API.

Other notable changes:

- `util.ObjectKey` was added to easily construct a `client.ObjectKey` /
  `types.NamespacedName` from a `metav1.Object`.
- The `SourceIndexKey` constant has been split out into
  `{GitRepository,HelmRepository,Bucket}IndexKey` constants.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-18 19:17:10 +01:00
Hidde Beydals 9020143b1a
Merge pull request #247 from fluxcd/release-v0.5.6
Release v0.5.6
2020-12-18 11:46:51 +01:00
Hidde Beydals 5286cb0f90 Release v0.5.6
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-18 11:32:12 +01:00
Aurel Canciu c3f6ee74ca
Merge pull request #244 from fluxcd/fix-values-file-path-support
Fix HelmChart valuesFile chart path restriction
2020-12-17 13:12:09 +02:00
Aurel Canciu a55c502bb4
Fix HelmChart valuesFile chart path restriction
As part of the feature implementation to support helm chart
dependencies, the functionality for allowing values files overwriting
from any location scoped to the same source was altered. This should fix
the problem by allowing users to load files from any arbitrary location
as long as it's in the context of the same source from where the helm
chart itself is loaded.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-12-17 12:57:41 +02:00
Hidde Beydals a5032a0e1f
Merge pull request #243 from fluxcd/release-v0.5.5
Release v0.5.5
2020-12-16 16:04:50 +01:00
Hidde Beydals b46f32cd3f Release v0.5.5
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-16 15:50:00 +01:00
Hidde Beydals 72e00e82c0
Merge pull request #242 from fluxcd/rev-change-event-panic 2020-12-16 15:43:13 +01:00
Hidde Beydals 7cefdee6d8 Prevent HelmChart controller panic on init failure
The controller logic is a serious candidate to be refactored so that
errors can be taken into account better, and do not always result in a
requeue. But this will do for the time being.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-16 15:25:17 +01:00
Hidde Beydals 57211bb4ad
Merge pull request #239 from fluxcd/safe-rel-path 2020-12-15 16:22:05 +01:00
Hidde Beydals 29a051c5f4 Refactor and document DependencyManager
Mostly to re-use the fields of the structure instead of copying things
around.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-15 15:37:42 +01:00
Hidde Beydals 8d0b54e431 Make proper use of errgroup context
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-15 09:56:40 +01:00