@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Version
Group, this allows to
determine the apiVersion field associated with the annotated resource.
See API versioning for more details.| Modifier and Type | Required Element and Description |
|---|---|
String |
value
The name of this version.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
deprecated
Whether this version is deprecated.
|
String |
deprecationWarning
The warning message to indicate the deprecation.
|
boolean |
served
Whether this version is served (i.e.
|
boolean |
storage
Whether this version corresponds to the persisted version for the associated CRD.
|
public abstract String value
public abstract boolean storage
storage to true for a given CRD.true if this version corresponds to the persisted version for the associated CRD, false otherwisepublic abstract boolean served
true if this version is served by the REST API, false otherwisepublic abstract boolean deprecated
deprecationWarning() if desired.true if this version is deprecated.public abstract String deprecationWarning
deprecated() is true.
The warning message should indicate the deprecated API group, version, and kind,
and should indicate what API group, version, and kind should be used instead, if applicable.Copyright © 2015–2024 Red Hat. All rights reserved.