Files
anyway-backend-deployment/base/name_reference.yaml

14 lines
555 B
YAML

nameReference:
# Tie target Service metadata.name to IngressRoute's spec.routes.services.name
# Once Service name is changed, the IngressRoute referrerd service name will be changed as well.
- kind: Service
fieldSpecs:
- kind: IngressRoute
path: spec/routes/services/name
# same for the memcached service: since separate overlays may change its name the env variable in the deployment should be updated accordingly
- kind: Service
fieldSpecs:
- kind: Deployment
path: spec/template/spec/containers/env/value