Skip to content

Commit 991d29e

Browse files
authored
Merge pull request #577 from fluxcd/release-v0.21.1
Release v0.21.1
2 parents 4b139e8 + 91f6d8e commit 991d29e

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## 0.21.1
6+
7+
**Release date:** 2022-02-23
8+
9+
This prerelease comes with a workaround for an
10+
[upstream bug in Kubernetes](https://github.com/kubernetes/kubernetes/issues/108008),
11+
where the keys set in a Secret with `stringData` are not removed from the cluster
12+
when the keys are deleted from the manifest.
13+
14+
Improvements:
15+
- Convert `stringData` to `data` before applying Secrets
16+
[#576](https://github.com/fluxcd/kustomize-controller/pull/576)
17+
- Update dependencies
18+
[#574](https://github.com/fluxcd/kustomize-controller/pull/574)
19+
520
## 0.21.0
621

722
**Release date:** 2022-02-16

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ resources:
55
images:
66
- name: fluxcd/kustomize-controller
77
newName: fluxcd/kustomize-controller
8-
newTag: v0.21.0
8+
newTag: v0.21.1

docs/spec/v1beta2/kustomization.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,18 @@ Note that when the `kustomize.toolkit.fluxcd.io/reconcile` annotation is set to
368368
the controller will no longer apply changes from source, nor will it prune the resource.
369369
To resume reconciliation, set the annotation to `enabled` or remove it.
370370

371-
Note that due to the way [Kubernetes server-side apply](https://kubernetes.io/docs/reference/using-api/server-side-apply/)
372-
works, the kustomize-controller can only revert
373-
changes made to fields it manages. This means that `kubectl edit` changes will only be reverted if
374-
those fields are present in git.
371+
If you use kubectl to edit an object managed by Flux,
372+
all changes will be undone when kustomize-controller reconciles a
373+
Flux Kustomization containing that object.
374+
n order for kustomize-controller to preserve fields added with kubectl,
375+
you have to specify a field manager named `flux-client-side-apply` e.g.:
376+
377+
```sh
378+
kubectl apply --field-manager=flux-client-side-apply
379+
```
380+
381+
Note that the fields defined in manifests will always be overridden,
382+
the above procedure works only for adding new fields that don’t overlap with the desired state.
375383

376384
## Garbage collection
377385

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/ProtonMail/go-crypto v0.0.0-20211112122917-428f8eabeeb3
1010
github.com/cyphar/filepath-securejoin v0.2.2
1111
github.com/drone/envsubst v1.0.3-0.20200804185402-58bc65f69603
12-
github.com/fluxcd/kustomize-controller/api v0.21.0
12+
github.com/fluxcd/kustomize-controller/api v0.21.1
1313
github.com/fluxcd/pkg/apis/acl v0.0.3
1414
github.com/fluxcd/pkg/apis/kustomize v0.3.1
1515
github.com/fluxcd/pkg/apis/meta v0.10.2

0 commit comments

Comments
 (0)