Skip to content
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

scheduler: update: use unstructured in RenderConfig #225

Merged

Conversation

ffromani
Copy link
Collaborator

Rewrite RenderConfig to use unstructured vs typed API.
The rationale for this change is that doing so will enable us to drop all the dependencies to the scheduler-plugins
API packages, which pull the scheduler API package, which eventually pulls in k8s.io/kubernetes, which we should
really NOT depend on.

We take the change to improve the RenderConfig API and make it forward extensible, anticipating the future support
for more scheduler plugin parameters.

The end result in terms of rendered YAML is expected to be not 1:1 indentical, but fully compatible.

@ffromani
Copy link
Collaborator Author

/hold

looks promising, but needs more testing

@ffromani ffromani force-pushed the sched-config-render-unstruct branch 2 times, most recently from e5620a6 to 8cea7cb Compare October 23, 2023 08:09
The Scheduler Profile Name field was supposed to
be passed down the stack, but it wasn't because of
a overlook. Previously the mistake was dormant,
but the upcoming scheduler.RenderConfig changes
will trigger this.

Signed-off-by: Francesco Romani <[email protected]>
Rewrite RenderConfig to use `unstructured` vs typed API.
The rationale for this change is that doing so will
enable us to drop all the dependencies to the scheduler-plugins
API packages, which pull the scheduler API package, which
eventually pulls in k8s.io/kubernetes, which we should
really NOT depend on.

We take the change to improve the RenderConfig API and make
it forward extensible, anticipating the future support
for more scheduler plugin parameters.

The end result in terms of rendered YAML is expected
to be not 1:1 indentical, but fully compatible.

Signed-off-by: Francesco Romani <[email protected]>
no longer needed; the RenderConfig code uses
unstructured now.

Signed-off-by: Francesco Romani <[email protected]>
We use unstructured now, so we no longer depend
on the API packages.

Signed-off-by: Francesco Romani <[email protected]>
@ffromani ffromani force-pushed the sched-config-render-unstruct branch from 7d47b1d to bb37528 Compare October 23, 2023 14:16
Copy link
Collaborator

@swatisehgal swatisehgal left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

/hold in case @Tal-or would like to have another pass.

@ffromani feel free to unhold as you see fit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants