-
Notifications
You must be signed in to change notification settings - Fork 18
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
Updating outdated Kustomize syntax to be in line with Kustomize v5 syntax #67
Updating outdated Kustomize syntax to be in line with Kustomize v5 syntax #67
Conversation
Signed-off-by: Killian Golds <[email protected]>
Skipping CI for Draft Pull Request. |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you upgrade kustomize from v4 to v5?
I see. We are already using v5 but we are just using outdated syntax. Could you update the title/description to clarify that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KillianGolds, terrytangyuan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Motivation
The main motivation for this update is to keep our manifests up to date with Kustomize v5. This ensures that we are using the latest syntax, which improves the compatibility and maintainability of our Kubernetes configurations.
Modifications
1. Replacements Section:
Old Syntax:
New Syntax:
2. Patch Paths:
How I Tested
To ensure the correctness of these changes, the following steps were taken:
Gist of all kustomize build pre-changes and post-changes: https://gist.github.com/KillianGolds/522e22734d547a90e69a619498ab71ca
Result
These changes ensure that our Kustomize labels are up to date with version 5 syntax. Everything works as it should, with no changes to functionality other than updated syntax and corrected field paths for replacements and patches.