Skip to content

Commit

Permalink
manifest: adjust manifests of l2status function
Browse files Browse the repository at this point in the history
Signed-off-by: lwabish <wubw@pku.edu.cn>
  • Loading branch information
lwabish committed Apr 20, 2024
1 parent 950f74d commit 2aba615
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/metallb/templates/speaker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ spec:
{{- if .Values.prometheus.secureMetricsPort }}
- --host=localhost
{{- end }}
{{- if not .Values.speaker.layer2Status }}
- --enable-l2-service-status=false
{{- end }}
env:
- name: METALLB_NODE_NAME
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions config/controllers/speaker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
- args:
- --port=7472
- --log-level=info
- --enable-l2-service-status=true
env:
- name: METALLB_NODE_NAME
valueFrom:
Expand Down
5 changes: 5 additions & 0 deletions config/manifests/metallb-frr-k8s-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,7 @@ rules:
- pods
verbs:
- list
- get
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -3055,6 +3056,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METALLB_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: METALLB_HOST
valueFrom:
fieldRef:
Expand Down
5 changes: 5 additions & 0 deletions config/manifests/metallb-frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,7 @@ rules:
- pods
verbs:
- list
- get
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -2937,6 +2938,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METALLB_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: METALLB_HOST
valueFrom:
fieldRef:
Expand Down
5 changes: 5 additions & 0 deletions config/manifests/metallb-frr-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ rules:
- pods
verbs:
- list
- get
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -2080,6 +2081,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METALLB_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: METALLB_HOST
valueFrom:
fieldRef:
Expand Down
5 changes: 5 additions & 0 deletions config/manifests/metallb-frr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ rules:
- pods
verbs:
- list
- get
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -1903,6 +1904,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METALLB_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: METALLB_HOST
valueFrom:
fieldRef:
Expand Down
5 changes: 5 additions & 0 deletions config/manifests/metallb-native-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ rules:
- pods
verbs:
- list
- get
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -1876,6 +1877,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METALLB_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: METALLB_HOST
valueFrom:
fieldRef:
Expand Down
5 changes: 5 additions & 0 deletions config/manifests/metallb-native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ rules:
- pods
verbs:
- list
- get
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -1730,6 +1731,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: METALLB_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: METALLB_HOST
valueFrom:
fieldRef:
Expand Down

0 comments on commit 2aba615

Please sign in to comment.