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

fix(ws): use correct nodeSelector type and add CRD validation tests #21

Merged

Conversation

thesuperzapper
Copy link
Member

@thesuperzapper thesuperzapper commented Jul 3, 2024

This PR makes the following changes to the workspace controller:

  • Uses the correct type for spec.podTemplate.options.podConfig.values[].spec.nodeSelector
  • Ensures that the spec of podConfig and imageConfig values does not change
  • Updates a few types to use the +listType:="map" because they should not support multiple elements with the same key:
    • spec.podTemplate.volumes.data[] (keyed on name)
    • spec.podTemplate.extraEnv[] (keyed on name)

I have also added tests for some of the more complicated +kubebuilder:validation:XValidation / x-kubernetes-validations we are doing, so we dont have to worry about regressions in the future.

@thesuperzapper
Copy link
Member Author

@jiridanek this should be a simple review so we can unblock the reconciliation work by @Adembc (mainly the issue he had was related to the type of nodeSelector.

@jiridanek
Copy link
Member

/lgtm

@thesuperzapper sorry about the approve; our (@openshift's) instance of prow understands github approve as a lgtm; guess different configuration

@thesuperzapper
Copy link
Member Author

/approve

@Adembc don't forget to rebase your PR on notebooks-v2 after this merges.

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jiridanek, thesuperzapper

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

@google-oss-prow google-oss-prow bot merged commit ca78327 into kubeflow:notebooks-v2 Jul 5, 2024
3 checks passed
@thesuperzapper thesuperzapper deleted the update-crds-and-tests branch July 5, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants