mirror of https://github.com/kubernetes/kops.git
Merge pull request #15267 from infonova/os-occm-address-sort-order
OpenStack: Add OCCM address sort order config
This commit is contained in:
commit
0cf258d09c
|
|
@ -498,6 +498,8 @@ spec:
|
||||||
network:
|
network:
|
||||||
description: OpenstackNetwork defines the config for a network
|
description: OpenstackNetwork defines the config for a network
|
||||||
properties:
|
properties:
|
||||||
|
addressSortOrder:
|
||||||
|
type: string
|
||||||
availabilityZoneHints:
|
availabilityZoneHints:
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
|
|
@ -817,6 +817,7 @@ type OpenstackNetwork struct {
|
||||||
IPv6SupportDisabled *bool `json:"ipv6SupportDisabled,omitempty"`
|
IPv6SupportDisabled *bool `json:"ipv6SupportDisabled,omitempty"`
|
||||||
PublicNetworkNames []*string `json:"publicNetworkNames,omitempty"`
|
PublicNetworkNames []*string `json:"publicNetworkNames,omitempty"`
|
||||||
InternalNetworkNames []*string `json:"internalNetworkNames,omitempty"`
|
InternalNetworkNames []*string `json:"internalNetworkNames,omitempty"`
|
||||||
|
AddressSortOrder *string `json:"addressSortOrder,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenstackMetadata defines config for metadata service related settings
|
// OpenstackMetadata defines config for metadata service related settings
|
||||||
|
|
|
||||||
|
|
@ -823,6 +823,7 @@ type OpenstackNetwork struct {
|
||||||
IPv6SupportDisabled *bool `json:"ipv6SupportDisabled,omitempty"`
|
IPv6SupportDisabled *bool `json:"ipv6SupportDisabled,omitempty"`
|
||||||
PublicNetworkNames []*string `json:"publicNetworkNames,omitempty"`
|
PublicNetworkNames []*string `json:"publicNetworkNames,omitempty"`
|
||||||
InternalNetworkNames []*string `json:"internalNetworkNames,omitempty"`
|
InternalNetworkNames []*string `json:"internalNetworkNames,omitempty"`
|
||||||
|
AddressSortOrder *string `json:"addressSortOrder,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenstackMetadata defines config for metadata service related settings
|
// OpenstackMetadata defines config for metadata service related settings
|
||||||
|
|
|
||||||
|
|
@ -6537,6 +6537,7 @@ func autoConvert_v1alpha2_OpenstackNetwork_To_kops_OpenstackNetwork(in *Openstac
|
||||||
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
||||||
out.PublicNetworkNames = in.PublicNetworkNames
|
out.PublicNetworkNames = in.PublicNetworkNames
|
||||||
out.InternalNetworkNames = in.InternalNetworkNames
|
out.InternalNetworkNames = in.InternalNetworkNames
|
||||||
|
out.AddressSortOrder = in.AddressSortOrder
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -6550,6 +6551,7 @@ func autoConvert_kops_OpenstackNetwork_To_v1alpha2_OpenstackNetwork(in *kops.Ope
|
||||||
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
||||||
out.PublicNetworkNames = in.PublicNetworkNames
|
out.PublicNetworkNames = in.PublicNetworkNames
|
||||||
out.InternalNetworkNames = in.InternalNetworkNames
|
out.InternalNetworkNames = in.InternalNetworkNames
|
||||||
|
out.AddressSortOrder = in.AddressSortOrder
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4887,6 +4887,11 @@ func (in *OpenstackNetwork) DeepCopyInto(out *OpenstackNetwork) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if in.AddressSortOrder != nil {
|
||||||
|
in, out := &in.AddressSortOrder, &out.AddressSortOrder
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -814,6 +814,7 @@ type OpenstackNetwork struct {
|
||||||
IPv6SupportDisabled *bool `json:"ipv6SupportDisabled,omitempty"`
|
IPv6SupportDisabled *bool `json:"ipv6SupportDisabled,omitempty"`
|
||||||
PublicNetworkNames []*string `json:"publicNetworkNames,omitempty"`
|
PublicNetworkNames []*string `json:"publicNetworkNames,omitempty"`
|
||||||
InternalNetworkNames []*string `json:"internalNetworkNames,omitempty"`
|
InternalNetworkNames []*string `json:"internalNetworkNames,omitempty"`
|
||||||
|
AddressSortOrder *string `json:"addressSortOrder,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenstackMetadata defines config for metadata service related settings
|
// OpenstackMetadata defines config for metadata service related settings
|
||||||
|
|
|
||||||
|
|
@ -6786,6 +6786,7 @@ func autoConvert_v1alpha3_OpenstackNetwork_To_kops_OpenstackNetwork(in *Openstac
|
||||||
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
||||||
out.PublicNetworkNames = in.PublicNetworkNames
|
out.PublicNetworkNames = in.PublicNetworkNames
|
||||||
out.InternalNetworkNames = in.InternalNetworkNames
|
out.InternalNetworkNames = in.InternalNetworkNames
|
||||||
|
out.AddressSortOrder = in.AddressSortOrder
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -6799,6 +6800,7 @@ func autoConvert_kops_OpenstackNetwork_To_v1alpha3_OpenstackNetwork(in *kops.Ope
|
||||||
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
out.IPv6SupportDisabled = in.IPv6SupportDisabled
|
||||||
out.PublicNetworkNames = in.PublicNetworkNames
|
out.PublicNetworkNames = in.PublicNetworkNames
|
||||||
out.InternalNetworkNames = in.InternalNetworkNames
|
out.InternalNetworkNames = in.InternalNetworkNames
|
||||||
|
out.AddressSortOrder = in.AddressSortOrder
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4808,6 +4808,11 @@ func (in *OpenstackNetwork) DeepCopyInto(out *OpenstackNetwork) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if in.AddressSortOrder != nil {
|
||||||
|
in, out := &in.AddressSortOrder, &out.AddressSortOrder
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5083,6 +5083,11 @@ func (in *OpenstackNetwork) DeepCopyInto(out *OpenstackNetwork) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if in.AddressSortOrder != nil {
|
||||||
|
in, out := &in.AddressSortOrder, &out.AddressSortOrder
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -906,6 +906,9 @@ func MakeCloudConfig(spec kops.ClusterSpec) []string {
|
||||||
for _, name := range networking.InternalNetworkNames {
|
for _, name := range networking.InternalNetworkNames {
|
||||||
networkingLines = append(networkingLines, fmt.Sprintf("internal-network-name=%s", fi.ValueOf(name)))
|
networkingLines = append(networkingLines, fmt.Sprintf("internal-network-name=%s", fi.ValueOf(name)))
|
||||||
}
|
}
|
||||||
|
if networking.AddressSortOrder != nil {
|
||||||
|
networkingLines = append(networkingLines, fmt.Sprintf("address-sort-order=%s", fi.ValueOf(networking.AddressSortOrder)))
|
||||||
|
}
|
||||||
|
|
||||||
if len(networkingLines) > 0 {
|
if len(networkingLines) > 0 {
|
||||||
lines = append(lines, "[Networking]")
|
lines = append(lines, "[Networking]")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue