Skip to content

Commit

Permalink
allow calico with windows nodes to be enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tppolkow committed Apr 19, 2024
1 parent 8470a85 commit 258ffd4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/types/blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (b *Blueprint) Validate() error {
type BlueprintSpec struct {
Kubernetes *Kubernetes `yaml:"kubernetes,omitempty"`
Components Components `yaml:"components"`
Network Network `yaml:"network"`
}

// Validate checks the BlueprintSpec structure and its children
Expand Down Expand Up @@ -144,6 +145,14 @@ type Components struct {
Addons []Addon `yaml:"addons,omitempty"`
}

type Network struct {
Calico Calico `yaml:"calico"`
}

type Calico struct {
WithWindowsNodes bool `yaml:"withWindowsNodes"`
}

// Validate checks the Components structure and its children
func (c *Components) Validate() error {
// TODO Core components aren't checked because they will likely be removed/moved to MKE4
Expand Down

0 comments on commit 258ffd4

Please sign in to comment.