Skip to content

Commit

Permalink
Add Kustomize structure for Feast Operator with environment-specific …
Browse files Browse the repository at this point in the history
…overlays

Signed-off-by: Abdul Hameed <ahameed@redhat.com>
  • Loading branch information
redhatHameed committed Jan 14, 2025
1 parent e01e510 commit e8c82bd
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$patch: delete
apiVersion: v1
kind: Namespace
metadata:
name: system
35 changes: 35 additions & 0 deletions infra/feast-operator/config/overlays/odh/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: opendatahub


resources:
- .../default


patches:
# patch to remove default `system` namespace in ../../manager/manager.yaml
- path: delete-namespace.yaml

configMapGenerator:
- name: feast-operator-parameters
envs:
- params.env

configurations:
- params.yaml

replacements:
- source:
kind: ConfigMap
name: feast-operator-parameters
version: v1
fieldPath: data.odh-feast-operator-controller-image
targets:
- select:
kind: Deployment
name: controller-manager
fieldPaths:
- spec.template.spec.containers.[name=manager].image

1 change: 1 addition & 0 deletions infra/feast-operator/config/overlays/odh/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
odh-feast-operator-controller-image=feastdev/feast-operator:0.42.0
3 changes: 3 additions & 0 deletions infra/feast-operator/config/overlays/odh/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 e8c82bd

Please sign in to comment.