mirror of https://github.com/kubernetes/kops.git
Add IptablesResyncSeconds to flannel spec
This commit is contained in:
parent
6e20d2ee7b
commit
bfae48c08d
|
@ -69,6 +69,8 @@ type WeaveNetworkingSpec struct {
|
||||||
type FlannelNetworkingSpec struct {
|
type FlannelNetworkingSpec struct {
|
||||||
// Backend is the backend overlay type we want to use (vxlan or udp)
|
// Backend is the backend overlay type we want to use (vxlan or udp)
|
||||||
Backend string `json:"backend,omitempty"`
|
Backend string `json:"backend,omitempty"`
|
||||||
|
// IptablesResyncSeconds sets resync period for iptables rules, in seconds
|
||||||
|
IptablesResyncSeconds *int32 `json:"iptablesResyncSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CalicoNetworkingSpec declares that we want Calico networking
|
// CalicoNetworkingSpec declares that we want Calico networking
|
||||||
|
|
|
@ -69,6 +69,8 @@ type WeaveNetworkingSpec struct {
|
||||||
type FlannelNetworkingSpec struct {
|
type FlannelNetworkingSpec struct {
|
||||||
// Backend is the backend overlay type we want to use (vxlan or udp)
|
// Backend is the backend overlay type we want to use (vxlan or udp)
|
||||||
Backend string `json:"backend,omitempty"`
|
Backend string `json:"backend,omitempty"`
|
||||||
|
// IptablesResyncSeconds sets resync period for iptables rules, in seconds
|
||||||
|
IptablesResyncSeconds *int32 `json:"iptablesResyncSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CalicoNetworkingSpec declares that we want Calico networking
|
// CalicoNetworkingSpec declares that we want Calico networking
|
||||||
|
|
|
@ -2413,6 +2413,7 @@ func Convert_kops_FileAssetSpec_To_v1alpha1_FileAssetSpec(in *kops.FileAssetSpec
|
||||||
|
|
||||||
func autoConvert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *FlannelNetworkingSpec, out *kops.FlannelNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *FlannelNetworkingSpec, out *kops.FlannelNetworkingSpec, s conversion.Scope) error {
|
||||||
out.Backend = in.Backend
|
out.Backend = in.Backend
|
||||||
|
out.IptablesResyncSeconds = in.IptablesResyncSeconds
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2423,6 +2424,7 @@ func Convert_v1alpha1_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *Fl
|
||||||
|
|
||||||
func autoConvert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec(in *kops.FlannelNetworkingSpec, out *FlannelNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_kops_FlannelNetworkingSpec_To_v1alpha1_FlannelNetworkingSpec(in *kops.FlannelNetworkingSpec, out *FlannelNetworkingSpec, s conversion.Scope) error {
|
||||||
out.Backend = in.Backend
|
out.Backend = in.Backend
|
||||||
|
out.IptablesResyncSeconds = in.IptablesResyncSeconds
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1207,6 +1207,11 @@ func (in *FileAssetSpec) DeepCopy() *FileAssetSpec {
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *FlannelNetworkingSpec) DeepCopyInto(out *FlannelNetworkingSpec) {
|
func (in *FlannelNetworkingSpec) DeepCopyInto(out *FlannelNetworkingSpec) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.IptablesResyncSeconds != nil {
|
||||||
|
in, out := &in.IptablesResyncSeconds, &out.IptablesResyncSeconds
|
||||||
|
*out = new(int32)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2503,7 +2508,7 @@ func (in *NetworkingSpec) DeepCopyInto(out *NetworkingSpec) {
|
||||||
if in.Flannel != nil {
|
if in.Flannel != nil {
|
||||||
in, out := &in.Flannel, &out.Flannel
|
in, out := &in.Flannel, &out.Flannel
|
||||||
*out = new(FlannelNetworkingSpec)
|
*out = new(FlannelNetworkingSpec)
|
||||||
**out = **in
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
if in.Calico != nil {
|
if in.Calico != nil {
|
||||||
in, out := &in.Calico, &out.Calico
|
in, out := &in.Calico, &out.Calico
|
||||||
|
|
|
@ -69,6 +69,8 @@ type WeaveNetworkingSpec struct {
|
||||||
type FlannelNetworkingSpec struct {
|
type FlannelNetworkingSpec struct {
|
||||||
// Backend is the backend overlay type we want to use (vxlan or udp)
|
// Backend is the backend overlay type we want to use (vxlan or udp)
|
||||||
Backend string `json:"backend,omitempty"`
|
Backend string `json:"backend,omitempty"`
|
||||||
|
// IptablesResyncSeconds sets resync period for iptables rules, in seconds
|
||||||
|
IptablesResyncSeconds *int32 `json:"iptablesResyncSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CalicoNetworkingSpec declares that we want Calico networking
|
// CalicoNetworkingSpec declares that we want Calico networking
|
||||||
|
|
|
@ -2530,6 +2530,7 @@ func Convert_kops_FileAssetSpec_To_v1alpha2_FileAssetSpec(in *kops.FileAssetSpec
|
||||||
|
|
||||||
func autoConvert_v1alpha2_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *FlannelNetworkingSpec, out *kops.FlannelNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_v1alpha2_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *FlannelNetworkingSpec, out *kops.FlannelNetworkingSpec, s conversion.Scope) error {
|
||||||
out.Backend = in.Backend
|
out.Backend = in.Backend
|
||||||
|
out.IptablesResyncSeconds = in.IptablesResyncSeconds
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2540,6 +2541,7 @@ func Convert_v1alpha2_FlannelNetworkingSpec_To_kops_FlannelNetworkingSpec(in *Fl
|
||||||
|
|
||||||
func autoConvert_kops_FlannelNetworkingSpec_To_v1alpha2_FlannelNetworkingSpec(in *kops.FlannelNetworkingSpec, out *FlannelNetworkingSpec, s conversion.Scope) error {
|
func autoConvert_kops_FlannelNetworkingSpec_To_v1alpha2_FlannelNetworkingSpec(in *kops.FlannelNetworkingSpec, out *FlannelNetworkingSpec, s conversion.Scope) error {
|
||||||
out.Backend = in.Backend
|
out.Backend = in.Backend
|
||||||
|
out.IptablesResyncSeconds = in.IptablesResyncSeconds
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1164,6 +1164,11 @@ func (in *FileAssetSpec) DeepCopy() *FileAssetSpec {
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *FlannelNetworkingSpec) DeepCopyInto(out *FlannelNetworkingSpec) {
|
func (in *FlannelNetworkingSpec) DeepCopyInto(out *FlannelNetworkingSpec) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.IptablesResyncSeconds != nil {
|
||||||
|
in, out := &in.IptablesResyncSeconds, &out.IptablesResyncSeconds
|
||||||
|
*out = new(int32)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2574,7 +2579,7 @@ func (in *NetworkingSpec) DeepCopyInto(out *NetworkingSpec) {
|
||||||
if in.Flannel != nil {
|
if in.Flannel != nil {
|
||||||
in, out := &in.Flannel, &out.Flannel
|
in, out := &in.Flannel, &out.Flannel
|
||||||
*out = new(FlannelNetworkingSpec)
|
*out = new(FlannelNetworkingSpec)
|
||||||
**out = **in
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
if in.Calico != nil {
|
if in.Calico != nil {
|
||||||
in, out := &in.Calico, &out.Calico
|
in, out := &in.Calico, &out.Calico
|
||||||
|
|
|
@ -1330,6 +1330,11 @@ func (in *FileAssetSpec) DeepCopy() *FileAssetSpec {
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *FlannelNetworkingSpec) DeepCopyInto(out *FlannelNetworkingSpec) {
|
func (in *FlannelNetworkingSpec) DeepCopyInto(out *FlannelNetworkingSpec) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.IptablesResyncSeconds != nil {
|
||||||
|
in, out := &in.IptablesResyncSeconds, &out.IptablesResyncSeconds
|
||||||
|
*out = new(int32)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2772,7 +2777,7 @@ func (in *NetworkingSpec) DeepCopyInto(out *NetworkingSpec) {
|
||||||
if in.Flannel != nil {
|
if in.Flannel != nil {
|
||||||
in, out := &in.Flannel, &out.Flannel
|
in, out := &in.Flannel, &out.Flannel
|
||||||
*out = new(FlannelNetworkingSpec)
|
*out = new(FlannelNetworkingSpec)
|
||||||
**out = **in
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
if in.Calico != nil {
|
if in.Calico != nil {
|
||||||
in, out := &in.Calico, &out.Calico
|
in, out := &in.Calico, &out.Calico
|
||||||
|
|
Loading…
Reference in New Issue