cue.dev/x/k8s.io@v0.12.0

apimachinery/pkg/util/intstr/schema.cue raw

1package intstr
2
3// IntOrString is a type that can hold an int32 or a string. When used in JSON
4// or YAML marshalling and unmarshalling, it produces or consumes the inner
5// type. This allows you to have, for example, a JSON field that can accept a
6// name or number.
7#IntOrString: matchN(1, [int, string])