Add +k8s:openapi-gen tag to API types

This commit is contained in:
mbohlool
2016-08-25 14:58:23 -07:00
parent 6ba271b9ae
commit 702f55e61d
38 changed files with 62 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ var (
// int64Amount represents a fixed precision numerator and arbitrary scale exponent. It is faster
// than operations on inf.Dec for values that can be represented as int64.
// +k8s:openapi-gen=true
type int64Amount struct {
value int64
scale Scale

View File

@@ -93,6 +93,7 @@ import (
// +protobuf.embed=string
// +protobuf.options.marshal=false
// +protobuf.options.(gogoproto.goproto_stringer)=false
// +k8s:openapi-gen=true
type Quantity struct {
// i is the quantity in int64 scaled form, if d.Dec == nil
i int64Amount