forked from ray-project/kuberay
-
Notifications
You must be signed in to change notification settings - Fork 11
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
add: Security context constraints #3
Merged
astefanutti
merged 3 commits into
opendatahub-io:master
from
VanillaSpoon:SecurityContextConstraints
Oct 18, 2023
Merged
add: Security context constraints #3
astefanutti
merged 3 commits into
opendatahub-io:master
from
VanillaSpoon:SecurityContextConstraints
Oct 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Since we are only using the kustomize manifests for the ODH operator, I don't think we should change the existing helm manifests, just to make future rebases easier. @astefanutti wdyt? |
astefanutti
requested changes
Oct 5, 2023
VanillaSpoon
force-pushed
the
SecurityContextConstraints
branch
from
October 6, 2023 11:07
27a4f5b
to
391ae83
Compare
astefanutti
reviewed
Oct 6, 2023
opendatahub-io/opendatahub-operator#619 has been merged so the required namespace variable is injected by the ODH operator. |
/lgtm |
/approve |
Thanks for the thorough testing @VanillaSpoon. |
This was referenced Oct 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
This pr adds the Kuberay SCC to the repository to be deployed. The changes are added to both the Kustomize deployments.
Related issue number
closes red-hat-data-services/distributed-workloads#15
To check changes
Update the ray-operator/Makefile deploy to :
Kustomize:
make deploy -e IMG=<your-image
Check to ensure the run-as-ray-user SCC has been applied correctly, and ensure Users is set in the correct namespace (opendatahub):
Also ensure the ray-operator, and rbacs are applied within the
opendatahub
namespace.To check changes relating to using odh-operator variables:
Clone the opendatahub operator:
https://github.com/opendatahub-io/opendatahub-operator
Within
getAllManifests.sh
set the ray repository to :in components/ray/ray.go set your RayPath to :
and
Set your image repository in the makefile.
Run
make get-manifests
to get all the manifestsmake image -e IMAGE_BUILD_FLAGS="--build-arg USE_LOCAL=true"
to build and push an image containing all the manifests.make deploy -e IMG=<your-image>
On openshift go to your opendatahub-operator deployment and set your env variable in the yaml, this allows us to update the kuberay image.
Now deploy a DataScienceCluster managing ray:
From here, if you check out the opendatahub-operator logs, they will provide details of the manifests being updated ...
│ Updating manifests : /opt/manifests/ray/openshift
Check out your pods in the opendatahub namespace, and kuberay will be there with the image you set previously.
Check out the SCC's and ensure run-as-ray-user is applied, with the correct namespace.
Checks