From 672f9378124e0e0206ddb4f426b33944093ba6c2 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 16 Jan 2024 09:53:11 -0800 Subject: [PATCH] bug: add labels to HPAs (#80) --- backend-go/openshift.deploy.yml | 2 ++ backend-java/openshift.deploy.yml | 2 ++ backend-py/openshift.deploy.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/backend-go/openshift.deploy.yml b/backend-go/openshift.deploy.yml index b53b807..1c5fbfb 100644 --- a/backend-go/openshift.deploy.yml +++ b/backend-go/openshift.deploy.yml @@ -234,6 +234,8 @@ objects: - apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: + labels: + app: "${NAME}-${ZONE}" name: "${NAME}-${ZONE}-${COMPONENT}" spec: scaleTargetRef: diff --git a/backend-java/openshift.deploy.yml b/backend-java/openshift.deploy.yml index 712874e..41d7780 100644 --- a/backend-java/openshift.deploy.yml +++ b/backend-java/openshift.deploy.yml @@ -171,6 +171,8 @@ objects: - apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: + labels: + app: "${NAME}-${ZONE}" name: "${NAME}-${ZONE}-${COMPONENT}" spec: scaleTargetRef: diff --git a/backend-py/openshift.deploy.yml b/backend-py/openshift.deploy.yml index 6f562ae..7676f98 100644 --- a/backend-py/openshift.deploy.yml +++ b/backend-py/openshift.deploy.yml @@ -288,6 +288,8 @@ objects: - apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: + labels: + app: "${NAME}-${ZONE}" name: "${NAME}-${ZONE}-${COMPONENT}" spec: scaleTargetRef: