Commit b3d14045 authored by Alexandre Vincent's avatar Alexandre Vincent
Browse files

add annotations and labels to templates where missing

parent f43dc4c0
Pipeline #83954 failed with stages
in 32 minutes and 12 seconds
......@@ -16,13 +16,17 @@
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
namespace: osdu
annotations:
{{ include "os-wellbore-ddms.commonAnnotations" . | indent 4}}
labels:
{{ include "os-wellbore-ddms.commonLabels" . | indent 4}}
name: {{ .Values.deployment.name }}{{ include "os-wellbore-ddms.name-suffix" . }}
{{ include "os-wellbore-ddms.namespace" . | indent 2}}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
name: {{ .Values.deployment.name }}{{ include "os-wellbore-ddms.name-suffix" . }}
minReplicas: {{ .Values.minReplicaCount }}
maxReplicas: {{ .Values.maxReplicaCount }}
metrics:
......
......@@ -5,8 +5,12 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
namespace: osdu
annotations:
{{ include "os-wellbore-ddms.commonAnnotations" . | indent 4}}
labels:
{{ include "os-wellbore-ddms.commonLabels" . | indent 4}}
name: {{ .Values.deployment.name }}{{ include "os-wellbore-ddms.name-suffix" . }}
{{ include "os-wellbore-ddms.namespace" . | indent 2}}
spec:
hosts:
- "{{ .Values.istioDnsHost }}"
......@@ -19,7 +23,7 @@ spec:
# TODO make naming more uniform across services: prefix: "/api/{{ .Chart.Name }}/v2"
route:
- destination:
host: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
host: {{ .Values.deployment.name }}{{ include "os-wellbore-ddms.name-suffix" . }}
port:
number: 80
corsPolicy:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment