{{ $_ := set . "deployAction" "update-metrics" }}
---
apiVersion: batch/v1
kind: Job
metadata:
  name: pgo-deploy
  namespace: {{ .Release.Namespace }}
  labels:
{{ include "postgres-operator.labels" . | indent 4 }}
  annotations:
    helm.sh/hook: post-upgrade
    helm.sh/hook-delete-policy: hook-succeeded,before-hook-creation
{{ template "deployerJob.spec" . }}

{{ $_ := set . "deployAction" "update-metrics" }}
---
apiVersion: batch/v1
kind: Job
metadata:
  name: pgo-metrics-deploy
  namespace: {{ .Release.Namespace }}
  labels:
{{ include "postgres-operator.labels" . | indent 4 }}
  annotations:
    helm.sh/hook: post-upgrade
    helm.sh/hook-delete-policy: hook-succeeded,before-hook-creation
{{ template "deployerJob.spec" . }}

Fix metrics update job name
Fix metrics update job name

This change updates the update job name to be consistent with the install and uninstall metrics jobs