1
0
mirror of https://github.com/rancher/types.git synced 2025-08-30 10:17:53 +00:00

Merge pull request #1052 from superseb/v23_mtucni

[release/v2.3] Add ability to set MTU for CNI
This commit is contained in:
Denise 2019-12-12 09:42:49 -08:00 committed by GitHub
commit 7f4ca1e45e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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"`