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 with Group, 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.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The name of this version.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean served
      Whether this version is served (i.e.
      boolean storage
      Whether or not this version corresponds to the persisted version for the associated CRD.
    • 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 set storage to true for a given CRD.
        Returns:
        true if this version corresponds to the persisted version for the associated CRD, false otherwise
        Default:
        true
      • served

        boolean served
        Whether this version is served (i.e. enabled for consumption from the REST API) or not.
        Returns:
        true if this version is served by the REST API, false otherwise
        Default:
        true