Compare commits

..

1 Commits

Author SHA1 Message Date
Andrei Kvapil
1b0e2e831c Enable leader election for Cozystack 2024-02-19 14:16:01 +01:00
3 changed files with 5 additions and 25 deletions

View File

@@ -646,20 +646,6 @@ spec:
namespace: cozy-cilium
- name: kubeovn
namespace: cozy-kubeovn
{{- if .Capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1beta2" }}
{{- with (lookup "source.toolkit.fluxcd.io/v1beta2" "HelmRepository" "cozy-public" "").items }}
values:
kubeapps:
redis:
master:
podAnnotations:
{{- range $index, $repo := . }}
{{- with (($repo.status).artifact).revision }}
repository.cozystack.io/{{ $repo.metadata.name }}: {{ quote . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease

View File

@@ -27,13 +27,6 @@ spec:
$patch: delete
- name: drbd-module-loader
$patch: delete
containers:
- name: linstor-satellite
volumeMounts:
- mountPath: /run
name: host-run
securityContext:
readOnlyRootFilesystem: false
volumes:
- name: run-systemd-system
$patch: delete
@@ -53,7 +46,3 @@ spec:
hostPath:
path: /var/etc/lvm/archive
type: DirectoryOrCreate
- name: host-run
hostPath:
path: /run
type: DirectoryOrCreate

View File

@@ -35,6 +35,11 @@ kubectl annotate helmrepositories.source.toolkit.fluxcd.io -A -l cozystack.io/re
# Install platform chart
make -C packages/core/platform apply
# Flush kubeapps cache
if kubectl wait --for=condition=ready -n cozy-dashboard pod/dashboard-redis-master-0 --timeout=1s; then
kubectl exec -ti -n cozy-dashboard dashboard-redis-master-0 -- sh -c 'redis-cli -a "$REDIS_PASSWORD" flushdb'
fi
# Reconcile platform chart
trap 'exit' INT TERM
while true; do