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 <[email protected]>
  • Loading branch information
redhatHameed committed Jan 14, 2025
1 parent e01e510 commit 72dcbd8
Show file tree
Hide file tree
Showing 5 changed files with 45 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=docker.io/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
1 change: 1 addition & 0 deletions infra/scripts/release/files_to_bump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ infra/feast-helm-operator/config/manager/kustomization.yaml 8
infra/feast-operator/Makefile 6
infra/feast-operator/config/manager/kustomization.yaml 8
infra/feast-operator/api/feastversion/version.go 20
infra/feast-operator/config/overlays/odh/params.env 1
java/pom.xml 38
ui/package.json 3

0 comments on commit 72dcbd8

Please sign in to comment.