Skip to content

Commit b7d9a95

Browse files
VanillaSpoonBobbins228
authored andcommitted
PATCH: openshift kustomize overlay for odh operator
1 parent 8adc538 commit b7d9a95

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: kuberay-operator
5+
spec:
6+
template:
7+
spec:
8+
containers:
9+
- name: kuberay-operator
10+
image: $(image)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
namespace: opendatahub
5+
6+
configMapGenerator:
7+
- name: ray-config
8+
envs:
9+
- params.env
10+
11+
configurations:
12+
- params.yaml
13+
14+
vars:
15+
- name: namespace
16+
objref:
17+
kind: ConfigMap
18+
name: ray-config
19+
apiVersion: v1
20+
fieldref:
21+
fieldpath: data.namespace
22+
- name: image
23+
objref:
24+
kind: ConfigMap
25+
name: ray-config
26+
apiVersion: v1
27+
fieldref:
28+
fieldpath: data.odh-kuberay-operator-controller-image
29+
30+
resources:
31+
- ray_operator_scc.yaml
32+
- ../default
33+
34+
commonLabels:
35+
app.kubernetes.io/name: kuberay
36+
app.kubernetes.io/component: kuberay-operator
37+
38+
patches:
39+
- path: kuberay-operator-image-patch.yaml
40+
target:
41+
group: apps
42+
version: v1
43+
kind: Deployment
44+
name: kuberay-operator
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
namespace=opendatahub
2+
odh-kuberay-operator-controller-image=quay.io/kuberay/operator:v0.6.0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
varReference:
2+
- path: users[]
3+
kind: SecurityContextConstraints
4+
- path: spec/template/spec/containers[]/image
5+
kind: Deployment
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
kind: SecurityContextConstraints
2+
apiVersion: security.openshift.io/v1
3+
metadata:
4+
name: run-as-ray-user
5+
seLinuxContext:
6+
type: MustRunAs
7+
runAsUser:
8+
type: MustRunAs
9+
uid: 1000
10+
users:
11+
- 'system:serviceaccount:$(namespace):kuberay-operator'

0 commit comments

Comments
 (0)