Skip to content

Commit

Permalink
auto generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobTanenbaum committed Jul 6, 2017
1 parent 31a1f14 commit bb7d9b7
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 59 deletions.
40 changes: 38 additions & 2 deletions pkg/openapi/zz_generated.openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -8297,6 +8297,19 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
Format: "",
},
},
"clusterNetworks": {
SchemaProps: spec.SchemaProps{
Description: "PLACEHOLDER",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: ref("github.com/openshift/origin/pkg/sdn/apis/network/v1.ClusterNetworkEntry"),
},
},
},
},
},
"hostsubnetlength": {
SchemaProps: spec.SchemaProps{
Description: "HostSubnetLength is the number of bits of network to allocate to each node. eg, 8 would mean that each node would have a /24 slice of the overlay network for its pods",
Expand All @@ -8319,11 +8332,34 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
},
},
},
Required: []string{"network", "hostsubnetlength", "serviceNetwork"},
Required: []string{"network", "clusterNetworks", "hostsubnetlength", "serviceNetwork"},
},
},
Dependencies: []string{
"k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
"github.com/openshift/origin/pkg/sdn/apis/network/v1.ClusterNetworkEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
},
"github.com/openshift/origin/pkg/sdn/apis/network/v1.ClusterNetworkEntry": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "PLACEHOLDER",
Properties: map[string]spec.Schema{
"CIDR": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
"hostsubnetlength": {
SchemaProps: spec.SchemaProps{
Type: []string{"integer"},
Format: "int64",
},
},
},
Required: []string{"CIDR", "hostsubnetlength"},
},
},
Dependencies: []string{},
},
"github.com/openshift/origin/pkg/sdn/apis/network/v1.ClusterNetworkList": {
Schema: spec.Schema{
Expand Down
139 changes: 82 additions & 57 deletions pkg/sdn/apis/network/v1/generated.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/sdn/apis/network/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/sdn/apis/network/v1/zz_generated.conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func Convert_network_ClusterNetwork_To_v1_ClusterNetwork(in *network.ClusterNetw

func autoConvert_v1_ClusterNetworkEntry_To_network_ClusterNetworkEntry(in *ClusterNetworkEntry, out *network.ClusterNetworkEntry, s conversion.Scope) error {
out.CIDR = in.CIDR
out.HostSubnetLength = in.HostSubnetLength
return nil
}

Expand All @@ -89,6 +90,7 @@ func Convert_v1_ClusterNetworkEntry_To_network_ClusterNetworkEntry(in *ClusterNe

func autoConvert_network_ClusterNetworkEntry_To_v1_ClusterNetworkEntry(in *network.ClusterNetworkEntry, out *ClusterNetworkEntry, s conversion.Scope) error {
out.CIDR = in.CIDR
out.HostSubnetLength = in.HostSubnetLength
return nil
}

Expand Down

0 comments on commit bb7d9b7

Please sign in to comment.