v1alpha1

package
v1.26.0-kw5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "internal.apiserver.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ServerStorageVersion

type ServerStorageVersion struct {

	// The ID of the reporting API server.
	APIServerID string `json:"apiServerID,omitempty"`

	// The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
	DecodableVersions []string `json:"decodableVersions,omitempty"`

	// The API server encodes the object to this version when persisting it in the backend (e.g., etcd).
	EncodingVersion string `json:"encodingVersion,omitempty"`
}

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

swagger:model ServerStorageVersion

type StorageVersion

type StorageVersion struct {

	// 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: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// 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: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// The name is <group>.<resource>.
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is an empty spec. It is here to comply with Kubernetes API style.
	// Required: true
	Spec *jsonext.RawMessage `json:"spec"`

	// API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend.
	// Required: true
	Status *StorageVersionStatus `json:"status"`
}

StorageVersion Storage version of a specific resource.

swagger:model StorageVersion

func (*StorageVersion) GroupVersionKind

func (v *StorageVersion) GroupVersionKind() schema.GroupVersionKind

type StorageVersionCondition

type StorageVersionCondition struct {

	// Last time the condition transitioned from one status to another.
	LastTransitionTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastTransitionTime,omitempty"`

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`

	// If set, this represents the .metadata.generation that the condition was set based upon.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// The reason for the condition's last transition.
	// Required: true
	Reason *string `json:"reason"`

	// Status of the condition, one of True, False, Unknown.
	// Required: true
	Status *string `json:"status"`

	// Type of the condition.
	// Required: true
	Type *string `json:"type"`
}

StorageVersionCondition Describes the state of the storageVersion at a certain point.

swagger:model StorageVersionCondition

type StorageVersionList

type StorageVersionList struct {

	// 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: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Items holds a list of StorageVersion
	// Required: true
	Items []*StorageVersion `json:"items"`

	// 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: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

StorageVersionList A list of StorageVersions.

swagger:model StorageVersionList

func (*StorageVersionList) GroupVersionKind

func (v *StorageVersionList) GroupVersionKind() schema.GroupVersionKind

type StorageVersionStatus

type StorageVersionStatus struct {

	// If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise 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.
	CommonEncodingVersion string `json:"commonEncodingVersion,omitempty"`

	// The latest available observations of the storageVersion's state.
	Conditions []*StorageVersionCondition `json:"conditions,omitempty"`

	// The reported versions per API server instance.
	StorageVersions []*ServerStorageVersion `json:"storageVersions,omitempty"`
}

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

swagger:model StorageVersionStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL