-
Notifications
You must be signed in to change notification settings - Fork 474
Fix kustomize5 warnings #2534
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
base: master
Are you sure you want to change the base?
Fix kustomize5 warnings #2534
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
@juliusvonkohout I am currently facing this issue Any help in fixing this will be great!! |
then please just omit the change there. Only implement what is simple and gets you a zero difference (post diff -u) in output. Fixing just 80 % of the warnings is totally fine. But i think you have to rebase to master first. |
Check also #2511 (comment) |
@juliusvonkohout gimme time till this weekend, i have narroed down the root cause to |
@juliusvonkohout finally some success... i need to further test for any regressions which i will do later today and rebase with master has been done |
1733004
to
4fc8120
Compare
/unhold |
@Electronic-Waste can I please get some help in identify the root cause of the test failures? |
/retest |
@juliusvonkohout all issues resolved as promised... i had to completely get rid of |
@Electronic-Waste all good now!! All tests have passed!! Can you please review this PR |
can you post a diff -u to compare old and new rendered manifests for each kustomization.yaml and make sure that there is no difference? |
sorry Julius, I am unable to understand what to do here... do you want to me to compare the yamls generated as output of |
@juliusvonkohout @andreyvelich I have come accrss a situation where diff -u on the new rendered manifests are resulting in some difference in output as shown below This is due to the fact that I had to get rid of patches for katib-cert-manager to make replacements work and add the aanotation to the |
@juliusvonkohout same with |
@andreyvelich @juliusvonkohout requested changes have been made |
/retest |
1 similar comment
/retest |
cb87a98
to
34e7f5b
Compare
@andreyvelich @juliusvonkohout all checks have passed after rebasing with master. Please review again and provide your feedback/approval. |
# This is the 1st commit message: accepted change to ghcr as part of rebase Signed-off-by: Vikas Saxena <[email protected]> # This is the commit message kubeflow#2: fixed ui-virtual-service.yaml Signed-off-by: Vikas Saxena <[email protected]> # This is the commit message kubeflow#3: replaced vars with replacements Signed-off-by: Vikas Saxena <[email protected]> # This is the commit message kubeflow#4: repalced vars with replacements Signed-off-by: Vikas Saxena <[email protected]> # This is the commit message kubeflow#5: replaced vars with replacements Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]> fixed ui-virtual-service.yaml Signed-off-by: Vikas Saxena <[email protected]> replaced vars with replacements Signed-off-by: Vikas Saxena <[email protected]> repalced vars with replacements Signed-off-by: Vikas Saxena <[email protected]> replaced vars with replacements Signed-off-by: Vikas Saxena <[email protected]> ran kustomizr edit fix Signed-off-by: Vikas Saxena <[email protected]> ran kustomizr edit fix Signed-off-by: Vikas Saxena <[email protected]> ran kustomize edit fix Signed-off-by: Vikas Saxena <[email protected]> ran kustomize edit fix Signed-off-by: Vikas Saxena <[email protected]> trying to get rdi of error Signed-off-by: Vikas Saxena <[email protected]> removing braces in kustomization.yaml Signed-off-by: Vikas Saxena <[email protected]> refactoring code to get ridd of missing value Signed-off-by: Vikas Saxena <[email protected]> fixing code alignment issue Signed-off-by: Vikas Saxena <[email protected]> removed patches from customization file Signed-off-by: Vikas Saxena <[email protected]> added placeholder values Signed-off-by: Vikas Saxena <[email protected]> replaced placeholder value Signed-off-by: Vikas Saxena <[email protected]> removed patches dir Signed-off-by: Vikas Saxena <[email protected]> added skipping of . as mentioned at https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/replacements/#field-path-format Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
Signed-off-by: Vikas Saxena <[email protected]>
34e7f5b
to
8558848
Compare
/retest |
1 similar comment
/retest |
@juliusvonkohout same summary as above ![]() ![]() ![]() ![]() ![]() |
/retest |
1 similar comment
/retest |
Signed-off-by: Vikas Saxena <[email protected]>
/retest |
1 similar comment
/retest |
annotations: | ||
cert-manager.io/inject-ca-from: KATIB_NAMESPACE_PLACEHOLDER/KATIB_CERT_NAME_PLACEHOLDER |
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.
We should add cert-manager related parameters in https://github.com/kubeflow/katib/tree/master/manifests/v1beta1/installs/katib-with-kubeflow since in Katib project, the cert-manager is not required dependencies. The certmanager is required dependencies only for Katib with Kubeflow.
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.
@tenzen-y Apologies, I just saw this. The reason I added this here was this annotation was previously applied with patches and with move to replacements from vars, the replacements get applied first before patches and hence the builds were failing. Given this annotation was not used elsewhere in katib-standalone and other modules I thought of adding it to the main webhook configuration. But I do not have background on Katib so I left it for review so I am open to ideas, can you suggest something that would be more ideal and I can make that change as part of this PR.
PS: this is my first time doing heavylifting work on Kustomize so yes there is some skill gap.
What this PR does / why we need it:
This PR aims at fixing deprecation warnings while runing kustomize build on manifest
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes: kubeflow/manifests#2985
Checklist: