Skip to content

Modular logistics and supply chain operating system (LSOS)

Adds pre-install for redis service

Eugene Dementyev312eb1aa6f0a
diff --git a/infra/helm/templates/redis.yaml b/infra/helm/templates/redis.yaml
index 1f2cb99d..45dda8e2 100644
--- a/infra/helm/templates/redis.yaml
+++ b/infra/helm/templates/redis.yaml
@@ -22,6 +22,9 @@ apiVersion: v1
kind: Service
metadata:
name: redis-service
+ annotations:
+ helm.sh/hook: pre-install,pre-upgrade
+ helm.sh/hook-weight: "10"
spec:
selector:
app: redis
@@ -30,4 +33,3 @@ spec:
port: 6379
targetPort: 6379
type: ClusterIP
-
diff --git a/infra/helm/templates/service.yaml b/infra/helm/templates/service.yaml
index 0448b052..c0c84ed5 100644
--- a/infra/helm/templates/service.yaml
+++ b/infra/helm/templates/service.yaml
@@ -3,7 +3,7 @@ kind: Service
metadata:
name: {{ include "helm.fullname" . }}
annotations:
- helm.sh/hook: pre-install
+ helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: "10"
labels:
{{- include "helm.labels" . | nindent 4 }}
diff --git a/infra/helm/templates/socketcluster.yaml b/infra/helm/templates/socketcluster.yaml
index 7d5bd5dd..894373f5 100644
--- a/infra/helm/templates/socketcluster.yaml
+++ b/infra/helm/templates/socketcluster.yaml
@@ -26,7 +26,7 @@ kind: Service
metadata:
name: socketcluster
annotations:
- helm.sh/hook: pre-install
+ helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: "10"
spec:
selector: