Skip to content

Commit

Permalink
update: notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 1, 2024
1 parent 0cc2c56 commit 7383644
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: custom-notebooks

commonAnnotations:
opendatahub.io/notebook-image-creator: ai-catalog

Expand All @@ -12,8 +14,6 @@ labels:
# note: byon = bring your own notebook?
app.kubernetes.io/created-by: byon

namespace: custom-notebooks

resources:
- ./code-server
- ./lightgbm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ spec:
type: Git
git:
uri: https://github.com/redhat-na-ssa/demo-ai-gitops-catalog.git
contextDir: components/app-configs/custom-notebook-images/base/opencv
ref: main
contextDir: components/app-configs/rhoai-custom-images/base/opencv
strategy:
type: Docker
dockerStrategy:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- rolebinding.yaml
- rb-notebooks.yaml
- rb-ods-apps.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: custom-notebooks-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: workshop-admins
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: custom-notebooks-pusher
namespace: redhat-ods-applications
subjects:
- kind: ServiceAccount
name: builder
namespace: custom-notebooks
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: 'system:image-pusher'
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

resources:
- rolebinding.yaml
- rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: custom-notebooks-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: workshop-admins
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

components:
- ../../components/builder-rb
- ../../components/namespace
- ../../components/rbac

Expand Down Expand Up @@ -34,7 +33,6 @@ patches:
- target:
group: build.openshift.io
kind: BuildConfig
# name: opencv-notebook-graphviz
patch: |-
- op: replace
path: /spec/strategy/dockerStrategy/from/namespace
Expand Down

0 comments on commit 7383644

Please sign in to comment.