added repo
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{{- if eq .Values.mode "daemonset" -}}
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: {{ include "opentelemetry-collector.fullname" . }}-agent
|
||||
namespace: {{ template "opentelemetry-collector.namespace" . }}
|
||||
labels:
|
||||
{{- include "opentelemetry-collector.labels" . | nindent 4 }}
|
||||
{{- if .Values.annotations }}
|
||||
annotations:
|
||||
{{- range $key, $value := .Values.annotations }}
|
||||
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "opentelemetry-collector.selectorLabels" . | nindent 6 }}
|
||||
{{- include "opentelemetry-collector.component" . | nindent 6 }}
|
||||
updateStrategy:
|
||||
{{- if eq .Values.rollout.strategy "RollingUpdate" }}
|
||||
{{- with .Values.rollout.rollingUpdate }}
|
||||
rollingUpdate:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
type: {{ .Values.rollout.strategy }}
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
{{- include "opentelemetry-collector.configTemplateChecksumAnnotation" . | nindent 8 }}
|
||||
{{- include "opentelemetry-collector.podAnnotations" . | nindent 8 }}
|
||||
labels:
|
||||
{{- include "opentelemetry-collector.selectorLabels" . | nindent 8 }}
|
||||
{{- include "opentelemetry-collector.component" . | nindent 8 }}
|
||||
{{- include "opentelemetry-collector.podLabels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- $podValues := deepCopy .Values }}
|
||||
{{- $podData := dict "Values" $podValues "configmapSuffix" "-agent" "isAgent" true }}
|
||||
{{- include "opentelemetry-collector.pod" ($podData | mustMergeOverwrite (deepCopy .)) | nindent 6 }}
|
||||
hostNetwork: {{ .Values.hostNetwork }}
|
||||
{{- with .Values.dnsPolicy }}
|
||||
dnsPolicy: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.dnsConfig }}
|
||||
dnsConfig:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user