start the apimachinery repo

This commit is contained in:
deads2k
2017-01-11 09:09:48 -05:00
parent 98acd800da
commit 6a4d5cd7cc
2853 changed files with 51100 additions and 9519 deletions

View File

@@ -22,9 +22,8 @@ package openapi
import (
spec "github.com/go-openapi/spec"
common "k8s.io/apimachinery/pkg/genericapiserver/openapi/common"
resource "k8s.io/kubernetes/pkg/api/resource"
v1 "k8s.io/kubernetes/pkg/apis/meta/v1"
common "k8s.io/kubernetes/pkg/genericapiserver/openapi/common"
intstr "k8s.io/kubernetes/pkg/util/intstr"
)
@@ -8281,7 +8280,24 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
},
Dependencies: []string{},
},
"v1.Time": v1.Time{}.OpenAPIDefinition(), "v1.Timestamp": {
"v1.Time": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.",
Properties: map[string]spec.Schema{
"Time": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "date-time",
},
},
},
Required: []string{"Time"},
},
},
Dependencies: []string{},
},
"v1.Timestamp": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Timestamp is a struct that is equivalent to Time, but intended for protobuf marshalling/unmarshalling. It is generated into a serialization that matches Time. Do not use in Go structs.",