-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ValidateRayClusterSpec in raycluster webhook, copy necessar…
…y func and variables to /ray/v1
- Loading branch information
Showing
4 changed files
with
46 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package v1 | ||
|
||
// In KubeRay, the Ray container must be the first application container in a head or worker Pod. | ||
const RayContainerIndex = 0 | ||
|
||
// Use as container env variable | ||
const RAY_REDIS_ADDRESS = "RAY_REDIS_ADDRESS" | ||
|
||
// Ray GCS FT related annotations | ||
const RayFTEnabledAnnotationKey = "ray.io/ft-enabled" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package v1 | ||
|
||
import corev1 "k8s.io/api/core/v1" | ||
|
||
func EnvVarExists(envName string, envVars []corev1.EnvVar) bool { | ||
for _, env := range envVars { | ||
if env.Name == envName { | ||
return true | ||
} | ||
} | ||
return false | ||
} |