Skip to content

Commit

Permalink
patch the images only on the odh-notebook-controller
Browse files Browse the repository at this point in the history
Signed-off-by: Harshad Reddy Nalla <[email protected]>
  • Loading branch information
harshad16 committed Oct 25, 2023
1 parent 8e09748 commit d088878
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 22 deletions.
22 changes: 0 additions & 22 deletions components/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,3 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@ patchesStrategicMerge:
- remove_namespace_patch.yaml
- manager_openshift_patch.yaml
- manager_service_openshift_patch.yaml

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
22 changes: 22 additions & 0 deletions components/odh-notebook-controller/config/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,25 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../default

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
File renamed without changes.

0 comments on commit d088878

Please sign in to comment.