Skip to content

Commit 615382a

Browse files
authored
Revert "fix(RHOAIENG-6720): Remove Kustomize v5 deprecation warnings (trustyai-explainability#425)" (trustyai-explainability#432)
This reverts commit ad5b87b
1 parent fdae264 commit 615382a

File tree

6 files changed

+37
-25
lines changed

6 files changed

+37
-25
lines changed

config/base/kustomization.yaml

+29-17
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ resources:
66
- ../rbac
77
- ../manager
88

9-
labels:
10-
- pairs:
11-
app.kubernetes.io/part-of: trustyai
12-
includeSelectors: true
13-
includeTemplates: true
9+
commonLabels:
10+
app.kubernetes.io/part-of: trustyai
1411

1512
configMapGenerator:
1613
- env: params.env
@@ -22,17 +19,32 @@ configurations:
2219
generatorOptions:
2320
disableNameSuffixHash: true
2421

25-
replacements:
26-
# Operator image replacement
27-
- source:
22+
vars:
23+
- name: trustyaiServiceImage
24+
objref:
2825
kind: ConfigMap
2926
name: config
30-
version: v1
31-
fieldPath: data.trustyaiOperatorImage
32-
targets:
33-
- select:
34-
group: apps
35-
kind: Deployment
36-
name: trustyai-service-operator-controller-manager
37-
fieldPaths:
38-
- spec.template.spec.containers.0.image
27+
apiVersion: v1
28+
fieldref:
29+
fieldpath: data.trustyaiServiceImage
30+
- name: trustyaiOperatorImage
31+
objref:
32+
kind: ConfigMap
33+
name: config
34+
apiVersion: v1
35+
fieldref:
36+
fieldpath: data.trustyaiOperatorImage
37+
- name: oauthProxyImage
38+
objref:
39+
kind: ConfigMap
40+
name: config
41+
apiVersion: v1
42+
fieldref:
43+
fieldpath: data.oauthProxyImage
44+
- name: kServeServerless
45+
objref:
46+
kind: ConfigMap
47+
name: config
48+
apiVersion: v1
49+
fieldref:
50+
fieldpath: data.kServeServerless

config/crd/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resources:
44
- bases/trustyai.opendatahub.io_guardrailsorchestrators.yaml
55
#+kubebuilder:scaffold:crdkustomizeresource
66

7-
patches: []
7+
patchesStrategicMerge: []
88
#+kubebuilder:scaffold:crdkustomizewebhookpatch
99
#+kubebuilder:scaffold:crdkustomizecainjectionpatch
1010

config/manager/manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
- --leader-elect
3535
- --enable-services
3636
- "TAS,LMES,GORCH"
37-
image: "quay.io/trustyai/trustyai-service-operator:latest"
37+
image: $(trustyaiOperatorImage)
3838
name: manager
3939
securityContext:
4040
runAsNonRoot: true

config/overlays/lmes/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ kind: Kustomization
44
resources:
55
- ../../base
66

7-
patches:
8-
- path: lmes-only-patch.yaml
7+
patchesStrategicMerge:
8+
- lmes-only-patch.yaml

config/overlays/odh-kueue/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ kind: Kustomization
44
resources:
55
- ../../base
66

7-
patches:
8-
- path: patch.yaml
7+
patchesStrategicMerge:
8+
- patch.yaml
99

1010
configMapGenerator:
1111
- env: params.env
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resources:
22
- ../../base
33

4-
patches:
5-
- path: image-pull-policy.yaml
4+
patchesStrategicMerge:
5+
- image-pull-policy.yaml

0 commit comments

Comments
 (0)