Commit Graph

1121 Commits

Author SHA1 Message Date
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
Hidde Beydals bc890874e1 Add safe guards for relative paths
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-15 09:56:40 +01:00
Hidde Beydals 1eb52ae235
Merge pull request #240 from fluxcd/gcp-bucket-support
Use ListObjects V1 fallback for GCS S3 endpoints
2020-12-15 09:54:08 +01:00
Hidde Beydals 9881bc2845 Use ListObjects V1 fallback for GCS S3 endpoints
As GCP's S3 interoperability does not implement the ListObjectsV2
implementation.

Ref: https://cloud.google.com/storage/docs/interoperability

> Note: While most actions are interoperable with the Amazon S3 V2 SDK,
> listing objects can only be performed using the Amazon S3 V1 list
> objects method.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-15 09:41:45 +01:00
Stefan Prodan b5af17310e
Merge pull request #238 from fluxcd/release-v0.5.4
Release v0.5.4
2020-12-12 14:46:54 +02:00
Stefan Prodan fd08e9f678
Release v0.5.4
Fix for ARMv7

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-12 14:34:12 +02:00
Philip Laine 4020644f69
Merge pull request #237 from fluxcd/fix/arm-image
Add newer musl version to second image layer
2020-12-12 13:29:24 +01:00
Philip Laine be5f4cb206 Add newer musl version to second image layer
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2020-12-12 13:11:48 +01:00
Hidde Beydals f334e094ac
Merge pull request #236 from fluxcd/release-v0.5.3
Release v0.5.3
2020-12-11 16:43:48 +01:00
Hidde Beydals 21a007e7eb Release v0.5.3
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-11 16:29:43 +01:00
Hidde Beydals 2a10773135
Merge pull request #235 from fluxcd/gogit-commit-hash
Properly forward commit hash for go-git implementation
2020-12-11 16:20:54 +01:00
Hidde Beydals 8f2a920765 Properly forward commit hash for go-git impl
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-11 16:05:02 +01:00
Hidde Beydals c602c5d850
Merge pull request #234 from fluxcd/release-v0.5.2
Release v0.5.2
2020-12-11 14:47:42 +01:00
Hidde Beydals 6520490c62 Release v0.5.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-11 14:33:22 +01:00
Hidde Beydals b335878a16
Merge pull request #233 from fluxcd/storage-addr
Allow overwrite of advertised storage addr
2020-12-11 14:20:53 +01:00
Hidde Beydals fa71f3269b Allow overwrite of advertised storage addr
The added `--storage-adv-addr` flag allows overwriting the HTTP address
advertised in the status objects of the sources. This allows for finer
grain configuration in setups where a modified service is used, or where
the DNS resolution differs from the Kubernetes defaults.

When the flag is omitted, an attempt is made to determine the address
based on the configured `--storage-addr` and the `HOSTNAME`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-11 14:07:27 +01:00
Hidde Beydals 5843c52526
Merge pull request #232 from fluxcd/release-v0.5.1
Release v0.5.1
2020-12-10 00:35:23 +01:00
Hidde Beydals e8888e2896 Release v0.5.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-10 00:22:32 +01:00
Philip Laine af4e48937a
Merge pull request #231 from fluxcd/arm-debug
Upgrade to `musl>=1.2.0` to be able to provide ARMv7 build
2020-12-10 00:19:43 +01:00
Hidde Beydals 3feda81109 Tweak `musl` and `libgit2{-dev}` dependencies
* Use semver tidles to deal with future patch releases
* Install just `libgit2` in runtime container
* Add TODO / explanation for `musl` `1.2.x` dependency

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-10 00:05:58 +01:00
Philip Laine 7945f95180 Install musl edge version
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2020-12-10 00:05:50 +01:00