fix(helm): pdb mutual exclusion, ingress null rules guard, hpa nil utilization guard

This commit is contained in:
Offending Commit
2026-06-03 11:14:47 -05:00
parent b0b648bdcf
commit b4939bd57f
3 changed files with 8 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ spec:
name: {{ include "openconcho.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
metrics:
- type: Resource
resource:
@@ -19,4 +20,5 @@ spec:
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- end }}

View File

@@ -19,6 +19,7 @@ spec:
tls:
{{- toYaml .Values.ingress.tls | nindent 4 }}
{{- end }}
{{- if .Values.ingress.hosts }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
@@ -26,7 +27,7 @@ spec:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
pathType: {{ .pathType | default "Prefix" }}
backend:
service:
name: {{ $fullName }}
@@ -34,4 +35,5 @@ spec:
number: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -6,11 +6,10 @@ metadata:
labels:
{{- include "openconcho.labels" . | nindent 4 }}
spec:
{{- if .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
{{- end }}
{{- if .Values.podDisruptionBudget.maxUnavailable }}
{{- if not (kindIs "invalid" .Values.podDisruptionBudget.maxUnavailable) }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
{{- else }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable | default 1 }}
{{- end }}
selector:
matchLabels: