Skip to content

Commit 5db7cd1

Browse files
Add raycluster-sdk oauth test case for disconnected cluster setup
1 parent a03c72f commit 5db7cd1

9 files changed

+487
-20
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
10+
args: [--allow-multiple-documents]
1011
- id: check-added-large-files
1112
- repo: https://github.com/psf/black
1213
rev: 23.3.0

poetry.lock

Lines changed: 118 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ cryptography = "40.0.2"
2929
executing = "1.2.0"
3030
pydantic = "< 2"
3131
ipywidgets = "8.1.2"
32+
minio = "^7.2.7"
3233

3334
[tool.poetry.group.docs]
3435
optional = true

tests/e2e/minio_deployment.yaml

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
---
2+
kind: PersistentVolumeClaim
3+
apiVersion: v1
4+
metadata:
5+
name: minio-pvc
6+
spec:
7+
accessModes:
8+
- ReadWriteOnce
9+
resources:
10+
requests:
11+
storage: 20Gi
12+
volumeMode: Filesystem
13+
---
14+
kind: Secret
15+
apiVersion: v1
16+
metadata:
17+
name: minio-secret
18+
stringData:
19+
# change the username and password to your own values.
20+
# ensure that the user is at least 3 characters long and the password at least 8
21+
minio_root_user: minio
22+
minio_root_password: minio123
23+
---
24+
kind: Deployment
25+
apiVersion: apps/v1
26+
metadata:
27+
name: minio
28+
spec:
29+
replicas: 1
30+
selector:
31+
matchLabels:
32+
app: minio
33+
template:
34+
metadata:
35+
creationTimestamp: null
36+
labels:
37+
app: minio
38+
spec:
39+
volumes:
40+
- name: data
41+
persistentVolumeClaim:
42+
claimName: minio-pvc
43+
containers:
44+
- resources:
45+
limits:
46+
cpu: 250m
47+
memory: 1Gi
48+
requests:
49+
cpu: 20m
50+
memory: 100Mi
51+
readinessProbe:
52+
tcpSocket:
53+
port: 9000
54+
initialDelaySeconds: 5
55+
timeoutSeconds: 1
56+
periodSeconds: 5
57+
successThreshold: 1
58+
failureThreshold: 3
59+
terminationMessagePath: /dev/termination-log
60+
name: minio
61+
livenessProbe:
62+
tcpSocket:
63+
port: 9000
64+
initialDelaySeconds: 30
65+
timeoutSeconds: 1
66+
periodSeconds: 5
67+
successThreshold: 1
68+
failureThreshold: 3
69+
env:
70+
- name: MINIO_ROOT_USER
71+
valueFrom:
72+
secretKeyRef:
73+
name: minio-secret
74+
key: minio_root_user
75+
- name: MINIO_ROOT_PASSWORD
76+
valueFrom:
77+
secretKeyRef:
78+
name: minio-secret
79+
key: minio_root_password
80+
ports:
81+
- containerPort: 9000
82+
protocol: TCP
83+
- containerPort: 9090
84+
protocol: TCP
85+
imagePullPolicy: IfNotPresent
86+
volumeMounts:
87+
- name: data
88+
mountPath: /data
89+
subPath: minio
90+
terminationMessagePolicy: File
91+
image: >-
92+
bastion.dis-210gpu.aws.rhaiseng.com:8443/minio/minio@sha256:08dbb97c6ddcbd15138fdbd258137c4ddac5c72fdd1994a9b2d42255a98fc77b
93+
args:
94+
- server
95+
- /data
96+
- --console-address
97+
- :9090
98+
restartPolicy: Always
99+
terminationGracePeriodSeconds: 30
100+
dnsPolicy: ClusterFirst
101+
securityContext: {}
102+
schedulerName: default-scheduler
103+
strategy:
104+
type: Recreate
105+
revisionHistoryLimit: 10
106+
progressDeadlineSeconds: 600
107+
---
108+
kind: Service
109+
apiVersion: v1
110+
metadata:
111+
name: minio-service
112+
spec:
113+
ipFamilies:
114+
- IPv4
115+
ports:
116+
- name: api
117+
protocol: TCP
118+
port: 9000
119+
targetPort: 9000
120+
- name: ui
121+
protocol: TCP
122+
port: 9090
123+
targetPort: 9090
124+
internalTrafficPolicy: Cluster
125+
type: ClusterIP
126+
ipFamilyPolicy: SingleStack
127+
sessionAffinity: None
128+
selector:
129+
app: minio
130+
---
131+
kind: Route
132+
apiVersion: route.openshift.io/v1
133+
metadata:
134+
name: minio-api
135+
spec:
136+
to:
137+
kind: Service
138+
name: minio-service
139+
weight: 100
140+
port:
141+
targetPort: api
142+
wildcardPolicy: None
143+
tls:
144+
termination: edge
145+
insecureEdgeTerminationPolicy: Redirect
146+
---
147+
kind: Route
148+
apiVersion: route.openshift.io/v1
149+
metadata:
150+
name: minio-ui
151+
spec:
152+
to:
153+
kind: Service
154+
name: minio-service
155+
weight: 100
156+
port:
157+
targetPort: ui
158+
wildcardPolicy: None
159+
tls:
160+
termination: edge
161+
insecureEdgeTerminationPolicy: Redirect

0 commit comments

Comments
 (0)