diff --git a/apis/management.cattle.io/v3/rke_types.go b/apis/management.cattle.io/v3/rke_types.go index 3b3ebd55..45ccc8ee 100644 --- a/apis/management.cattle.io/v3/rke_types.go +++ b/apis/management.cattle.io/v3/rke_types.go @@ -354,6 +354,8 @@ type NetworkConfig struct { Plugin string `yaml:"plugin" json:"plugin,omitempty" norman:"default=canal"` // Plugin options to configure network properties Options map[string]string `yaml:"options" json:"options,omitempty"` + // Set MTU for CNI provider + MTU string `yaml:"mtu" json:"mtu,omitempty"` // CalicoNetworkProvider CalicoNetworkProvider *CalicoNetworkProvider `yaml:"calico_network_provider,omitempty" json:"calicoNetworkProvider,omitempty"` // CanalNetworkProvider diff --git a/client/management/v3/zz_generated_network_config.go b/client/management/v3/zz_generated_network_config.go index 0445cd02..d3d9945f 100644 --- a/client/management/v3/zz_generated_network_config.go +++ b/client/management/v3/zz_generated_network_config.go @@ -5,6 +5,7 @@ const ( NetworkConfigFieldCalicoNetworkProvider = "calicoNetworkProvider" NetworkConfigFieldCanalNetworkProvider = "canalNetworkProvider" NetworkConfigFieldFlannelNetworkProvider = "flannelNetworkProvider" + NetworkConfigFieldMTU = "mtu" NetworkConfigFieldNodeSelector = "nodeSelector" NetworkConfigFieldOptions = "options" NetworkConfigFieldPlugin = "plugin" @@ -15,6 +16,7 @@ type NetworkConfig struct { CalicoNetworkProvider *CalicoNetworkProvider `json:"calicoNetworkProvider,omitempty" yaml:"calicoNetworkProvider,omitempty"` CanalNetworkProvider *CanalNetworkProvider `json:"canalNetworkProvider,omitempty" yaml:"canalNetworkProvider,omitempty"` FlannelNetworkProvider *FlannelNetworkProvider `json:"flannelNetworkProvider,omitempty" yaml:"flannelNetworkProvider,omitempty"` + MTU string `json:"mtu,omitempty" yaml:"mtu,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"` Options map[string]string `json:"options,omitempty" yaml:"options,omitempty"` Plugin string `json:"plugin,omitempty" yaml:"plugin,omitempty"`