{{- if (lt (int .Values.replicaCount) 2) }}
⚠️  WARNING: Consider increasing the Helm value `replicaCount` to 2 if you require high availability.
{{- end }}

{{- if (not .Values.podDisruptionBudget.enabled) }}
⚠️  WARNING: Consider setting the Helm value `podDisruptionBudget.enabled` to true if you require high availability.
{{- end }}

{{- if (not .Values.priorityClassName) }}
⚠️  WARNING: Consider setting the Helm value `priorityClassName` if you require high availability.
{{- end }}

{{- if .Values.app.webhook.affinity }}
⚠️  WARNING: The Helm value `.app.webhook.affinity` is deprecated. Use `.affinity` instead.
{{- end }}

{{- if .Values.app.webhook.nodeSelector }}
⚠️  WARNING: The Helm value `.app.webhook.nodeSelector` is deprecated. Use `.nodeSelector` instead.
{{- end }}

{{- if .Values.app.webhook.tolerations }}
⚠️  WARNING: The Helm value `.app.webhook.tolerations` is deprecated. Use `.tolerations` instead.
{{- end }}

{{- if .Values.app.webhook.hostNetwork }}
⚠️  WARNING: The Helm value `.app.webhook.hostNetwork` is deprecated. Use `.hostNetwork` instead.
{{- end }}

{{- if .Values.app.webhook.dnsPolicy }}
⚠️  WARNING: The Helm value `.app.webhook.dnsPolicy` is deprecated. Use `.dnsPolicy` instead.
{{- end }}

CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}

{{ .Chart.Name }} is a cert-manager project.

If you're a new user, we recommend that you read the [cert-manager Approval Policy documentation] to learn more.

[cert-manager Approval Policy documentation]: https://cert-manager.io/docs/policy/approval/
