Skip to content

apiserverinternal_v1alpha1

ServerStorageVersion

class lightkube.models.apiserverinternal_v1alpha1.ServerStorageVersion(apiServerID, decodableVersions, encodingVersion, servedVersions=None)

An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.

parameters

  • apiServerID str - apiServerID is the ID of the reporting API server.
  • decodableVersions List[str] - decodableVersions are the encoding versions the API server can handle to decode. The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
  • encodingVersion str - encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd).
  • servedVersions Optional[List[str]] - servedVersions lists all versions the API server can serve. DecodableVersions must include all ServedVersions.

StorageVersion

class lightkube.models.apiserverinternal_v1alpha1.StorageVersion(metadata, apiVersion=None, kind=None, spec=None, status=None)

Storage version of a specific resource.

parameters

  • metadata meta_v1.ObjectMeta - metadata is the standard object metadata. The name is ..
  • apiVersion Optional[str] - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info
  • kind Optional[str] - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • spec Optional[StorageVersionSpec] - spec is an empty spec. It is here to comply with Kubernetes API style.
  • status Optional[StorageVersionStatus] - status on the version the API server instance can decode from and encode objects to when persisting objects in the backend.

StorageVersionCondition

class lightkube.models.apiserverinternal_v1alpha1.StorageVersionCondition(message, reason, status, type, lastTransitionTime=None, observedGeneration=None)

Describes the state of the storageVersion at a certain point.

parameters

  • message str - message is a human readable string indicating details about the transition.
  • reason str - reason for the condition's last transition.
  • status str - status of the condition, one of True, False, Unknown.
  • type str - type of the condition.
  • lastTransitionTime Optional[meta_v1.Time] - lastTransitionTime is the last time the condition transitioned from one status to another.
  • observedGeneration Optional[int] - observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.

StorageVersionList

class lightkube.models.apiserverinternal_v1alpha1.StorageVersionList(items, apiVersion=None, kind=None, metadata=None)

A list of StorageVersions.

parameters

  • items List[StorageVersion] - Items holds a list of StorageVersion
  • apiVersion Optional[str] - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info
  • kind Optional[str] - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info
  • metadata Optional[meta_v1.ListMeta] - Standard list metadata. More info

StorageVersionSpec

StorageVersionStatus

class lightkube.models.apiserverinternal_v1alpha1.StorageVersionStatus(commonEncodingVersion=None, conditions=None, storageVersions=None)

API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.

parameters

  • commonEncodingVersion Optional[str] - commonEncodingVersion is set to an encoding storage version if all API server instances share that same version. If they don't share one storage version, this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.
  • conditions Optional[List[StorageVersionCondition]] - conditions lists the latest available observations of the storageVersion's state.
  • storageVersions Optional[List[ServerStorageVersion]] - storageVersions lists the reported versions per API server instance.