We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b6c37e commit 2866f23Copy full SHA for 2866f23
pkg/util/intstr/intstr.go
@@ -131,6 +131,10 @@ func (IntOrString) OpenAPISchemaType() []string { return []string{"string"} }
131
// the OpenAPI spec of this type.
132
func (IntOrString) OpenAPISchemaFormat() string { return "int-or-string" }
133
134
+// OpenAPIV3OneOfTypes is used by the kube-openapi generator when constructing
135
+// the OpenAPI v3 spec of this type.
136
+func (IntOrString) OpenAPIV3OneOfTypes() []string { return []string{"integer", "string"} }
137
+
138
func ValueOrDefault(intOrPercent *IntOrString, defaultValue IntOrString) *IntOrString {
139
if intOrPercent == nil {
140
return &defaultValue
0 commit comments