Skip to content

Introduce kustomize build options #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ron1
Copy link
Contributor

@ron1 ron1 commented Mar 10, 2021

This PR resolves #155 and has a dependency on forked kustomize v3 tag https://github.com/ron1/kustomize/releases/tag/kustomize%2Fv3.8.10-fleet4. Once Fleet and the Kustomize community move to kustomize v4, the dependency on a forked kustomize repo will be no longer since the build cmd in kustomize v4 exposes the apis needed by Fleet.

Copy link
Contributor

@nickgerace nickgerace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As usual, thanks for the PR @ron1! It LGTM at a first pass, barring a few comments.

@StrongMonkey
Copy link
Contributor

@ron1 Thanks for your PR! I am down for upgrading to latest kustomize v4, but do you know any specific reason that v4 is going to create an incompatible issue against v3?

@ron1
Copy link
Contributor Author

ron1 commented Mar 10, 2021

@StrongMonkey See the Kustomize v4 and v3.10.0 release notes here. My biggest concerns are:

  1. go-getter url support dropped which may break kustomize build urls, resources urls, etc. Given time, it may be that an alternate solution for this issue becomes available.
  2. kyaml library completely replaces k8s.io-based code with no turning back.

Since Fleet is relatively new, maybe it can get away with some backwards incompatibility. Also, Kustomize 4 now re-syncs with kubectl so that might expedite its adoption. OTOH, I suspect other CD tools like ArgoCD and Flux will take their time before they move to Kustomize v4.

Let me know your thoughts.

@ron1
Copy link
Contributor Author

ron1 commented Mar 18, 2021

@StrongMonkey @nickgerace Have you decided on a path forward regarding this patch? It would be great to get this patch into a 0.3.5 release candidate if possible.

@nickgerace
Copy link
Contributor

@ron1 May you rebase first? I want to see if the CI runs pass first. I think this approach is okay with me, but would love @StrongMonkey's take. I'll re-review after rebase

@ron1 ron1 force-pushed the introduce-kustomize-buildOptions branch from e604342 to 7a7402f Compare April 7, 2021 17:37
@ron1
Copy link
Contributor Author

ron1 commented Apr 7, 2021

@nickgerace I pushed the rebased branch. I'll look forward to your re-review and feedback. Thanks!

@nickgerace
Copy link
Contributor

@ron1: Ironic timing. I just merged #328 so we may need to rebase again.

@ron1
Copy link
Contributor Author

ron1 commented Apr 7, 2021

@nickgerace Working on it now.

@ron1 ron1 force-pushed the introduce-kustomize-buildOptions branch from 7a7402f to fb7c563 Compare April 7, 2021 20:32
@ron1
Copy link
Contributor Author

ron1 commented Apr 7, 2021

@nickgerace Just pushed a rebase on your kustomize v3.8.10 upgrade commit. Remember that my commit depends upon this kustomize fork which would presumably need to be moved to repo rancher/kustomize.

nickgerace
nickgerace previously approved these changes Apr 7, 2021
Copy link
Contributor

@nickgerace nickgerace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given our previous conversations and PRs/issues, this LGTM, but I would like an approval from @StrongMonkey and/or @ibuildthecloud first. As usual, thanks @ron1

@ron1
Copy link
Contributor Author

ron1 commented Apr 11, 2021

Hi @StrongMonkey. Would you have some time to review this small PR? I was looking forward to this feature landing in Rancher 2.5.8.

@StrongMonkey
Copy link
Contributor

@ron1 This is the commit you added in your fork? ron1/kustomize@affd5ec

@ron1
Copy link
Contributor Author

ron1 commented Apr 12, 2021

@ron1 This is the commit you added in your fork? ron1/kustomize@affd5ec

@StrongMonkey Correct! The fork is inspired by the refactored code in kustomize v4. So, once fleet upgrades to kustomize v4, the Rancher kustomize fork will no longer be needed. Note that most of the code in the fork is a unit test to validate the new functionality.

@ron1
Copy link
Contributor Author

ron1 commented Dec 1, 2021

@nickgerace @StrongMonkey Now that fleet has upgraded to kustomize 4.1.2, I force pushed a revised PR for this feature that no longer has a dependency on a forked kustomize v3 tag. Please review and provide feedback.

Thanks,

Ron

@ron1 ron1 force-pushed the introduce-kustomize-buildOptions branch from c9ae9c3 to ed750b1 Compare December 1, 2021 06:13
@ron1
Copy link
Contributor Author

ron1 commented Dec 4, 2021

I think this is a pretty low risk commit. Any way this could be included in Rancher 2.6.3?

@ron1 ron1 force-pushed the introduce-kustomize-buildOptions branch from ed750b1 to 8d30b85 Compare January 20, 2022 14:11
@ron1
Copy link
Contributor Author

ron1 commented Feb 27, 2022

@kinarashah Are you able to review this PR? It has been open for a while now.

@kinarashah kinarashah requested review from aiyengar2 and removed request for StrongMonkey and kinarashah February 28, 2022 17:48
@kinarashah
Copy link
Member

@ron1 Thanks for the reminder, I am not aware of changes in fleet recently. Pinging @aiyengar2 and @prachidamle for review.

@McSoda
Copy link

McSoda commented Dec 15, 2022

Hi,
Will this PR finally been merged or its goal achieved in some other?
Regards

@manno
Copy link
Member

manno commented Jun 14, 2023

This seems outdated.

@manno manno closed this Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure kustomize build options
7 participants