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

WIP: Add backend support for input parameters for k8s fields #11622

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HumairAK
Copy link
Collaborator

Description of your changes:

This is the backend support that depends on the following PR: #11621

Input resolution change is extracted and made more generic so it may be re-used when buildling out the container spec
for the k8s config. The json parameters are unmarshalled into their respective k8s struct.

Checklist:

This change provides sdk support for the following kubernetes platform
fields:

* configmap name for configmap as env & volume
* secret name for configmap as env & volume
* image pull secret name

It also adds support for tolerations, node selectors as input json for
the entire toleration & node selector spec. We opt for this solution
because if a user were to try to use as input parameters individual key
value pairs, the input parameter count would increase drastically.

The implementation borrows the InputParamSpec from the pipeline spec
package. This is copied over instead of imported due to cyclic
dependency issues with proto imports and the current project structure.

Additionally, pvc_mount is updated to accomodate this new spec, which
makes it more in line & consistent with how input parameters are handled
elsewhere in the spec.

Finally, all old name parameter fields like configmap names, secret
names, etc. are deprecated, as the runtime value proto message covers
this via it's constant field.

Signed-off-by: Humair Khan <[email protected]>
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from humairak. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@HumairAK
Copy link
Collaborator Author

/hold until is merged: #11621

@HumairAK HumairAK requested review from mprahl and removed request for gregsheremeta February 12, 2025 14:19
@HumairAK HumairAK changed the title Add backend support for input parameters for k8s fields WIP: Add backend support for input parameters for k8s fields Feb 12, 2025
This change adds driver support for input parameter support for the
kubernetes platform spec. Input resolution change is extracted and made
more generic so it may be re-used when buildling out the container spec
for the k8s config. The json parameters are unmarshalled into their
respective k8s struct.

Signed-off-by: Humair Khan <[email protected]>
@HumairAK HumairAK force-pushed the issue-10914-backend branch from b2531fb to 2370789 Compare February 12, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant