Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Update kustomize to v3.8.7 #3457

Closed
ahached opened this issue Apr 1, 2021 · 3 comments · Fixed by #3504
Closed

Update kustomize to v3.8.7 #3457

ahached opened this issue Apr 1, 2021 · 3 comments · Fixed by #3504
Assignees
Milestone

Comments

@ahached
Copy link
Contributor

ahached commented Apr 1, 2021

Currently Flux v1 is using kustomize v.3.8.4.
It would be nice to upgrade the kustomize to at least v3.8.5 or above to leverage the var ref in deployment template annotations.
https://github.com/kubernetes-sigs/kustomize/blob/kustomize/v3.8.5/api/konfig/builtinpluginconsts/varreference.go

@kingdonb kingdonb self-assigned this Apr 1, 2021
@kingdonb kingdonb added this to the 1.22.2 milestone Apr 1, 2021
@kingdonb
Copy link
Member

kingdonb commented Apr 2, 2021

Hi! Thanks for the suggestion!

Flux v1 is currently in maintenance mode, I wonder if you've tried the new Kustomize Controller? We are being very conservative about upgrading things in Flux v1 because of the new development work that is taking place in Flux v2.

If there is something stopping you from moving to Flux v2, we'd much rather address that and make the investment where the new development is going.

I see you've submitted this as a PR, I'm not sure it can be merged if it adds new features. Can you make the case for this in a way that it helps as a transitionary feature, that will make it easier to move to Flux v2?

Broadly, we are not trying to attract new users to Flux v1 if they can be onboarded with the new architecture instead because so many scaling and support issues are already solved there. I would be more likely to consider this for merge if it was accompanied by a piece of documentation explaining the new functionality. What do you think about this?

@kingdonb kingdonb changed the title Update kustomize to v3.8.5 Update kustomize to v3.10.0 Apr 8, 2021
@kingdonb kingdonb modified the milestones: 1.22.2, 1.23.0 Apr 22, 2021
@kingdonb
Copy link
Member

There is fluxcd/flux-prerelease:master-9beb95eb which you can pull now, if you wish to confirm before 1.22.2 is released that the update addresses your concerns from this issue.

I will hold this issue open until 1.23.0 simply for tracking that, whenever the next minor release 1.23.0 is out, we actually pick the same version of Kustomize that is in use in Flux v2 at that time.

The release should be ready not much later today, assuming I can find approvers as I need them. 👍

@kingdonb
Copy link
Member

kingdonb commented Jul 13, 2021

According to #3500, we might be inclined to downgrade the Kustomize version back to... I hope you are ready for this... Kustomize of no higher than <v3.8.8 🤦

Thanks again for your initial submission, which suggested the most conservative upgrade. I think it will cause too much chaos to upgrade Kustomize any further, and based on experience in Flux v2, the Kustomize v4 upgrade certainly has enough breaking changes that it will definitely not be possible.

Upgrading to v3.10.0 seems quite unlikely too at this point. I'm going to leave this issue open for visibility, but for the record I just wanted to tie this still-outstanding issue to the new issue report that just surfaced.

kingdonb pushed a commit that referenced this issue Jul 14, 2021
According to #3500, there are breaking changes in the patch release of
Kustomize v3.8.8 which were included in the Flux 1.23.0 release that
upgraded from Kustomize v3.8.4 to v3.8.10.

A PATCH or MINOR release in semver is meant to signal that compatibility
is maintained, but it appears the semver wasn't totally honest and a
behavior was changed in a destructive way for some users.

Other Flux users were looking (#3457) for functionality that was added
in v3.8.5, (so I guess that could have been our first clue semver isn't
strictly honored) rather than revert the update entirely, we'd like to
at least upgrade that far.

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
@kingdonb kingdonb changed the title Update kustomize to v3.10.0 Update kustomize to v3.8.7 Jul 14, 2021
@kingdonb kingdonb modified the milestones: 1.24.0, 1.23.1 Jul 14, 2021
kingdonb pushed a commit that referenced this issue Jul 21, 2021
According to #3500, there are breaking changes in the patch release of
Kustomize v3.8.8 which were included in the Flux 1.23.0 release that
upgraded from Kustomize v3.8.4 to v3.8.10.

A PATCH or MINOR release in semver is meant to signal that compatibility
is maintained, but it appears the semver wasn't totally honest and a
behavior was changed in a destructive way for some users.

Other Flux users were looking (#3457) for functionality that was added
in v3.8.5, (so I guess that could have been our first clue semver isn't
strictly honored) rather than revert the update entirely, we'd like to
at least upgrade that far.

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
kingdonb pushed a commit to spron-in/flux that referenced this issue Jul 21, 2021
According to fluxcd#3500, there are breaking changes in the patch release of
Kustomize v3.8.8 which were included in the Flux 1.23.0 release that
upgraded from Kustomize v3.8.4 to v3.8.10.

A PATCH or MINOR release in semver is meant to signal that compatibility
is maintained, but it appears the semver wasn't totally honest and a
behavior was changed in a destructive way for some users.

Other Flux users were looking (fluxcd#3457) for functionality that was added
in v3.8.5, (so I guess that could have been our first clue semver isn't
strictly honored) rather than revert the update entirely, we'd like to
at least upgrade that far.

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
@kingdonb kingdonb linked a pull request Jul 22, 2021 that will close this issue
kingdonb pushed a commit that referenced this issue Jul 22, 2021
According to #3500, there are breaking changes in the patch release of
Kustomize v3.8.8 which were included in the Flux 1.23.0 release that
upgraded from Kustomize v3.8.4 to v3.8.10.

A PATCH or MINOR release in semver is meant to signal that compatibility
is maintained, but it appears the semver wasn't totally honest and a
behavior was changed in a destructive way for some users.

Other Flux users were looking (#3457) for functionality that was added
in v3.8.5, (so I guess that could have been our first clue semver isn't
strictly honored) rather than revert the update entirely, we'd like to
at least upgrade that far.

Signed-off-by: Kingdon Barrett <kingdon@weave.works>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants