mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
* Adding a new Subnet Available Collector and Analyzer, used to check if a subnet is available for use on a K8s node.
20 lines
546 B
YAML
20 lines
546 B
YAML
apiVersion: troubleshoot.sh/v1beta2
|
|
kind: HostPreflight
|
|
metadata:
|
|
name: subnet-available
|
|
spec:
|
|
collectors:
|
|
# would output yes/no depending if there is a /22 available in 10.0.0.0/8
|
|
- subnetAvailable:
|
|
CIDRRangeAlloc: "10.0.0.0/8"
|
|
desiredCIDR: 22
|
|
analyzers:
|
|
- subnetAvailable:
|
|
outcomes:
|
|
- fail:
|
|
when: "no-subnet-available"
|
|
message: failed to find available subnet
|
|
- pass:
|
|
when: "a-subnet-is-available"
|
|
message: available /22 subnet found
|