-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Kustomize structure for Feast Operator with environment-specific …
…overlays Signed-off-by: Abdul Hameed <ahameed@redhat.com>
- Loading branch information
1 parent
e01e510
commit e8c82bd
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
infra/feast-operator/config/overlays/odh/delete-namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
35
infra/feast-operator/config/overlays/odh/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
odh-feast-operator-controller-image=feastdev/feast-operator:0.42.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
varReference: | ||
- path: spec/template/spec/containers[]/image | ||
kind: Deployment |