Skip to content

Modular logistics and supply chain operating system (LSOS)

Fixes helm install order

Eugene Dementyev6572a591206c
diff --git a/infra/helm/templates/hooks.yaml b/infra/helm/templates/hooks.yaml
index 22a5c868..c31706a6 100644
--- a/infra/helm/templates/hooks.yaml
+++ b/infra/helm/templates/hooks.yaml
@@ -10,7 +10,7 @@ metadata:
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
annotations:
"helm.sh/hook": pre-install,pre-upgrade
- "helm.sh/hook-weight": "0"
+ "helm.sh/hook-weight": "20"
"helm.sh/hook-delete-policy": before-hook-creation
spec:
template:
diff --git a/infra/helm/templates/service.yaml b/infra/helm/templates/service.yaml
index 7c32fbdc..0448b052 100644
--- a/infra/helm/templates/service.yaml
+++ b/infra/helm/templates/service.yaml
@@ -2,6 +2,9 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "helm.fullname" . }}
+ annotations:
+ helm.sh/hook: pre-install
+ helm.sh/hook-weight: "10"
labels:
{{- include "helm.labels" . | nindent 4 }}
spec:
diff --git a/infra/helm/templates/socketcluster.yaml b/infra/helm/templates/socketcluster.yaml
index bf1c1a0f..7d5bd5dd 100644
--- a/infra/helm/templates/socketcluster.yaml
+++ b/infra/helm/templates/socketcluster.yaml
@@ -25,6 +25,9 @@ apiVersion: v1
kind: Service
metadata:
name: socketcluster
+ annotations:
+ helm.sh/hook: pre-install
+ helm.sh/hook-weight: "10"
spec:
selector:
app: socketcluster
@@ -33,4 +36,3 @@ spec:
port: 80
targetPort: 8000
type: ClusterIP
-