add openapi-gen=true for some structs (#510)

This commit is contained in:
Jin Chi He 2019-07-12 12:17:33 +08:00 committed by Knative Prow Robot
parent e2418a08c1
commit 76da19bbc6
3 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@ const (
// Conditions defines a readiness condition for a Knative resource.
// See: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#typical-status-properties
// +k8s:deepcopy-gen=true
// +k8s:openapi-gen=true
type Condition struct {
// Type of condition.
// +required

View File

@ -36,6 +36,7 @@ var _ duck.Implementable = (*Conditions)(nil)
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// KResource is a skeleton type wrapping Conditions in the manner we expect
// resource writers defining compatible resources to embed it. We will

View File

@ -22,6 +22,7 @@ import (
)
// VolatileTime wraps metav1.Time
// +k8s:openapi-gen=true
type VolatileTime struct {
Inner metav1.Time
}