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 24, 2025
1 parent 898c451 commit f6f5901
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 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
13 changes: 10 additions & 3 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 All @@ -132,9 +137,7 @@
"items": {
"type": "string"
},
"default": [
"192.168.10.100-192.168.10.200"
],
"default": [],
"examples": [
"192.168.10.0/24",
"172.168.1.1-172.168.1.10",
Expand All @@ -156,6 +159,10 @@
"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
13 changes: 10 additions & 3 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 All @@ -132,9 +137,7 @@
"items": {
"type": "string"
},
"default": [
"192.168.10.100-192.168.10.200"
],
"default": [],
"examples": [
"192.168.10.0/24",
"172.168.1.1-172.168.1.10",
Expand All @@ -156,6 +159,10 @@
"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 f6f5901

Please sign in to comment.