Skip to content

Commit e52e980

Browse files
committed
test rhoai
Signed-off-by: Stephanie <[email protected]>
1 parent 0fe1923 commit e52e980

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

skeleton/gitops-template/components/http/base/rhoai/dsp-clone-job.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ spec:
1616
- -c
1717
- |
1818
NS=$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)
19-
oc wait -l statefulset=${{ values.name }} --for=condition=ready pod --timeout=300s
20-
oc exec StatefulSet/${{ values.name }} -- git clone ${{ values.srcRepoURL }}
19+
oc wait -l statefulset=${{ values.name }}-notebook --for=condition=ready pod --timeout=300s
20+
oc exec StatefulSet/${{ values.name }}-notebook -- git clone ${{ values.srcRepoURL }}
2121
restartPolicy: Never

skeleton/gitops-template/components/http/base/rhoai/initialize-dsp.yaml

+13-13
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ spec:
3737
opendatahub.io/image-display-name: Minimal Python
3838
opendatahub.io/accelerator-name: ''
3939
openshift.io/description: ''
40-
openshift.io/display-name: ${{ values.name }}
40+
openshift.io/display-name: ${{ values.name }}-notebook
4141
notebooks.opendatahub.io/last-image-selection: 's2i-minimal-notebook:2024.1'
4242
notebooks.opendatahub.io/last-size-selection: Small
43-
name: ${{ values.name }}
43+
name: ${{ values.name }}-notebook
4444
namespace: ${{ values.namespace }}
4545
ownerReferences:
4646
- apiVersion: v1
4747
kind: ServiceAccount
4848
name: ${{ values.name }}-dsp-job
4949
uid: $SA_UID
5050
labels:
51-
app: ${{ values.name }}
51+
app: ${{ values.name }}-notebook
5252
opendatahub.io/dashboard: 'true'
5353
opendatahub.io/odh-managed: 'true'
5454
spec:
@@ -66,18 +66,18 @@ spec:
6666
readinessProbe:
6767
failureThreshold: 3
6868
httpGet:
69-
path: /notebook/${{ values.namespace }}/${{ values.name }}/api
69+
path: /notebook/${{ values.namespace }}/${{ values.name }}-notebook/api
7070
port: notebook-port
7171
scheme: HTTP
7272
initialDelaySeconds: 10
7373
periodSeconds: 5
7474
successThreshold: 1
7575
timeoutSeconds: 1
76-
name: ${{ values.name }}
76+
name: ${{ values.name }}-notebook
7777
livenessProbe:
7878
failureThreshold: 3
7979
httpGet:
80-
path: /notebook/${{ values.namespace }}/${{ values.name }}/api
80+
path: /notebook/${{ values.namespace }}/${{ values.name }}-notebook/api
8181
port: notebook-port
8282
scheme: HTTP
8383
initialDelaySeconds: 10
@@ -90,7 +90,7 @@ spec:
9090
--ServerApp.port=8888
9191
--ServerApp.token=''
9292
--ServerApp.password=''
93-
--ServerApp.base_url=/notebook/${{ values.namespace }}/${{ values.name }}
93+
--ServerApp.base_url=/notebook/${{ values.namespace }}/${{ values.name }}-notebook
9494
--ServerApp.quit_button=False
9595
- name: JUPYTER_IMAGE
9696
value: 'image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/s2i-minimal-notebook:2024.1'
@@ -107,17 +107,17 @@ spec:
107107
imagePullPolicy: Always
108108
volumeMounts:
109109
- mountPath: /opt/app-root/src
110-
name: ${{ values.name }}
110+
name: ${{ values.name }}-notebook
111111
- mountPath: /dev/shm
112112
name: shm
113113
image: 'image-registry.openshift-image-registry.svc:5000/redhat-ods-applications/s2i-minimal-notebook:2024.1'
114114
workingDir: /opt/app-root/src
115115
enableServiceLinks: false
116-
serviceAccountName: ${{ values.name }}
116+
serviceAccountName: ${{ values.name }}-notebook
117117
volumes:
118-
- name: ${{ values.name }}
118+
- name: ${{ values.name }}-notebook
119119
persistentVolumeClaim:
120-
claimName: ${{ values.name }}-rhoai
120+
claimName: ${{ values.name }}-notebook-rhoai
121121
- emptyDir:
122122
medium: Memory
123123
name: shm
@@ -126,8 +126,8 @@ spec:
126126
apiVersion: v1
127127
metadata:
128128
annotations:
129-
openshift.io/display-name: ${{ values.name }}-rhoai
130-
name: ${{ values.name }}-rhoai
129+
openshift.io/display-name: ${{ values.name }}-notebook-rhoai
130+
name: ${{ values.name }}-notebook-rhoai
131131
ownerReferences:
132132
- apiVersion: v1
133133
kind: ServiceAccount

templates/audio-to-text/template.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: scaffolder.backstage.io/v1beta3
22
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-template
33
kind: Template
44
metadata:
5-
name: audio-to-text3
6-
title: Audio to Text Application3
5+
name: audio-to-text4
6+
title: Audio to Text Application4
77
description: Audio to Text Application example with AI enabled audio transcription
88
tags: ["ai", "whispercpp", "python", "asr"]
99
spec:

0 commit comments

Comments
 (0)