Skip to content

Commit 03f3fa8

Browse files
committed
🌱 Remove unused enableHelmHook feature from Helm chart
Signed-off-by: kahirokunn <[email protected]>
1 parent 0c30552 commit 03f3fa8

File tree

10 files changed

+0
-77
lines changed

10 files changed

+0
-77
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ apiVersion: v1
99
kind: Namespace
1010
metadata:
1111
annotations:
12-
{{- if $.Values.enableHelmHook }}
13-
"helm.sh/hook": "post-install,post-upgrade"
14-
"helm.sh/hook-weight": "1"
15-
{{- end }}
1612
"argocd.argoproj.io/sync-wave": "1"
1713
name: {{ $addonNamespace }}
1814
{{- end }}
@@ -23,10 +19,6 @@ metadata:
2319
name: {{ $addonName }}
2420
namespace: {{ $addonNamespace }}
2521
annotations:
26-
{{- if $.Values.enableHelmHook }}
27-
"helm.sh/hook": "post-install,post-upgrade"
28-
"helm.sh/hook-weight": "2"
29-
{{- end }}
3022
"argocd.argoproj.io/sync-wave": "2"
3123
{{- if or $addonVersion $.Values.secretName }}
3224
spec:

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ apiVersion: v1
99
kind: Namespace
1010
metadata:
1111
annotations:
12-
{{- if $.Values.enableHelmHook }}
13-
"helm.sh/hook": "post-install,post-upgrade"
14-
"helm.sh/hook-weight": "1"
15-
{{- end }}
1612
"argocd.argoproj.io/sync-wave": "1"
1713
name: {{ $bootstrapNamespace }}
1814
{{- end }}
@@ -23,10 +19,6 @@ metadata:
2319
name: {{ $bootstrapName }}
2420
namespace: {{ $bootstrapNamespace }}
2521
annotations:
26-
{{- if $.Values.enableHelmHook }}
27-
"helm.sh/hook": "post-install,post-upgrade"
28-
"helm.sh/hook-weight": "2"
29-
{{- end }}
3022
"argocd.argoproj.io/sync-wave": "2"
3123
{{- if or $bootstrapVersion $.Values.configSecret.name }}
3224
spec:

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ apiVersion: v1
99
kind: Namespace
1010
metadata:
1111
annotations:
12-
{{- if $.Values.enableHelmHook }}
13-
"helm.sh/hook": "post-install,post-upgrade"
14-
"helm.sh/hook-weight": "1"
15-
{{- end }}
1612
"argocd.argoproj.io/sync-wave": "1"
1713
name: {{ $controlPlaneNamespace }}
1814
{{- end }}
@@ -23,10 +19,6 @@ metadata:
2319
name: {{ $controlPlaneName }}
2420
namespace: {{ $controlPlaneNamespace }}
2521
annotations:
26-
{{- if $.Values.enableHelmHook }}
27-
"helm.sh/hook": "post-install,post-upgrade"
28-
"helm.sh/hook-weight": "2"
29-
{{- end }}
3022
"argocd.argoproj.io/sync-wave": "2"
3123
{{- if or $controlPlaneVersion $.Values.configSecret.name $.Values.manager }}
3224
spec:

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ apiVersion: v1
66
kind: Namespace
77
metadata:
88
annotations:
9-
{{- if $.Values.enableHelmHook }}
10-
"helm.sh/hook": "post-install,post-upgrade"
11-
"helm.sh/hook-weight": "1"
12-
{{- end }}
139
"argocd.argoproj.io/sync-wave": "1"
1410
name: capi-system
1511
---
@@ -19,10 +15,6 @@ metadata:
1915
name: cluster-api
2016
namespace: capi-system
2117
annotations:
22-
{{- if $.Values.enableHelmHook }}
23-
"helm.sh/hook": "post-install,post-upgrade"
24-
"helm.sh/hook-weight": "2"
25-
{{- end }}
2618
"argocd.argoproj.io/sync-wave": "2"
2719
{{- with .Values.configSecret }}
2820
spec:

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ apiVersion: v1
99
kind: Namespace
1010
metadata:
1111
annotations:
12-
{{- if $.Values.enableHelmHook }}
13-
"helm.sh/hook": "post-install,post-upgrade"
14-
"helm.sh/hook-weight": "1"
15-
{{- end }}
1612
"argocd.argoproj.io/sync-wave": "1"
1713
name: {{ $coreNamespace }}
1814
{{- end }}
@@ -23,10 +19,6 @@ metadata:
2319
name: {{ $coreName }}
2420
namespace: {{ $coreNamespace }}
2521
annotations:
26-
{{- if $.Values.enableHelmHook }}
27-
"helm.sh/hook": "post-install,post-upgrade"
28-
"helm.sh/hook-weight": "2"
29-
{{- end }}
3022
"argocd.argoproj.io/sync-wave": "2"
3123
{{- if or $coreVersion $.Values.configSecret.name $.Values.manager }}
3224
spec:

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ apiVersion: v1
77
kind: Namespace
88
metadata:
99
annotations:
10-
{{- if $.Values.enableHelmHook }}
11-
"helm.sh/hook": "post-install,post-upgrade"
12-
"helm.sh/hook-weight": "1"
13-
{{- end }}
1410
"argocd.argoproj.io/sync-wave": "1"
1511
name: capi-kubeadm-bootstrap-system
1612
---
@@ -20,10 +16,6 @@ metadata:
2016
name: kubeadm
2117
namespace: capi-kubeadm-bootstrap-system
2218
annotations:
23-
{{- if $.Values.enableHelmHook }}
24-
"helm.sh/hook": "post-install,post-upgrade"
25-
"helm.sh/hook-weight": "2"
26-
{{- end }}
2719
"argocd.argoproj.io/sync-wave": "2"
2820
{{- with .Values.configSecret }}
2921
spec:
@@ -41,10 +33,6 @@ apiVersion: v1
4133
kind: Namespace
4234
metadata:
4335
annotations:
44-
{{- if $.Values.enableHelmHook }}
45-
"helm.sh/hook": "post-install,post-upgrade"
46-
"helm.sh/hook-weight": "1"
47-
{{- end }}
4836
"argocd.argoproj.io/sync-wave": "1"
4937
name: capi-kubeadm-control-plane-system
5038
---
@@ -54,10 +42,6 @@ metadata:
5442
name: kubeadm
5543
namespace: capi-kubeadm-control-plane-system
5644
annotations:
57-
{{- if $.Values.enableHelmHook }}
58-
"helm.sh/hook": "post-install,post-upgrade"
59-
"helm.sh/hook-weight": "2"
60-
{{- end }}
6145
"argocd.argoproj.io/sync-wave": "2"
6246
{{- with .Values.configSecret }}
6347
spec:

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ apiVersion: v1
99
kind: Namespace
1010
metadata:
1111
annotations:
12-
{{- if $.Values.enableHelmHook }}
13-
"helm.sh/hook": "post-install,post-upgrade"
14-
"helm.sh/hook-weight": "1"
15-
{{- end }}
1612
"argocd.argoproj.io/sync-wave": "1"
1713
name: {{ $infrastructureNamespace }}
1814
{{- end }}
@@ -23,10 +19,6 @@ metadata:
2319
name: {{ $infrastructureName }}
2420
namespace: {{ $infrastructureNamespace }}
2521
annotations:
26-
{{- if $.Values.enableHelmHook }}
27-
"helm.sh/hook": "post-install,post-upgrade"
28-
"helm.sh/hook-weight": "2"
29-
{{- end }}
3022
"argocd.argoproj.io/sync-wave": "2"
3123
{{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager $.Values.additionalDeployments }}
3224
spec:

hack/charts/cluster-api-operator-providers/templates/ipam.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ apiVersion: v1
99
kind: Namespace
1010
metadata:
1111
annotations:
12-
{{- if $.Values.enableHelmHook }}
13-
"helm.sh/hook": "post-install,post-upgrade"
14-
"helm.sh/hook-weight": "1"
15-
{{- end }}
1612
"argocd.argoproj.io/sync-wave": "1"
1713
name: {{ $ipamNamespace }}
1814
{{- end }}
@@ -23,10 +19,6 @@ metadata:
2319
name: {{ $ipamName }}
2420
namespace: {{ $ipamNamespace }}
2521
annotations:
26-
{{- if $.Values.enableHelmHook }}
27-
"helm.sh/hook": "post-install,post-upgrade"
28-
"helm.sh/hook-weight": "2"
29-
{{- end }}
3022
"argocd.argoproj.io/sync-wave": "2"
3123
{{- if or $ipamVersion $.Values.configSecret.name $.Values.manager $.Values.additionalDeployments }}
3224
spec:

hack/charts/cluster-api-operator-providers/values.schema.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
},
5757
"configSecret": {
5858
"type": "object"
59-
},
60-
"enableHelmHook": {
61-
"type": "boolean",
62-
"default": false
6359
}
6460
}
6561
}

hack/charts/cluster-api-operator-providers/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@ fetchConfig: {}
4545
# ---
4646
# Common configuration secret options
4747
configSecret: {}
48-
enableHelmHook: false # Provider CRsではHookは不要

0 commit comments

Comments
 (0)