Commit Graph

1115 Commits

Author SHA1 Message Date
Stefan Prodan d7ebc2584f
Merge pull request #7 from fluxcd/kubernetes-1.30
Update dependencies to Kubernetes 1.30
2024-04-18 11:13:24 +03:00
Stefan Prodan e2235f0158
Update dependencies to Kubernetes 1.30
Pin controller-runtime to main branch commit `67b27f2` due to
breaking change in Kubernetes 1.30 `client-go/tools/leaderelection`.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2024-04-18 10:43:09 +03:00
Stefan Prodan 814809585d
Merge pull request #6 from fluxcd/kustomize-v5.4.0
Update dependencies to Kustomize v5.4.0
2024-04-04 20:32:51 +03:00
Stefan Prodan a844163aba
Update dependencies to Kustomize v5.4.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2024-04-04 18:03:49 +03:00
Stefan Prodan eb0c740ced
Merge pull request #5 from fluxcd/update-deps-go-1.22
Update dependencies to Go 1.22 and Kubernetes 1.29.3
2024-03-27 18:43:49 +02:00
Stefan Prodan 98bc9777f6
Update dependencies to Go 1.22 and Kubernetes 1.29.3
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2024-03-27 16:13:20 +02:00
Stefan Prodan 5af6753e42
Merge pull request #3 from fluxcd/kube-1.28.6
Update dependencies to Kubernetes 1.28.6
2024-01-23 16:34:26 +02:00
Stefan Prodan 030cea91a1
Update dependencies to Kubernetes 1.28.6
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2024-01-22 15:18:07 +02:00
Stefan Prodan 3ed1a8cea6
Merge pull request #2 from fluxcd/kustomize-v5.3.0
Update to Kustomize v5.3.0
2023-12-11 09:14:22 +01:00
Stefan Prodan d66429a19a
Update to Kustomize v5.3.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-12-11 10:09:19 +02:00
Stefan Prodan 8694cd0c10
Merge pull request #1 from fluxcd/k8s-1.28
Update to Kubernetes v1.28.4
2023-11-20 11:01:13 +02:00
Stefan Prodan 3cf5eee8a1
Update to Kubernetes v1.28.4
- bump `k8s.io` packages to v0.28.4
- bump `sigs.k8s.io/kustomize` to v5.2.1
- bump `sigs.k8s.io/controller-runtime` to v0.16.3
- bump `sigs.k8s.io/yaml` to v1.4.0
- migrate from `google/gnostic` to `google/gnostic-models`

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-11-20 09:45:07 +02:00
Stefan Prodan c90adb0cfd
ci: Check if working tree is dirty
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-11-20 08:56:33 +02:00
Stefan Prodan 4b7739d75d
Run tests in CI
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-11-20 08:52:53 +02:00
Stefan Prodan f812f045c6
Set module name to `github.com/fluxcd/cli-utils`
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-11-20 08:45:35 +02:00
Kubernetes Prow Robot 0b156cb042
Merge pull request #629 from ash2k/update-dependencies
Update k8s.io dependencies to v0.27.2
2023-08-09 10:49:50 -07:00
Mikhail Mazurskiy 8964a6691f
Update dependencies 2023-08-09 13:32:04 +10:00
Mikhail Mazurskiy ac3bd31c1f
Update linter and fix warnings 2023-08-09 13:27:48 +10:00
Simon Bein 542546c01d
Use HTTPClientFor instead of defaultHTTPClient
This allows for the http client to accept certificates from the kind
cluster.
2023-08-09 12:47:05 +10:00
Simon Bein e708f5aeca
disable linter for NewExponentialBackoffManager 2023-08-09 12:47:05 +10:00
Simon Bein b2051cfe5a
update dependencies to k8s.io v0.27.2 2023-08-09 12:47:05 +10:00
Kubernetes Prow Robot 68ab772f4d
Merge pull request #623 from sdowell/fix-retain-reconcile-fail
fix: retain objects which failed to reconcile
2023-07-24 15:32:12 -07:00
Sam Dowell cd911bfaa3 fix: retain objects which failed to reconcile
This change updates the set-inventory logic to retain objects which
failed to reconcile. This ensures that if you run the applier/destroyer
multiple times, an object that is failing to reconcile will be retained
in the inventory. Before this change, an object failing to reconcile
could be lost after multiple attempts (e.g. multiple destroys).
2023-07-24 15:06:23 -07:00
Kubernetes Prow Robot 833d70fad2
Merge pull request #622 from sdowell/fix-partial-destroy
fix: retain inventory for pruning fail/skip
2023-07-24 14:28:13 -07:00
Sam Dowell 1c4eae944c fix: retain inventory for pruning failures
Prior to this change, the inventory always was deleted at the end of a
Destroy event. This would occur even in the case of a pruning
failure, resulting in the objects being removed from the inventory
without being deleted. This change makes it so that the inventory is
only deleted if all objects have been pruned.
2023-07-18 15:49:48 -07:00
Kubernetes Prow Robot 8609e42fe8
Merge pull request #624 from sdowell/fix-stress-test
test: reduce size of stress test deployments
2023-07-18 15:48:02 -07:00
Sam Dowell 71adec978a test: reduce size of stress test deployments
The stress tests create 1000 copies of this deployment on the kind
cluster, which means that these deployments are in contention for
resources with the kind control plane and test suite. Reducing the size
of these test deployments should help the stress test run with fewer
resources available, and will hopefully get the presubmits passing.
2023-07-18 13:05:25 -07:00
Kubernetes Prow Robot ed4ec48b34
Merge pull request #617 from ash2k/pass-watch-strategy
Allow to pass watcher strategy
2023-03-20 14:17:11 -07:00
Mikhail Mazurskiy 73518bbe20
Allow to pass watcher strategy 2023-03-16 16:07:45 +11:00
Kubernetes Prow Robot 7a6572a700
Merge pull request #615 from ash2k/bump-deps
Bump dependencies
2023-03-07 12:20:33 -08:00
Kubernetes Prow Robot ea5bfa47c3
Merge pull request #616 from yashsingh74/update-registry
Update registry k8s.gcr.io -> registry.k8s.io
2023-02-16 20:57:38 -08:00
Yash Singh a4b24bdc46
Update registry k8s.gcr.io -> registry.k8s.io 2023-02-17 08:41:28 +05:30
Kubernetes Prow Robot 8f4238a810
Merge pull request #614 from manfredlift/mliiv-patch-1
fix: objects flagged by CurrentUIDFilter should be removed from the inventory
2023-01-18 11:22:35 -08:00
Manfred Liiv fa95a60e37 add a link to cohabitating resources in comments 2023-01-18 12:09:52 +00:00
Manfred Liiv 1b7d9bc295 fix: objects flagged by CurrentUIDFilter should be removed from the inventory
During pruning the code is filtering objects with `CurrentUIDFilter`:
> // CurrentUIDFilter implements ValidationFilter interface to determine
// if an object should not be pruned (deleted) because it has recently
// been applied.

This must mean that the object has ended up being tracked in the inventory by more than one reference and the one that was flagged by the filter should be removed from the inventory. Otherwise, it gets stuck in the inventory indefinitely and during every invocation of prune it'll be logged as skipped.

A good example of this is `Ingress` kind existing in both groups `extensions` and `networking.k8s.io` in k8s 1.19 & 1.20. This means when you rename the apiGroup in your local yaml to the new recommended group, then the reference with the old group name gets permastuck in the inventory.
2023-01-16 17:29:19 +00:00
Manfred Liiv 982fab3ecd add failing currentUIDFilter e2e test demonstrating https://github.com/kubernetes-sigs/cli-utils/issues/613 2023-01-16 17:29:19 +00:00
Mikhail Mazurskiy a17008ea78
Fix linter warnings 2023-01-16 15:42:19 +11:00
Mikhail Mazurskiy be1f297d16
Bump dependencies 2023-01-16 12:25:01 +11:00
Kubernetes Prow Robot 11a155028c
Merge pull request #612 from manfredlift/fix-apply-failed-error
fix: pass error to applyFailed events
2023-01-13 17:06:13 -08:00
Manfred Liiv 051eca74cf fix: pass error to applyFailed events
There was a bug where an error from an apply filter wasn't propagated to the applyFailed event, which leaded to printed events without error message set on them:
> {"group":"rbac.authorization.k8s.io","kind":"RoleBinding","name":"redacted","namespace":"redacted","status":"Failed","timestamp":"2022-12-21T12:43:46Z","type":"apply"}
2022-12-21 16:10:34 +02:00
Kubernetes Prow Robot 135cc3f509
Merge pull request #606 from ash2k/ash2k/bump-deps
Update dependencies to Kubernetes v1.25.3
2022-11-03 14:32:15 -07:00
Mikhail Mazurskiy 7f1d7db44d
chore: remove file 2022-11-03 10:59:44 +11:00
Mikhail Mazurskiy 10ac02886d
chore: fix linter warnings 2022-11-03 10:59:44 +11:00
Mikhail Mazurskiy b07f05fc13
chore: update dependencies to Kubernetes v1.25.3 2022-11-03 10:59:44 +11:00
Kubernetes Prow Robot d2e7237c8b
Merge pull request #609 from rquitales/bump-go
chore: Update Go to v1.18
2022-11-02 15:33:02 -07:00
Ramon Quitales 9d2cc31682 chore: Bump go to v1.18 2022-11-02 18:58:26 +00:00
Kubernetes Prow Robot 57ba470f4b
Merge pull request #608 from rquitales/update-golangci-lint
chore: Bump golangci-lint version
2022-11-01 17:34:47 -07:00
Ramon Quitales 49981f74f3 chore: Remove deprecated linters
`varcheck`, `structcheck` and `deadcode` were deprecated in 2021. This
commit removes them. Their functionality is provided by the `unused`
linter.

See: https://github.com/golangci/golangci-lint/issues/1841
2022-11-01 22:23:17 +00:00
Ramon Quitales c494d01128 refactor: Fix linting issues found in golangci-lint v1.50.0 2022-11-01 22:21:31 +00:00
Ramon Quitales 31fa3deb2a chore: Bump golangci-lint version
This commit bumps golangci-lint to v1.5.0 as the older version has
memory issues that causes presubmits to time out.
2022-11-01 16:49:50 +00:00