feat(node): support for name replacement
Some checks failed
Build and Push Image / Build and push image (push) Failing after 13s

now when you include this project you can change then service and statefulset name from
the valkey-env configMap
This commit is contained in:
2025-05-28 10:57:50 +02:00
parent 36e6cd84f9
commit 3c550b3015
6 changed files with 59 additions and 166 deletions

View File

@ -0,0 +1,30 @@
- source:
kind: ConfigMap
name: valkey-env
fieldPath: data.VALKEY_REPLICAS
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- spec.replicas
- source:
kind: ConfigMap
name: valkey-env
fieldPath: data.VALKEY_HEADLESS_SERVICE
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- spec.serviceName
- source:
kind: ConfigMap
name: valkey-env
fieldPath: data.VALKEY_NAME
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- metadata.name