Annotation Type Version
-
@Target(TYPE) @Retention(RUNTIME) public @interface Version
Allows to specify which version of the API the annotated class is defined under. Together withGroup
, this allows to determine the `apiVersion` field associated with the annotated resource. See https://kubernetes.io/docs/reference/using-api/#api-versioning for more details.
-
-
Element Detail
-
value
String value
The name of this version.- Returns:
- the name of this version
-
-
-
storage
boolean storage
Whether or not this version corresponds to the persisted version for the associated CRD. Note that only one version can setstorage
totrue
for a given CRD.- Returns:
true
if this version corresponds to the persisted version for the associated CRD,false
otherwise
- Default:
- true
-
-