mirror of https://github.com/knative/pkg.git
add openapi-gen=true for some structs (#510)
This commit is contained in:
parent
e2418a08c1
commit
76da19bbc6
|
@ -55,6 +55,7 @@ const (
|
||||||
// Conditions defines a readiness condition for a Knative resource.
|
// 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
|
// See: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#typical-status-properties
|
||||||
// +k8s:deepcopy-gen=true
|
// +k8s:deepcopy-gen=true
|
||||||
|
// +k8s:openapi-gen=true
|
||||||
type Condition struct {
|
type Condition struct {
|
||||||
// Type of condition.
|
// Type of condition.
|
||||||
// +required
|
// +required
|
||||||
|
|
|
@ -36,6 +36,7 @@ var _ duck.Implementable = (*Conditions)(nil)
|
||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +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
|
// KResource is a skeleton type wrapping Conditions in the manner we expect
|
||||||
// resource writers defining compatible resources to embed it. We will
|
// resource writers defining compatible resources to embed it. We will
|
||||||
|
|
|
@ -22,6 +22,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// VolatileTime wraps metav1.Time
|
// VolatileTime wraps metav1.Time
|
||||||
|
// +k8s:openapi-gen=true
|
||||||
type VolatileTime struct {
|
type VolatileTime struct {
|
||||||
Inner metav1.Time
|
Inner metav1.Time
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue