-
Notifications
You must be signed in to change notification settings - Fork 45
RHOAIENG-11681: Running 'kustomize edit fix --vars' on each component to upgrade to kustomize v5 #609
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
Conversation
Hi @mtchoum1. Thanks for your PR. I'm waiting for a opendatahub-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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.
great start 💯
a small change is needed
components/notebook-controller/config/overlays/openshift/kustomization.yaml
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #609 +/- ##
==========================================
- Coverage 55.57% 55.14% -0.44%
==========================================
Files 10 10
Lines 2789 2791 +2
==========================================
- Hits 1550 1539 -11
- Misses 1106 1126 +20
+ Partials 133 126 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
commonAnnotations: | ||
service.beta.openshift.io/inject-cabundle: "true" | ||
configurations: | ||
- kustomizeconfig.yaml | ||
- kustomizeconfig.yaml |
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.
this indentation change would fail on notebook repository as we have the yaml indentation check in the CI there... but let's not bother with this here now since it's automatically generated
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.
sort of automatically generated; automatically formatted by tool that has different ideas what properly formatted yaml looks like, more like
@mtchoum1 thank you for these changes! For your convenience as I had some local changes on my fork already, I raised this PR #610 that contains a script that makes it quite easy to compare the results before and after your changes:
So I checked your branch with current main and there is no difference - just the warnings gone and we can now compile also with the latest kustomize version. So this is a big LGTM from myself. Of course, it is very welcome to perform a check on a running cluster with this code being handled by an actual operator! /lgtm We don't need to do the following tests: /override ci/prow/images |
@jstourac: Overrode contexts on behalf of jstourac: ci/prow/images In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/lgtm |
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
very well done 💯
thanks for the work
Tested on fresh cluster, with devflags:
{"level":"info","ts":"2025-06-02T04:34:03Z","msg":"Executing action","controller":"workbenches","controllerGroup":"components.platform.opendatahub.io","controllerKind":"Workbenches","Workbenches":{"name":"default-workbenches"},"namespace":"","name":"default-workbenches","reconcileID":"9cd7803f-07ca-4d6f-a2ca-2958df57283e","action":"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/status/releases.(*Action).run-fm"}
{"level":"info","ts":"2025-06-02T04:34:03Z","msg":"Executing action","controller":"workbenches","controllerGroup":"components.platform.opendatahub.io","controllerKind":"Workbenches","Workbenches":{"name":"default-workbenches"},"namespace":"","name":"default-workbenches","reconcileID":"9cd7803f-07ca-4d6f-a2ca-2958df57283e","action":"github.com/opendatahub-io/opendatahub-operator/v2/internal/controller/components/workbenches.configureDependencies"}
{"level":"info","ts":"2025-06-02T04:34:03Z","msg":"Executing action","controller":"workbenches","controllerGroup":"components.platform.opendatahub.io","controllerKind":"Workbenches","Workbenches":{"name":"default-workbenches"},"namespace":"","name":"default-workbenches","reconcileID":"9cd7803f-07ca-4d6f-a2ca-2958df57283e","action":"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/render/kustomize.(*Action).run-fm"}
{"level":"info","ts":"2025-06-02T04:34:03Z","msg":"Executing action","controller":"auth","controllerGroup":"services.platform.opendatahub.io","controllerKind":"Auth","Auth":{"name":"auth"},"namespace":"","name":"auth","reconcileID":"4ba69cb2-9fee-48be-be66-0f5a058c8dd6","action":"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/reconciler.(*dynamicWatchAction).run-fm"}
{"level":"info","ts":"2025-06-02T04:34:05Z","msg":"Executing action","controller":"workbenches","controllerGroup":"components.platform.opendatahub.io","controllerKind":"Workbenches","Workbenches":{"name":"default-workbenches"},"namespace":"","name":"default-workbenches","reconcileID":"9cd7803f-07ca-4d6f-a2ca-2958df57283e","action":"github.com/opendatahub-io/opendatahub-operator/v2/pkg/controller/actions/deploy.(*Action).run-fm"}
/retest-required |
/ok-to-test |
…ebook and odh-notebook
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.
Thanks for the squashing
/lgtm
/approve
great work 🎖️
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: harshad16 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 |
@mtchoum1 Now that we have this cleared out, should we activate the GHA to check the kustomize results for each PR as we do in notebooks repository? Any objections @harshad16 ? What to do for it was mentioned in #610 description. I'm happy to do it but it looks like a nice easy and quick task to get some experience on. |
Excellent point, no objections 💯 |
https://issues.redhat.com/browse/RHOAIENG-11681
Description
update the kustomize to for each component i.e (notebook-controller, odh-notebook-controller)
using the command:
kustomize edit fix --vars
Execute the above command in each dir of the component.
How Has This Been Tested?
verify the new set of deployment manifests.
kustomize build <path>
verify this on a cluster using devflags:
inside the RHOAI operator, update the DSC (data science cluster) yaml, with Workbenches devflags included
Merge criteria: