Skip to content

Commit

Permalink
update metallb values.schema.json
Browse files Browse the repository at this point in the history
Signed-off-by: Cyclinder Kuo <kuocyclinder@gmail.com>
  • Loading branch information
cyclinder committed Jan 23, 2025
1 parent 898c451 commit 8dfd633
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/metallb/appendValues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ instances:
- default-pool
# ipAddressPoolSelectors: {}
nodeSelectors:
key: "kubernetes.io/os"
value: "linux"
key: "node.spidernet.io/include-metallb-l2-loadbalancer"
value: "true"
interfaces: []

global:
Expand Down
4 changes: 2 additions & 2 deletions charts/metallb/metallb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ A network load-balancer implementation for Kubernetes using standard routing pro
| instances.arp.interfaces | list | `[]` | |
| instances.arp.ipAddressPools | list | `["default-pool"]` | list of ip-address pools via arp advertisement |
| instances.arp.name | string | `"default-l2advertisement"` | default arp advertisement name |
| instances.arp.nodeSelectors.key | string | `"kubernetes.io/os"` | |
| instances.arp.nodeSelectors.value | string | `"linux"` | |
| instances.arp.nodeSelectors.key | string | `"node.spidernet.io/include-metallb-l2-loadbalancer"` | |
| instances.arp.nodeSelectors.value | string | `"true"` | |
| instances.enabled | bool | `false` | enable default ip-address pool |
| instances.ipAddressPools.addresses | list | `[]` | |
| instances.ipAddressPools.autoAssign | bool | `true` | |
Expand Down
12 changes: 12 additions & 0 deletions charts/metallb/metallb/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
"default": {},
"title": "MetalLB ARP Mode",
"description": "Metallb supports ARP and BGP modes to declare LoadBalancer IPs. the BGP mode is complex to configure and requires hardware support (such as BGP Router). If you want to configure BGP. Please refer to https://metallb.universe.tf/configuration/_advanced_bgp_configuration",
"required": [
"enabled",
"ipAddressPools",
"arp"
],
"properties": {
"enabled": {
"type": "boolean",
Expand Down Expand Up @@ -151,11 +156,18 @@
"arp": {
"type": "object",
"title": "L2Advertisement Setting",
"required": [
"nodeSelectors"
],
"properties": {
"nodeSelectors": {
"type": "object",
"title": "NodeSelectors",
"description": "NodeSelectors allows to limit the nodes to announce as next hops for the LoadBalancer IP. When empty, all the nodes having are announced as next hops",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions charts/metallb/metallb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ instances:
- default-pool
# ipAddressPoolSelectors: {}
nodeSelectors:
key: "kubernetes.io/os"
value: "linux"
key: "node.spidernet.io/include-metallb-l2-loadbalancer"
value: "true"
interfaces: []
global:
imageRegistry: ""
Expand Down
12 changes: 12 additions & 0 deletions charts/metallb/parent/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
"default": {},
"title": "MetalLB ARP Mode",
"description": "Metallb supports ARP and BGP modes to declare LoadBalancer IPs. the BGP mode is complex to configure and requires hardware support (such as BGP Router). If you want to configure BGP. Please refer to https://metallb.universe.tf/configuration/_advanced_bgp_configuration",
"required": [
"enabled",
"ipAddressPools",
"arp"
],
"properties": {
"enabled": {
"type": "boolean",
Expand Down Expand Up @@ -151,11 +156,18 @@
"arp": {
"type": "object",
"title": "L2Advertisement Setting",
"required": [
"nodeSelectors"
],
"properties": {
"nodeSelectors": {
"type": "object",
"title": "NodeSelectors",
"description": "NodeSelectors allows to limit the nodes to announce as next hops for the LoadBalancer IP. When empty, all the nodes having are announced as next hops",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
Expand Down

0 comments on commit 8dfd633

Please sign in to comment.