Skip to content

Commit

Permalink
feat(base-cluster): drift detection
Browse files Browse the repository at this point in the history
in preparation of fluxcd/helm-controller#643 we raise the reconcile times,
as the reconciliation might now really do some work, finally!
  • Loading branch information
cwrau committed Mar 21, 2023
1 parent c7b93d0 commit 8cb8792
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions charts/base-cluster/templates/_helmRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "cetic" "chart" "static" "context" .context) | nindent 6 }}
interval: 30m
interval: 1h
dependsOn:
{{- range $namespace, $name := .dependencies }}
- name: {{ $name }}
Expand All @@ -25,4 +25,4 @@ spec:
{{- else }}
static: {{ .resource | toYaml | replace "{{" "{{ `{{` }}" | indent 6 }}
{{- end }}
{{- end -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "jetstack" "chart" "cert-manager" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
{{- if .Values.monitoring.prometheus.enabled }}
dependsOn:
- name: kube-prometheus-stack
Expand Down
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/descheduler/descheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
name: descheduler
namespace: {{ .Release.Namespace }}
version: {{ $selectedVersion }}
interval: 1m
interval: 1h
values:
cronJobApiVersion: {{ include "common.capabilities.cronjob.apiVersion" . }}
startingDeadlineSeconds: 120
Expand Down
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/dns/external-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
{{- else }}
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "bitnami" "chart" "external-dns" "context" $) | nindent 6 }}
{{- end }}
interval: 1m
interval: 1h
{{- if .Values.monitoring.prometheus.enabled }}
dependsOn:
- name: kube-prometheus-stack
Expand Down
4 changes: 2 additions & 2 deletions charts/base-cluster/templates/global/reflector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "emberstack" "chart" "reflector" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
values:
{{- if .Values.global.imageRegistry }}
image:
Expand All @@ -20,4 +20,4 @@ spec:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/ingress/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "nginx" "chart" "ingress-nginx" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
{{- if .Values.monitoring.prometheus.enabled }}
dependsOn:
- name: kube-prometheus-stack
Expand Down
4 changes: 2 additions & 2 deletions charts/base-cluster/templates/kyverno/kyverno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "kyverno" "chart" "kyverno" "context" $) | nindent 6 }}
interval: 5m
interval: 1h
{{- if .Values.monitoring.prometheus.enabled }}
dependsOn:
- name: kube-prometheus-stack
Expand Down Expand Up @@ -67,4 +67,4 @@ spec:
- key: kubernetes.io/metadata.name
operator: NotIn
values: {{- include "base-cluster.kyverno.ignoredNamespaces" . | nindent 18 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "kyverno" "chart" "kyverno-policies" "context" $) | nindent 6 }}
interval: 5m
interval: 1h
dependsOn:
- name: kyverno
namespace: kyverno
Expand Down Expand Up @@ -97,4 +97,4 @@ spec:
disallow-capabilities-strict:
any: {{- $disallowCapabilities | toYaml | nindent 10 }}
{{- end -}}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "prometheus" "chart" "kube-prometheus-stack" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
install:
timeout: 20m0s
crds: CreateReplace
Expand Down Expand Up @@ -49,7 +49,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "bitnami" "chart" "oauth2-proxy" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
values:
redis:
enabled: false
Expand Down
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/monitoring/loki/loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "grafana" "chart" "loki-stack" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
install:
timeout: 10m0s
upgrade:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "bitnami" "chart" "metrics-server" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
values:
apiService:
create: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "trivy" "chart" "trivy-operator" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
{{- if .Values.monitoring.prometheus.enabled }}
dependsOn:
- name: kube-prometheus-stack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "nfs-server-provisioner" "chart" "nfs-server-provisioner" "context" $) | nindent 6 }}
interval: 1m
interval: 1h
values:
storageClass:
name: {{ .Values.storage.readWriteMany.storageClass.name }}
Expand All @@ -28,4 +28,4 @@ spec:
podSecurityContext:
seccompProfile:
type: Unconfined
{{- end }}
{{- end }}

0 comments on commit 8cb8792

Please sign in to comment.