Skip to content

Commit 03c6de8

Browse files
nightguideSergey Ptushkin
authored and
Sergey Ptushkin
committed
Add additional hook post-upgrade
1 parent 771e8a3 commit 03c6de8

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

hack/charts/cluster-api-operator/templates/addon.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apiVersion: v1
2626
kind: Namespace
2727
metadata:
2828
annotations:
29-
"helm.sh/hook": "post-install"
29+
"helm.sh/hook": "post-install,post-upgrade"
3030
"helm.sh/hook-weight": "1"
3131
"argocd.argoproj.io/sync-wave": "1"
3232
name: {{ $addonNamespace }}
@@ -37,7 +37,7 @@ metadata:
3737
name: {{ $addonName }}
3838
namespace: {{ $addonNamespace }}
3939
annotations:
40-
"helm.sh/hook": "post-install"
40+
"helm.sh/hook": "post-install,post-upgrade"
4141
"helm.sh/hook-weight": "2"
4242
"argocd.argoproj.io/sync-wave": "2"
4343
{{- if or $addonVersion $.Values.secretName }}

hack/charts/cluster-api-operator/templates/bootstrap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apiVersion: v1
2626
kind: Namespace
2727
metadata:
2828
annotations:
29-
"helm.sh/hook": "post-install"
29+
"helm.sh/hook": "post-install,post-upgrade"
3030
"helm.sh/hook-weight": "1"
3131
name: {{ $bootstrapNamespace }}
3232
---
@@ -36,7 +36,7 @@ metadata:
3636
name: {{ $bootstrapName }}
3737
namespace: {{ $bootstrapNamespace }}
3838
annotations:
39-
"helm.sh/hook": "post-install"
39+
"helm.sh/hook": "post-install,post-upgrade"
4040
"helm.sh/hook-weight": "2"
4141
{{- if or $bootstrapVersion $.Values.configSecret.name }}
4242
spec:

hack/charts/cluster-api-operator/templates/control-plane.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apiVersion: v1
2626
kind: Namespace
2727
metadata:
2828
annotations:
29-
"helm.sh/hook": "post-install"
29+
"helm.sh/hook": "post-install,post-upgrade"
3030
"helm.sh/hook-weight": "1"
3131
name: {{ $controlPlaneNamespace }}
3232
---
@@ -36,7 +36,7 @@ metadata:
3636
name: {{ $controlPlaneName }}
3737
namespace: {{ $controlPlaneNamespace }}
3838
annotations:
39-
"helm.sh/hook": "post-install"
39+
"helm.sh/hook": "post-install,post-upgrade"
4040
"helm.sh/hook-weight": "2"
4141
{{- if or $controlPlaneVersion $.Values.configSecret.name }}
4242
spec:

hack/charts/cluster-api-operator/templates/core-conditions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apiVersion: v1
66
kind: Namespace
77
metadata:
88
annotations:
9-
"helm.sh/hook": "post-install"
9+
"helm.sh/hook": "post-install,post-upgrade"
1010
"helm.sh/hook-weight": "1"
1111
name: capi-system
1212
---
@@ -16,7 +16,7 @@ metadata:
1616
name: cluster-api
1717
namespace: capi-system
1818
annotations:
19-
"helm.sh/hook": "post-install"
19+
"helm.sh/hook": "post-install,post-upgrade"
2020
"helm.sh/hook-weight": "2"
2121
{{- with .Values.configSecret }}
2222
spec:

hack/charts/cluster-api-operator/templates/core.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apiVersion: v1
2525
kind: Namespace
2626
metadata:
2727
annotations:
28-
"helm.sh/hook": "post-install"
28+
"helm.sh/hook": "post-install,post-upgrade"
2929
"helm.sh/hook-weight": "1"
3030
name: {{ $coreNamespace }}
3131
---
@@ -35,7 +35,7 @@ metadata:
3535
name: {{ $coreName }}
3636
namespace: {{ $coreNamespace }}
3737
annotations:
38-
"helm.sh/hook": "post-install"
38+
"helm.sh/hook": "post-install,post-upgrade"
3939
"helm.sh/hook-weight": "2"
4040
"argocd.argoproj.io/sync-wave": "2"
4141
{{- if or $coreVersion $.Values.configSecret.name }}

hack/charts/cluster-api-operator/templates/infra-conditions.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apiVersion: v1
77
kind: Namespace
88
metadata:
99
annotations:
10-
"helm.sh/hook": "post-install"
10+
"helm.sh/hook": "post-install,post-upgrade"
1111
"helm.sh/hook-weight": "1"
1212
"argocd.argoproj.io/sync-wave": "1"
1313
name: capi-kubeadm-bootstrap-system
@@ -18,7 +18,7 @@ metadata:
1818
name: kubeadm
1919
namespace: capi-kubeadm-bootstrap-system
2020
annotations:
21-
"helm.sh/hook": "post-install"
21+
"helm.sh/hook": "post-install,post-upgrade"
2222
"helm.sh/hook-weight": "2"
2323
"argocd.argoproj.io/sync-wave": "2"
2424
{{- with .Values.configSecret }}
@@ -37,7 +37,7 @@ apiVersion: v1
3737
kind: Namespace
3838
metadata:
3939
annotations:
40-
"helm.sh/hook": "post-install"
40+
"helm.sh/hook": "post-install,post-upgrade"
4141
"helm.sh/hook-weight": "1"
4242
"argocd.argoproj.io/sync-wave": "1"
4343
name: capi-kubeadm-control-plane-system
@@ -48,7 +48,7 @@ metadata:
4848
name: kubeadm
4949
namespace: capi-kubeadm-control-plane-system
5050
annotations:
51-
"helm.sh/hook": "post-install"
51+
"helm.sh/hook": "post-install,post-upgrade"
5252
"helm.sh/hook-weight": "2"
5353
"argocd.argoproj.io/sync-wave": "2"
5454
{{- with .Values.configSecret }}

hack/charts/cluster-api-operator/templates/infra.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ apiVersion: v1
3636
kind: Namespace
3737
metadata:
3838
annotations:
39-
"helm.sh/hook": "post-install"
39+
"helm.sh/hook": "post-install,post-upgrade"
4040
"helm.sh/hook-weight": "1"
4141
"argocd.argoproj.io/sync-wave": "1"
4242
name: {{ $infrastructureNamespace }}
@@ -47,7 +47,7 @@ metadata:
4747
name: {{ $infrastructureName }}
4848
namespace: {{ $infrastructureNamespace }}
4949
annotations:
50-
"helm.sh/hook": "post-install"
50+
"helm.sh/hook": "post-install,post-upgrade"
5151
"helm.sh/hook-weight": "2"
5252
"argocd.argoproj.io/sync-wave": "2"
5353
{{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager $.Values.additionalDeployments }}

0 commit comments

Comments
 (0)