NOTES.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {{- if not .Values.image.repository }}
  2. {{ fail "[ERROR] 'image.repository' must be set. See https://github.com/open-telemetry/opentelemetry-helm-charts/blob/main/charts/opentelemetry-collector/UPGRADING.md for instructions." }}
  3. {{ end }}
  4. {{- if and (not (eq .Values.mode "daemonset")) (not (eq .Values.mode "deployment")) (not (eq .Values.mode "statefulset")) }}
  5. {{ fail "[ERROR] 'mode' must be set. See https://github.com/open-telemetry/opentelemetry-helm-charts/blob/main/charts/opentelemetry-collector/UPGRADING.md for instructions." }}
  6. {{ end }}
  7. {{- if and (eq .Values.dnsPolicy "None") (not .Values.dnsConfig) }}
  8. {{- fail "[ERROR] dnsConfig should be provided when dnsPolicy is None" }}
  9. {{ end }}
  10. {{- if .Values.presets.clusterMetrics.enabled }}
  11. {{- if eq .Values.mode "daemonset"}}
  12. {{- fail "Cluster Metrics preset is not suitable for daemonset mode. Please use statefulset or deployment mode with replicaCount: 1"}}
  13. {{ end }}
  14. {{- if gt (int .Values.replicaCount) 1 }}
  15. {{- fail "Cluster Metrics preset is not suitable for replicaCount greater than one. Please change replica count to one." }}
  16. {{ end }}
  17. {{ end }}
  18. {{/* validate extensions must include health_check */}}
  19. {{- if not (has "health_check" .Values.config.service.extensions) }}
  20. {{ fail "[ERROR] The opentelemetry-collector chart requires that the health_check extension to be included in the extension list." }}
  21. {{- end}}
  22. {{- if not .Values.configMap.create }}
  23. [WARNING] "configMap" wil not be created and "config" will not take effect.
  24. {{ end }}
  25. {{- if and .Values.configMap.create .Values.configMap.existingName }}
  26. {{ fail "[ERROR] Cannot set configMap.existingName when configMap.create is true" }}
  27. {{ end }}
  28. {{- if not .Values.resources }}
  29. [WARNING] No resource limits or requests were set. Consider setter resource requests and limits for your collector(s) via the `resources` field.
  30. {{ end }}
  31. {{- if and (eq .Values.mode "daemonset") (eq .Values.service.internalTrafficPolicy "Cluster") }}
  32. [WARNING] Setting internalTrafficPolicy to 'Cluster' on Daemonset is not recommended. Consider using 'Local' instead.
  33. {{ end }}
  34. {{- if and (.Values.useGOMEMLIMIT) (not ((((.Values.resources).limits).memory))) }}
  35. [WARNING] "useGOMEMLIMIT" is enabled but memory limits have not been supplied, which means no GOMEMLIMIT env var was configured but the Memory Ballast Extension was removed. It is highly recommended to only use "useGOMEMLIMIT" when memory limits have been set.
  36. {{ end }}