Commit Graph

445 Commits

Author SHA1 Message Date
Hidde Beydals ff8696814d Cleanup end-to-end test objects after each run
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-25 11:14:26 +01:00
Stefan Prodan 9395b6695f
Merge pull request #157 from fluxcd/impersonation
Implement service account impersonation
2020-11-24 17:15:17 +02:00
Stefan Prodan b59f06e9a7
Implement service account impersonation
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-24 16:49:13 +02:00
Stefan Prodan 2a9c8da23b
Merge pull request #155 from fluxcd/impersonation-api
Add the impersonation feature to API spec
2020-11-24 16:46:25 +02:00
Stefan Prodan 68d6ba10db
Add the impersonation feature to API spec
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-24 13:27:58 +02:00
Stefan Prodan 2b7df95c78
Merge pull request #156 from fluxcd/requeue-source-404
Requeue after interval on source not found errors
2020-11-24 13:27:21 +02:00
Stefan Prodan b864db2bb8
Requeue after interval on source not found errors
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-24 13:13:35 +02:00
Hidde Beydals 08b171a30e
Merge pull request #150 from fluxcd/release-v0.3.0
Release v0.3.0
2020-11-20 09:15:24 +01:00
Hidde Beydals 667b13bd42 Release v0.3.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-20 00:54:13 +01:00
Hidde Beydals 9eecc11e15
Merge pull request #148 from fluxcd/adopt-k8s-conditions
Refactor to adopt k8s standardized Condition type
2020-11-19 21:12:11 +01:00
Hidde Beydals c0156f193c Refactor to adopt k8s standardized Condition type
Changes the condition type to the one introduced in k8s 1.19, including
the newly introduced helpers in place of the old pkg/apis/meta types.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-19 19:00:55 +01:00
Hidde Beydals 1584eb60cf
Merge pull request #147 from fluxcd/release-v0.2.2
Release v0.2.2
2020-11-18 11:20:29 +01:00
Hidde Beydals e2e5a27252 Release v0.2.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-18 10:29:05 +01:00
Hidde Beydals 7e67f212da
Merge pull request #146 from fluxcd/helm-chart-change 2020-11-18 10:26:41 +01:00
Hidde Beydals f18ddbfce8 Detect chart values file divergences
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-18 10:06:45 +01:00
Hidde Beydals b801b23911 Properly detect chart version divergences
This is a regression bug fix due to the introduction of the default
values in the source-controller CRDs.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-18 10:06:40 +01:00
Hidde Beydals cd220464fe
Merge pull request #145 from fluxcd/release-v0.2.1
Release v0.2.1
2020-11-17 12:22:57 +01:00
Hidde Beydals 208bea95b6 Release v0.2.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-17 12:07:22 +01:00
Hidde Beydals fdaed2b270
Merge pull request #144 from fluxcd/patch-requeue-status 2020-11-17 12:02:23 +01:00
Hidde Beydals bb85850448 Patch status sub-resource
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-17 11:42:42 +01:00
Hidde Beydals 485b6f5fc8 Requeue on chart load and values composition err
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-17 11:38:55 +01:00
Stefan Prodan 143801565a
Merge pull request #140 from fluxcd/kind-update
Update engineerd/setup-kind to v0.5.0
2020-11-12 12:26:49 +02:00
Stefan Prodan e8ee812e46
Update engineerd/setup-kind to v0.5.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-11-12 12:10:14 +02:00
Hidde Beydals 582a642c19
Merge pull request #137 from relu/k8s-v1.19
Bump k8s version to more recent v1.19.3
2020-11-04 16:12:09 +01:00
Aurel Canciu 7fe7004821
Update pkg components and k8s to v1.19
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2020-11-01 18:23:48 +02:00
Hidde Beydals 9b0daa031a
Merge pull request #128 from fluxcd/helm-v3.4.0
Upgrade Helm to v3.4.0
2020-10-30 21:05:44 +01:00
Hidde Beydals a982a982cb Upgrade Helm to v3.4.0
This Helm version includes a fix to properly log the output of Pod
status phases for (test) jobs.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-30 20:49:00 +01:00
Hidde Beydals 394824c465
Merge pull request #135 from fluxcd/release-v0.2.0
Release v0.2.0
2020-10-29 13:41:22 +01:00
Hidde Beydals 76071b33fb Release v0.2.0
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-29 13:26:26 +01:00
Hidde Beydals 505adc88d0
Merge pull request #134 from fluxcd/pkg-runtime-api
Update pkg/runtime API dependency to v0.1.2
2020-10-29 13:09:09 +01:00
Hidde Beydals 831fc5c596 Update pkg/runtime API dependency to v0.1.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-29 12:54:53 +01:00
Hidde Beydals 69685403f8
Merge pull request #133 from fluxcd/enqueuer-state-check
Compare artifact <> HelmRelease in enqueuer
2020-10-28 22:57:35 +01:00
Hidde Beydals fa598261e7 Compare artifact <> HelmRelease in enqueuer
The reason for this is the `EnqueueRequestsFromMapFunc` calling the
enqueuer for _both_ the old and the new object, and we only want to act
on the ones that contain a revision different from the one that we have
recorded in the status object of the `HelmRelease`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-28 22:42:29 +01:00
Hidde Beydals 7ab3ed3a55
Merge pull request #132 from fluxcd/disable-requeue
Do not requeue when chart is not ready
2020-10-28 17:26:41 +01:00
Hidde Beydals a35a8a9707 Do not requeue when chart is not ready
As the watcher should trigger a reconciliation once the artifact
is available.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-28 14:26:04 +01:00
Hidde Beydals b3b2a233c2
Merge pull request #131 from fluxcd/watch-in-controller
Move dedicated watcher to in-controller watcher
2020-10-28 13:41:39 +01:00
Hidde Beydals b3baf39e11 Move dedicated watcher to in-controller watcher
This prevents the resources from getting annotated, and instead uses
the `handler.EnqueueRequestsFromMapFunc` to queue requests based on
changes to the source objects.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-28 13:28:11 +01:00
Hidde Beydals 2e246ce4be
Merge pull request #129 from fluxcd/change-copyright-header
Change copyright to Flux authors
2020-10-27 18:09:15 +01:00
Hidde Beydals 7ac2a41e1a Change copyright to Flux authors
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-27 17:55:18 +01:00
Hidde Beydals 5eb3cb9fd4
Merge pull request #124 from fluxcd/use-annotation-helpers
Use reconcile annotation helpers
2020-10-22 13:58:24 +02:00
Michael Bridgen 0928cc1e4d Use reconcile annotation helpers
Per https://github.com/fluxcd/pkg/issues/39
2020-10-22 12:26:48 +01:00
Hidde Beydals f39ef787c7
Merge pull request #119 from fluxcd/cross-cluster 2020-10-20 21:49:28 +02:00
Hidde Beydals 66fc16ea86 Update API spec to include and explain KubeConfig 2020-10-20 21:30:56 +02:00
Hidde Beydals 15914beca1 Support cross-cluster Helm releases
This is an initial implementation for cross-cluster Helm release
support that relies on a KubeConfig secret, and a reference to it in
the HelmRelease resource.

If set, all actions taken by the Helm runner are executed using the
KubeConfig from the secret. The Helm storage is stored on the remote
cluster in a namespace that equals to the namespace of the HelmRelease
in the managing cluster, the release itself is made in either this
namespace, or the configured TargetNamespace. In any case, both are
expected to exist and/or created beforehand.

Other references to Kubernetes resources in the HelmRelease, like
ValuesReference resources, are expected to exist on the managing
cluster.
2020-10-20 21:30:56 +02:00
Hidde Beydals 38512b1501
Merge pull request #122 from Shumatsu/main
Fixing typo (issue #118)
2020-10-20 17:41:36 +02:00
Shumatsu Mokuyobi 005c809da6 Update helmreleases.md
Fixing typo
2020-10-20 16:11:14 +02:00
Hidde Beydals 2561ce1a33
Merge pull request #117 from fluxcd/release-v0.1.3
Release v0.1.3
2020-10-16 15:44:41 +02:00
Hidde Beydals 130b2fb633 Release v0.1.3 2020-10-16 15:12:31 +02:00
Hidde Beydals 1c603dc2d2
Merge pull request #115 from fluxcd/helmchart-update-fix
Change chart reconciliation and readiness logic
2020-10-16 14:54:22 +02:00
Hidde Beydals 236e78d3a1 Change chart reconciliation and readiness logic
By confirming the observed generation is up-to-date before checking
the `Ready` condition state after chart reconciliation, we guarantee
the chart we use for the release always is on par with the state of
the `HelmRelease`.

In addition, we requeue to prevent the `HelmRelease` getting stuck
in a "HelmChart is not ready" state. Previously triggered by a no-op
chart update without a revision change that caused the watcher to
not request a reconciliation for the `HelmRelease`.
2020-10-16 14:39:32 +02:00