-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(component): Refactors sync.py
to use json templates for resources. Fixes #11851
#11858
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?
Conversation
Signed-off-by: Gabriel Rudloff <[email protected]>
Hi @grudloffev. Thanks for your PR. I'm waiting for a kubeflow 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/test-infra repository. |
🚫 This command cannot be processed. Only organization members or owners can use the commands. |
sync.py
to use json templates for resources. Fixes #11828sync.py
to use json templates for resources. Fixes #11828
Changes to WIP, as fixing the test has not been done yet. |
sync.py
to use json templates for resources. Fixes #11828sync.py
to use json templates for resources. Fixes #11851
All tests are failing on current main branch😞
|
Confirmed regression source by rolling back to a6b944b894a4a297a6310f5028a8c27e3603ac16 (Commit before the metacontroller update) and then rolling forward to ebaaf756319ac4ac9498aca5f7dfb3978ff36496 (Metacontroller update), and on the former all tests pass while on the later they all fail. |
sync.py
to use json templates for resources. Fixes #11851sync.py
to use json templates for resources. Fixes #11851
Tests are passing now |
Fixes #11859 |
/ok-to-test |
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.
@grudloffev Can you please sign off your commits?
Signed-off-by: Gabriel Rudloff <[email protected]>
Signed-off-by: Gabriel Rudloff <[email protected]>
Signed-off-by: Gabriel Rudloff <[email protected]>
Signed-off-by: Gabriel Rudloff <[email protected]>
4778ebf
to
3b56332
Compare
My bad, I missed one. I think it is good now |
/ok-to-test |
/unhold |
Approvals successfully granted for pending runs. |
related issue #10904 |
[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 |
/ok-to-test |
Approvals successfully granted for pending runs. |
Signed-off-by: Gabriel Rudloff <[email protected]>
/ok-to-test |
Approvals successfully granted for pending runs. |
Description of your changes:
This PR introduces a refactor to the
sync.py
file, making the loading of the desired resources completely dynamic by reading the list of resources from a template json file. Moreover, an additional template (empty by default) is also available to pass additional resources in case one would like to do so with kustomize.Fixes #11851
How is this achieved?
desired_resources
object is populated through a function, which reads the resources from json templates, where variables to be replaced are indicated with double curly braces.sync.py
via aConfigMap
.desired_resources
.Checklist: