sigs.k8s.io/cluster-api-provider-azure@v1.14.3/hack/observability/opentelemetry/chart/templates/deployment.yaml (about) 1 {{- if .Values.standaloneCollector.enabled -}} 2 apiVersion: apps/v1 3 kind: Deployment 4 metadata: 5 name: {{ include "opentelemetry-collector.fullname" . }} 6 labels: 7 {{- include "opentelemetry-collector.labels" . | nindent 4 }} 8 {{- if .Values.standaloneCollector.annotations }} 9 annotations: 10 {{- toYaml .Values.standaloneCollector.annotations | nindent 4 }} 11 {{- end }} 12 spec: 13 {{- if not .Values.autoscaling.enabled }} 14 replicas: {{ .Values.standaloneCollector.replicaCount }} 15 {{- end }} 16 selector: 17 matchLabels: 18 {{- include "opentelemetry-collector.selectorLabels" . | nindent 6 }} 19 component: standalone-collector 20 template: 21 metadata: 22 annotations: 23 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} 24 {{- with .Values.standaloneCollector.podAnnotations }} 25 {{- toYaml . | nindent 8 }} 26 {{- end }} 27 labels: 28 {{- include "opentelemetry-collector.selectorLabels" . | nindent 8 }} 29 component: standalone-collector 30 {{- with .Values.standaloneCollector.podLabels }} 31 {{- toYaml . | nindent 8 }} 32 {{- end }} 33 spec: 34 {{- $podValues := deepCopy .Values.standaloneCollector | mustMergeOverwrite (deepCopy .Values) }} 35 {{- $podData := dict "Values" $podValues "configmapSuffix" "" "isAgent" false }} 36 {{- include "opentelemetry-collector.pod" ($podData | mustMergeOverwrite (deepCopy .)) | nindent 6 }} 37 {{- end }}