kind: Deployment
apiVersion: apps/v1
metadata:
  name: vcenter-operator
spec:
  replicas: {{ .Values.pod.replicas.operator }}
  revisionHistoryLimit: {{ .Values.pod.lifecycle.upgrades.deployments.revisionHistory }}
  strategy:
    type: {{ .Values.pod.lifecycle.upgrades.deployments.podReplacementStrategy }}
    {{ if eq .Values.pod.lifecycle.upgrades.deployments.podReplacementStrategy "RollingUpdate" }}
    rollingUpdate:
      maxUnavailable: {{ .Values.pod.lifecycle.upgrades.deployments.rollingupdate.maxUnavailable }}
      maxSurge: {{ .Values.pod.lifecycle.upgrades.deployments.rollingupdate.maxSurge }}
    {{ end }}
  selector:
    matchLabels:
      name: vcenter-operator
  template:
    metadata:
      labels:
        name: vcenter-operator
{{ tuple . "vcenter-operator" "operator" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
    spec:
      serviceAccountName: {{ .Chart.Name }}
      containers:
      - name: operator
        image: {{required ".Values.global.registry is missing" .Values.global.registry}}/vcenter-operator:{{ .Values.imageVersionVcenterOperator | default .Values.imageVersion | required "Please set imageVersion or similar"}}
        imagePullPolicy: IfNotPresent
        command:
        - dumb-init
        - vcenter-operator
        env:
        - name: SERVICE_DOMAIN
          value: "cc.{{.Values.global.region}}.{{.Values.global.tld}}"
        - name: LOG_LEVEL
          value: {{ .Values.log_level | default "INFO" }}

kind: Deployment
apiVersion: apps/v1
metadata:
  name: vcenter-operator
spec:
  replicas: {{ .Values.pod.replicas.operator }}
  revisionHistoryLimit: {{ .Values.pod.lifecycle.upgrades.deployments.revisionHistory }}
  strategy:
    type: {{ .Values.pod.lifecycle.upgrades.deployments.podReplacementStrategy }}
    {{ if eq .Values.pod.lifecycle.upgrades.deployments.podReplacementStrategy "RollingUpdate" }}
    rollingUpdate:
      maxUnavailable: {{ .Values.pod.lifecycle.upgrades.deployments.rollingupdate.maxUnavailable }}
      maxSurge: {{ .Values.pod.lifecycle.upgrades.deployments.rollingupdate.maxSurge }}
    {{ end }}
  selector:
    matchLabels:
      name: vcenter-operator
  template:
    metadata:
      labels:
        name: vcenter-operator
        alert-tier: os
        alert-tier: nova
{{ tuple . "vcenter-operator" "operator" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
    spec:
      serviceAccountName: {{ .Chart.Name }}
      containers:
      - name: operator
        image: {{required ".Values.global.registry is missing" .Values.global.registry}}/vcenter-operator:{{ .Values.imageVersionVcenterOperator | default .Values.imageVersion | required "Please set imageVersion or similar"}}
        imagePullPolicy: IfNotPresent
        command:
        - dumb-init
        - vcenter-operator
        env:
        - name: SERVICE_DOMAIN
          value: "cc.{{.Values.global.region}}.{{.Values.global.tld}}"
        - name: LOG_LEVEL
          value: {{ .Values.log_level | default "INFO" }}

Add alert-tier and alert-service labels
vcenter-operator: Add alert-tier and alert-service labels

This should make generic k8s alerts about that pod appear in whatever
Slack channel alerts for Nova end up in.
