Skip to content

Commit

Permalink
Make agent install strat MachineNetwork optional.
Browse files Browse the repository at this point in the history
This field cannot be used with VIPDHCPAllocationMode false.
  • Loading branch information
dgoodwin committed Feb 5, 2021
1 parent 51f4cd5 commit b7f5273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions config/crds/hive.openshift.io_clusterdeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,6 @@ spec:
type: string
maxItems: 1
type: array
required:
- machineNetwork
type: object
provisionRequirements:
description: ProvisionRequirements defines configuration
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/hive/v1/agent/installstrategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ type ProvisionRequirements struct {
// Networking defines the pod network provider in the cluster.
type Networking struct {
// MachineNetwork is the list of IP address pools for machines.
MachineNetwork []MachineNetworkEntry `json:"machineNetwork"`
// +optional
MachineNetwork []MachineNetworkEntry `json:"machineNetwork,omitempty"`

// ClusterNetwork is the list of IP address pools for pods.
// Default is 10.128.0.0/14 and a host prefix of /23.
Expand Down

0 comments on commit b7f5273

Please sign in to comment.