Skip to content

Commit

Permalink
Merge pull request openshift#1277 from dgoodwin/machine-cidr-optional
Browse files Browse the repository at this point in the history
Make agent install strat MachineNetwork optional.
  • Loading branch information
openshift-merge-robot authored Feb 9, 2021
2 parents c731660 + b7f5273 commit fc83de3
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 fc83de3

Please sign in to comment.