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

Provide override for autoscaler image pull policy. #297

Merged
merged 4 commits into from
Jun 8, 2022

Conversation

DmitriGekhtman
Copy link
Collaborator

@DmitriGekhtman DmitriGekhtman commented Jun 8, 2022

Why are these changes needed?

This PR exposes the autoscaler container pull policy in the Ray CRD for testing purposes. This PR is needed for Ray CI testing purposes.
The CI environment needs to have the pull policy set to IfNotPresent, while for local testing the default policy of Always is more convenient.
A quick review is appreciated.

Related issue number

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

customTimeout := int32(100)
customUpscaling := "Aggressive"
customUpscaling := rayiov1alpha1.UpscalingMode("Aggressive")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is clean-up

@@ -358,15 +359,17 @@ func TestBuildPodWithAutoscalerOptions(t *testing.T) {
}

cluster.Spec.AutoscalerOptions = &rayiov1alpha1.AutoscalerOptions{
UpscalingMode: (*rayiov1alpha1.UpscalingMode)(&customUpscaling),
UpscalingMode: &customUpscaling,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

clean-up

@DmitriGekhtman DmitriGekhtman merged commit 69ecfce into ray-project:master Jun 8, 2022
@DmitriGekhtman DmitriGekhtman changed the title Set autoscaler imagePullPolicy to IfNotPresent. Provide override. Provide override for autoscaler image pull policy. Jun 9, 2022
@DmitriGekhtman DmitriGekhtman deleted the dmitri/pullPolicy branch June 9, 2022 00:12
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this pull request Sep 24, 2023
…y-project#297)

This PR exposes the autoscaler container pull policy in the Ray CRD for testing purposes.
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.

5 participants