Skip to content

Commit

Permalink
Merge pull request #28 from harshad16/patch-manifests
Browse files Browse the repository at this point in the history
Adjust the manifests based on the RHODS odh-manifests
  • Loading branch information
harshad16 authored Oct 20, 2023
2 parents 69c9877 + 07ef442 commit f82055f
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 11 deletions.
22 changes: 22 additions & 0 deletions components/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,25 @@ kind: Kustomization
bases:
- ../notebook-controller/config/overlays/openshift
- ../odh-notebook-controller/config/base

configMapGenerator:
- name: notebook-controller-image-parameters
env: params.env
generatorOptions:
disableNameSuffixHash: true

vars:
- name: odh-kf-notebook-controller-image
objref:
kind: ConfigMap
name: notebook-controller-image-parameters
apiVersion: v1
fieldref:
fieldpath: data.odh-kf-notebook-controller-image
- name: odh-notebook-controller-image
objref:
kind: ConfigMap
name: notebook-controller-image-parameters
apiVersion: v1
fieldref:
fieldpath: data.odh-notebook-controller-image
2 changes: 2 additions & 0 deletions components/base/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
odh-kf-notebook-controller-image=quay.io/opendatahub/kubeflow-notebook-controller:latest
odh-notebook-controller-image=quay.io/opendatahub/odh-notebook-controller:latest
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ commonLabels:
app.kubernetes.io/part-of: odh-notebook-controller
component.opendatahub.io/name: kf-notebook-controller
opendatahub.io/component: "true"
images:
- name: docker.io/kubeflownotebookswg/notebook-controller
newName: quay.io/opendatahub/kubeflow-notebook-controller
newTag: 1.7-9f0db5d

configurations:
- params.yaml

configMapGenerator:
- name: config
behavior: merge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ spec:
name: notebook-controller-culler-config
key: IDLENESS_CHECK_PERIOD
optional: true
image: $(odh-kf-notebook-controller-image)
resources:
limits:
cpu: 500m
memory: 4Gi
requests:
cpu: 500m
memory: 256Mi
memory: 256Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
varReference:
- path: spec/template/spec/containers/image
kind: Deployment
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../default
images:
- name: quay.io/opendatahub/odh-notebook-controller
newName: quay.io/opendatahub/odh-notebook-controller
newTag: 1.7-9f0db5d
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ kind: Kustomization
resources:
- manager.yaml
- service.yaml
configurations:
- params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ spec:
runAsNonRoot: true
containers:
- name: manager
image: quay.io/opendatahub/odh-notebook-controller:latest
image: $(odh-notebook-controller-image)
imagePullPolicy: Always
command:
- /manager
args: ["--oauth-proxy-image", "registry.redhat.io/openshift4/ose-oauth-proxy:v4.10"]
args: ["--oauth-proxy-image", "registry.redhat.io/openshift4/ose-oauth-proxy@sha256:4bef31eb993feb6f1096b51b4876c65a6fb1f4401fee97fa4f4542b6b7c9bc46"]
securityContext:
allowPrivilegeEscalation: false
ports:
Expand Down
3 changes: 3 additions & 0 deletions components/odh-notebook-controller/config/manager/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
varReference:
- path: spec/template/spec/containers/image
kind: Deployment

0 comments on commit f82055f

Please sign in to comment.