Skip to content

Commit 73347e9

Browse files
author
Peker Oksuz
committed
fix: add post-install hook to IPAddressPool and L2Advertisement
CRDs from crds subchart must be installed before IPAddressPool and L2Advertisement resources. Adding post-install/post-upgrade helm hooks ensures proper ordering.
1 parent 07cb4c8 commit 73347e9

5 files changed

Lines changed: 38 additions & 5 deletions

File tree

charts/metallb/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ name: metallb
1818
sources:
1919
- https://github.com/metallb/metallb
2020
type: application
21-
version: 0.15.3
21+
version: 0.15.4

charts/metallb/templates/ipaddresspool.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ metadata:
77
namespace: {{ $.Release.Namespace }}
88
labels:
99
{{- include "metallb.labels" $ | nindent 4 }}
10-
{{- with .annotations }}
1110
annotations:
11+
"helm.sh/hook": post-install,post-upgrade
12+
"helm.sh/hook-weight": "1"
13+
{{- with .annotations }}
1214
{{- toYaml . | nindent 4 }}
13-
{{- end }}
15+
{{- end }}
1416
spec:
1517
addresses:
1618
{{- range .addresses }}

charts/metallb/templates/l2advertisement.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ metadata:
77
namespace: {{ $.Release.Namespace }}
88
labels:
99
{{- include "metallb.labels" $ | nindent 4 }}
10-
{{- with .annotations }}
1110
annotations:
11+
"helm.sh/hook": post-install,post-upgrade
12+
"helm.sh/hook-weight": "2"
13+
{{- with .annotations }}
1214
{{- toYaml . | nindent 4 }}
13-
{{- end }}
15+
{{- end }}
1416
spec:
1517
{{- with .ipAddressPools }}
1618
ipAddressPools:

docs/index.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: v1
2+
entries:
3+
metallb:
4+
- apiVersion: v2
5+
appVersion: v0.15.3
6+
created: "2026-04-06T22:03:34.662291+03:00"
7+
dependencies:
8+
- condition: crds.enabled
9+
name: crds
10+
repository: ""
11+
version: 0.15.3
12+
- condition: frrk8s.enabled
13+
name: frr-k8s
14+
repository: https://metallb.github.io/frr-k8s
15+
version: 0.0.21
16+
description: A network load-balancer implementation for Kubernetes using standard
17+
routing protocols
18+
digest: 398c5f705ad6b68d9c126717554e0607d7d2d95c065edfa82011dca69820ab15
19+
home: https://metallb.universe.tf
20+
icon: https://metallb.universe.tf/images/logo/metallb-white.png
21+
kubeVersion: '>= 1.19.0-0'
22+
name: metallb
23+
sources:
24+
- https://github.com/metallb/metallb
25+
type: application
26+
urls:
27+
- https://artifactsystems.github.io/rtxstack-plugins/metallb-0.15.4.tgz
28+
version: 0.15.4
29+
generated: "2026-04-06T22:03:34.659979+03:00"

docs/metallb-0.15.4.tgz

41.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)