Commit Graph

943 Commits

Author SHA1 Message Date
Hidde Beydals 74ee869133 Publish as single multi-arch Docker image
This commit bundles the `kustomize-controller:$VER-arm64` ARM image tag
range that was previously released separately with the
`kustomize-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:57:25 +01:00
Stefan Prodan 607ade6ea6
Merge pull request #229 from fluxcd/kustomize/api-v0.7.1
Update kustomize/api to v0.7.1
2021-01-11 12:51:35 +02:00
Stefan Prodan faeea742ee
Update kustomize/api to v0.7.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-11 12:37:41 +02:00
Stefan Prodan bb419bc506
Merge pull request #221 from fluxcd/controller-runtime-update
Upgrade controller-runtime to v0.7.0
2021-01-11 12:26:12 +02:00
Stefan Prodan 5a0e5abd9a
Setup impersonation for GC and health checks
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-04 11:51:04 +02:00
Stefan Prodan 6b9db36a49
Update fluxcd/pkg/runtime to v0.6.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-04 11:50:59 +02:00
Stefan Prodan 696f91d380
Refactor impersonation
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-04 11:50:59 +02:00
Stefan Prodan f14cd2323c
Upgrade controller-runtime to v0.7.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-01-04 11:50:58 +02:00
Stefan Prodan 428493f111
Merge pull request #224 from mflendrich/fix-223
No longer treat dirs as kustomization files
2021-01-04 09:56:26 +02:00
Michał Flendrich af358709f5 No longer treat dirs as kustomization files.
Fixes https://github.com/fluxcd/kustomize-controller/issues/223

Signed-off-by: Michał Flendrich <michal@flendrich.pro>
2020-12-24 21:04:38 +01:00
Stefan Prodan 072cd12aa9
Merge pull request #222 from fluxcd/release-v0.5.3
Release v0.5.3
2020-12-18 12:37:33 +02:00
Stefan Prodan 73611c988d
Release v0.5.3
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-18 12:23:47 +02:00
Stefan Prodan f0a31470c9
Merge pull request #220 from nlamirault/feat/sops-errors
Add SOPS user error to logs
2020-12-17 20:39:11 +02:00
Nicolas Lamirault 460eae2a2d
Add: Sops user error
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
2020-12-17 19:07:31 +01:00
Stefan Prodan 5efc06838a
Merge pull request #218 from fluxcd/gc-debug
Add debug logs to garbage collection
2020-12-17 11:37:03 +02:00
Stefan Prodan b7db5cb6ab
Merge pull request #219 from ordovicia/emit-healthcheck-when-was-unready
Emit healthcheck event when Kustomization was not ready
2020-12-17 11:06:06 +02:00
Hidehito Yabuuchi 8b132d18be Emit healthcheck event when Kustomization was not ready
Signed-off-by: Hidehito Yabuuchi <hdht.ybuc@gmail.com>
2020-12-17 17:50:05 +09:00
Stefan Prodan fe3cc52e37
Add debug logs to garbage collection
Log the GC query errors to help diagnose objects skipped from pruning

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-17 10:39:51 +02:00
Stefan Prodan 37e1c98473
Merge pull request #215 from fluxcd/release-v0.5.2
Release v0.5.2
2020-12-16 17:28:11 +02:00
Stefan Prodan 23ce057821
Release v0.5.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-16 17:11:51 +02:00
Stefan Prodan 8be1e169d2
Merge pull request #210 from fluxcd/gc-prune
Refactor garbage collection
2020-12-16 16:29:37 +02:00
Stefan Prodan a7138076b0
Pin controller-runtime to v0.6.3
Avoid v0.6.4 bug where custom resources can't be converted to v1.ListOptions

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-16 16:01:01 +02:00
Hidde Beydals 6a3c585e3f
Merge pull request #211 from fluxcd/safe-rel-path 2020-12-16 13:31:47 +01:00
Stefan Prodan 88b6d40ef5
Increase termination grace period to 1m
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-16 14:28:42 +02:00
Hidde Beydals d7a0deac97 Write KubeConfig to tmp file in working dir
Instead of using the name of the secret, as this can cause unexpected
collisions in edge case scenarios.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-16 12:59:19 +01:00
Hidde Beydals 69a7e75a91 Make Path an optional field and remove validation
As due to secure joins, the requirement on both providing a path
and/or requiring it to be in a certain format offers little value
over the UX experience of not having to provide it when you just
want to reconcile whatever can be found in the root of the source
reference.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-16 12:44:13 +01:00
Hidde Beydals 6a4bf74cf3 Add safe guards for relative paths
This commit ensures that relative (user configurable) paths never
traverse outside their working directory.

It does _not_ provide protection against path traversal within
`kustomization.yaml` files.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-16 12:44:13 +01:00
Stefan Prodan 59845b0891
Refactor garbage collection
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-16 13:09:30 +02:00
Stefan Prodan 8296b8e1f1
Merge pull request #206 from fluxcd/release-v0.5.1
Release v0.5.1
2020-12-14 18:18:55 +02:00
Stefan Prodan df525d4633
Release v0.5.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-14 17:56:17 +02:00
Stefan Prodan 45c0809024
Merge pull request #205 from fluxcd/filter-apply-errors
Refactor apply error reporting
2020-12-14 17:48:25 +02:00
Stefan Prodan d65ea71699
Refactor apply error reporting
- filter kubectl apply output and extract errors
- limit apply output to 20K charts (avoid reaching max etcd size)
- log kubectl exit code when the process is killed

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-14 17:34:55 +02:00
Hidde Beydals 4da53d13a1
Merge pull request #201 from fluxcd/upgrade-deps
Upgrade source-controller to v0.5.2
2020-12-11 15:14:39 +01:00
Hidde Beydals 0615bb6138 Upgrade source-controller to v0.5.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-11 14:54:15 +01:00
Stefan Prodan e950a9db3f
Merge pull request #200 from fluxcd/fix-changelog
Fix changelog PR links
2020-12-11 15:46:41 +02:00
Stefan Prodan a8b90ee996
Fix changelog PR links
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-11 15:19:59 +02:00
Stefan Prodan d94d36c0a2
Merge pull request #199 from fluxcd/release-v0.5.0
Release v0.5.0
2020-12-11 14:14:04 +02:00
Stefan Prodan b09af484ec
Release v0.5.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-11 13:54:43 +02:00
Stefan Prodan b6344b91c5
Merge pull request #198 from fluxcd/kustomize-pkg-update
Update kustomize/api to v0.7.0
2020-12-11 11:57:01 +02:00
Stefan Prodan faa2fff7b4
Update kustomize/api to v0.7.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-11 11:41:14 +02:00
Stefan Prodan afeb51dc80
Merge pull request #195 from fluxcd/update-pkg
Upgrade dependencies
2020-12-10 20:09:05 +02:00
Stefan Prodan 1438ef8735
Upgrade dependencies
- `github.com/fluxcd/pkg/apis/meta` to `v0.5.0`
- `github.com/fluxcd/pkg/runtime` to `v0.4.0`
- `github.com/fluxcd/source-controller/api` to `v0.5.1`
- `k8s.io/{api,apiextensions-apiserver,apimachinery,cli-runtime,client-go}` to `v0.19.4`
- `sigs.k8s.io/controller-runtime` to `v0.6.4`

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2020-12-10 19:48:41 +02:00
Stefan Prodan 814dc3d4b0
Merge pull request #194 from SomtochiAma/override-image
Implement container image setters
2020-12-10 16:30:41 +02:00
Somtochi Onyekwere ddc4eb631e Adds e2e tests for image override
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2020-12-10 14:59:20 +01:00
Somtochi Onyekwere 5e62583cec Implements image overrides
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2020-12-10 13:23:55 +01:00
Somtochi Onyekwere 5b3d8df5b5 Add image type to API spec
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2020-12-10 13:23:55 +01:00
Somtochi Onyekwere 3ebf16cbbb Updates doc with API spec for images
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2020-12-10 13:23:55 +01:00
Michael Bridgen bbf5f2e5ed
Merge pull request #189 from fluxcd/flux2-team
Share fluxcd/flux2 maintainers
2020-12-01 12:19:03 +00:00
Michael Bridgen 4381276396 Share fluxcd/flux2 maintainer
See https://github.com/fluxcd/flux2/discussions/515.

Signed-off-by: Michael Bridgen <michael@weave.works>
2020-11-30 13:31:53 +00:00
Stefan Prodan 461c1ce492
Merge pull request #188 from fluxcd/docs-dependson
Use cert-manager example for dependsOn docs
2020-11-30 10:26:22 +02:00