Skip to content

Commit 341fea7

Browse files
committed
feat: add routing tests
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent d4149bb commit 341fea7

File tree

7 files changed

+103
-1
lines changed

7 files changed

+103
-1
lines changed

charts/all/routingtests/Chart.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v2
2+
description: Example helm chart for configuring a OpenShift AI project. To be replicated on both clusters.
3+
name: test-dsp
4+
type: application
5+
6+
# This is the chart version. This version number should be incremented each time you make changes
7+
# to the chart and its templates, including the app version.
8+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9+
version: 0.1.0
10+
11+
# This is the version number of the application being deployed. This version number should be
12+
# incremented each time you make changes to the application. Versions are not expected to
13+
# follow Semantic Versioning. They should reflect the version the application is using.
14+
# It is recommended to use it with quotes.
15+
appVersion: "1.0.0"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: networking.k8s.io/v1
2+
kind: Ingress
3+
metadata:
4+
name: test
5+
spec:
6+
rules:
7+
- host: www.example.com
8+
http:
9+
paths:
10+
- backend:
11+
service:
12+
name: standard
13+
port:
14+
number: 8888
15+
path: /
16+
pathType: Prefix
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: standard
5+
labels:
6+
app: standard
7+
spec:
8+
runtimeClassName: {{ .Values.global.runtimeClass }}
9+
containers:
10+
- name: hello-openshift
11+
image: quay.io/openshift/origin-hello-openshift
12+
ports:
13+
- containerPort: 8888
14+
securityContext:
15+
privileged: false
16+
allowPrivilegeEscalation: false
17+
runAsNonRoot: true
18+
runAsUser: 1001
19+
capabilities:
20+
drop:
21+
- ALL
22+
seccompProfile:
23+
type: RuntimeDefault
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: route.openshift.io/v1
2+
kind: Route
3+
metadata:
4+
name: defacto-standards
5+
spec:
6+
port:
7+
targetPort: 8888
8+
to:
9+
kind: Service
10+
name: standard
11+
weight: 100
12+
wildcardPolicy: None
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: standard
5+
spec:
6+
ports:
7+
- name: 8888-tcp
8+
port: 8888
9+
protocol: TCP
10+
targetPort: 8888
11+
selector:
12+
app: standard
13+
sessionAffinity: None
14+
type: ClusterIP
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
secretStore:
3+
name: vault-backend
4+
kind: ClusterSecretStore
5+
6+
# Secret provisioned for the AWS Controller for Kubernetes - S3
7+
# Begin global parameters
8+
9+
10+
dsp:
11+
name: science-project
12+
description: "My science project"
13+
notebookStorage: '20Gi'
14+
pushSecret: true
15+
16+
# https://github.com/openshift-ai-examples/openshift-ai-examples/blob/main/openshift-ai-deploy-llm/manifests/3-notebook-template.yaml
17+

values-simple.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ clusterGroup:
1515
- kbs-access
1616
- encrypted-storage
1717
- custom-init
18+
- routetest
1819
subscriptions:
1920
# ACM is kept anticipating
2021
acm:
@@ -100,7 +101,11 @@ clusterGroup:
100101
namespace: custom-init
101102
project: workloads
102103
path: charts/coco-supported/custom-init
103-
104+
route:
105+
name: routingtest
106+
namespace: routetest
107+
project: workloads
108+
path: charts/all/routingtests
104109
imperative:
105110
# NOTE: We *must* use lists and not hashes. As hashes lose ordering once parsed by helm
106111
# The default schedule is every 10 minutes: imperative.schedule

0 commit comments

Comments
 (0)