Skip to content

Commit

Permalink
add: Patch for the operator image
Browse files Browse the repository at this point in the history
  • Loading branch information
VanillaSpoon authored and astefanutti committed Oct 18, 2023
1 parent 9c2c908 commit 926fd4f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ray-operator/config/openshift/kuberay-operator-image-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuberay-operator
spec:
template:
spec:
containers:
- name: kuberay-operator
image: $(image)
16 changes: 16 additions & 0 deletions ray-operator/config/openshift/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ configMapGenerator:
- name: ray-config
envs:
- params.env

configurations:
- params.yaml

Expand All @@ -18,6 +19,13 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.namespace
- name: image
objref:
kind: ConfigMap
name: ray-config
apiVersion: v1
fieldref:
fieldpath: data.odh-kuberay-operator-controller-image

resources:
- ray_operator_scc.yaml
Expand All @@ -26,3 +34,11 @@ resources:
commonLabels:
app.kubernetes.io/name: kuberay
app.kubernetes.io/component: kuberay-operator

patches:
- path: kuberay-operator-image-patch.yaml
target:
group: apps
version: v1
kind: Deployment
name: kuberay-operator

0 comments on commit 926fd4f

Please sign in to comment.