Skip to content

Commit

Permalink
feat: add rhoai overlay.
Browse files Browse the repository at this point in the history
Signed-off-by: Humair Khan <HumairAK@users.noreply.github.com>
  • Loading branch information
HumairAK committed Feb 14, 2024
1 parent 9574a6e commit 4d6d246
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/resources/argo-lite/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: opendatahub
resources:
- ../../../config/argo
- ../../../config/overlays/make-argodeploy
patchesStrategicMerge:
- patch/argo_server_deployment.yaml
2 changes: 1 addition & 1 deletion config/argo/deployment.argo-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
- args:
- server
env: []
image: quay.io/argoproj/argocli:v3.4.12
image: $(IMAGES_ARGO_SERVER)
name: argo-server
ports:
- containerPort: 2746
Expand Down
5 changes: 5 additions & 0 deletions config/argo/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
varReference:
- path: spec/template/spec/containers/image
kind: Deployment
- path: data
kind: ConfigMap
3 changes: 3 additions & 0 deletions config/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ resources:
- ../prometheus
- ../configmaps

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: dspo-parameters
envs:
Expand Down
1 change: 1 addition & 0 deletions config/base/params.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ IMAGESV2_ARGO_MLMDGRPC=quay.io/opendatahub/ds-pipelines-metadata-grpc:latest
IMAGESV2_ARGO_MLMDWRITER=quay.io/opendatahub/ds-pipelines-metadata-writer:latest
IMAGESV2_ARGO_WORKFLOWCONTROLLER=quay.io/opendatahub/ds-pipelines-argo-workflowcontroller:3.3.10-upstream
IMAGESV2_ARGO_ARGOEXEC=quay.io/opendatahub/ds-pipelines-argo-argoexec:3.3.10-upstream
IMAGES_ARGO_SERVER=quay.io/opendatahub/ds-pipelines-argo-server:3.3.10-upstream
V2_LAUNCHER_IMAGE=quay.io/opendatahub/ds-pipelines-launcher:latest
V2_DRIVER_IMAGE=quay.io/opendatahub/ds-pipelines-driver:latest
IMAGES_CACHE=registry.access.redhat.com/ubi8/ubi-minimal:8.8
Expand Down
2 changes: 2 additions & 0 deletions config/configmaps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
generatorOptions:
disableNameSuffixHash: true
configMapGenerator:
- name: dspo-config
files:
Expand Down
8 changes: 8 additions & 0 deletions config/overlays/odh/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ resources:
- ../make-argodeploy
- ../make-deploy
namespace: opendatahub
vars:
- name: IMAGES_ARGO_SERVER
objref:
kind: ConfigMap
name: dspo-parameters
apiVersion: v1
fieldref:
fieldpath: data.IMAGES_ARGO_SERVER
21 changes: 21 additions & 0 deletions config/overlays/rhoai/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ../../argo
namespace: redhat-ods-applications

vars:
- name: IMAGES_ARGO_SERVER
objref:
kind: ConfigMap
name: dspo-parameters
apiVersion: v1
fieldref:
fieldpath: data.IMAGES_ARGO_SERVER

configMapGenerator:
- name: dspo-parameters
behavior: merge
envs:
- params.env

0 comments on commit 4d6d246

Please sign in to comment.