Skip to content

Commit a021973

Browse files
committed
Updated kustomize labels to kustomize v5 syntax
Signed-off-by: Killian Golds <[email protected]>
1 parent 2405dba commit a021973

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

config/base/kustomization.yaml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@ resources:
1919
- deployment.yaml
2020
- networkpolicy.yaml
2121

22-
vars:
23-
- name: MM_SERVICE_NAME
24-
objref:
25-
kind: Service
22+
replacements:
23+
- source:
24+
kind: Service
25+
name: model-mesh
26+
fieldPath: metadata.name
27+
targets:
28+
- select:
29+
kind: Deployment
2630
name: model-mesh
27-
apiVersion: v1
28-
fieldref:
29-
fieldpath: metadata.name
31+
fieldPaths:
32+
- spec.template.spec.containers.0.env.[name=MM_SERVICE_NAME].value
3033

3134
### Available patches:
3235

33-
#patchesStrategicMerge:
34-
# - patches/etcd.yaml
35-
# - patches/logger.yaml
36-
# - patches/tls.yaml
37-
# - patches/uds.yaml
38-
# - patches/max_msg_size.yaml
39-
# - patches/prometheus_metrics.yaml
36+
# patches:
37+
# - path: patches/etcd.yaml
38+
# - path: patches/logger.yaml
39+
# - path: patches/tls.yaml
40+
# - path: patches/uds.yaml
41+
# - path: patches/max_msg_size.yaml
42+
# - path: patches/prometheus_metrics.yaml

0 commit comments

Comments
 (0)