v1beta1

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the hostpathprovisioner v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=hostpathprovisioner.kubevirt.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: hostpathprovisioner.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind added in v0.7.0

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource added in v0.7.0

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClaimStatus added in v0.11.0

type ClaimStatus struct {
	// Name of the PersistentVolumeClaim
	Name string `json:"name" valid:"required"`
	// Status of the PersistentVolumeClaim
	Status corev1.PersistentVolumeClaimStatus `json:"status" valid:"required"`
}

ClaimStatus defines the storage claim status for each PVC in a storage pool

func (*ClaimStatus) DeepCopy added in v0.11.0

func (in *ClaimStatus) DeepCopy() *ClaimStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClaimStatus.

func (*ClaimStatus) DeepCopyInto added in v0.11.0

func (in *ClaimStatus) DeepCopyInto(out *ClaimStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HostPathProvisioner

type HostPathProvisioner struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   HostPathProvisionerSpec   `json:"spec,omitempty"`
	Status HostPathProvisionerStatus `json:"status,omitempty"`
}

HostPathProvisioner is the Schema for the hostpathprovisioners API +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +kubebuilder:resource:path=hostpathprovisioners,scope=Cluster +kubebuilder:storageversion

func (*HostPathProvisioner) DeepCopy

func (in *HostPathProvisioner) DeepCopy() *HostPathProvisioner

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathProvisioner.

func (*HostPathProvisioner) DeepCopyInto

func (in *HostPathProvisioner) DeepCopyInto(out *HostPathProvisioner)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HostPathProvisioner) DeepCopyObject

func (in *HostPathProvisioner) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*HostPathProvisioner) SetupWebhookWithManager added in v0.11.0

func (r *HostPathProvisioner) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager configures the webhook for the passed in manager

func (*HostPathProvisioner) ValidateCreate added in v0.11.0

func (r *HostPathProvisioner) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*HostPathProvisioner) ValidateDelete added in v0.11.0

func (r *HostPathProvisioner) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*HostPathProvisioner) ValidateUpdate added in v0.11.0

func (r *HostPathProvisioner) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type HostPathProvisionerList

type HostPathProvisionerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []HostPathProvisioner `json:"items"`
}

HostPathProvisionerList contains a list of HostPathProvisioner

func (*HostPathProvisionerList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathProvisionerList.

func (*HostPathProvisionerList) DeepCopyInto

func (in *HostPathProvisionerList) DeepCopyInto(out *HostPathProvisionerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*HostPathProvisionerList) DeepCopyObject

func (in *HostPathProvisionerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type HostPathProvisionerSpec

type HostPathProvisionerSpec struct {
	// ImagePullPolicy is the container pull policy for the host path provisioner containers
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty" valid:"required"`
	// PathConfig describes the location and layout of PV storage on nodes. Deprecated
	PathConfig *PathConfig `json:"pathConfig,omitempty" optional:"true"`
	// Restrict on which nodes HPP workload pods will be scheduled
	Workload NodePlacement `json:"workload,omitempty"`
	// FeatureGates are a list of specific enabled feature gates
	// +listType=set
	FeatureGates []string `json:"featureGates,omitempty"`
	// StoragePools are a list of storage pools
	// +listType=atomic
	StoragePools []StoragePool `json:"storagePools,omitempty" optional:"true"`
}

HostPathProvisionerSpec defines the desired state of HostPathProvisioner +k8s:openapi-gen=true

func (*HostPathProvisionerSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathProvisionerSpec.

func (*HostPathProvisionerSpec) DeepCopyInto

func (in *HostPathProvisionerSpec) DeepCopyInto(out *HostPathProvisionerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HostPathProvisionerStatus

type HostPathProvisionerStatus struct {
	// Conditions contains the current conditions observed by the operator
	// +listType=atomic
	Conditions []conditions.Condition `json:"conditions,omitempty" optional:"true"`
	// OperatorVersion The version of the HostPathProvisioner Operator
	OperatorVersion string `json:"operatorVersion,omitempty" optional:"true"`
	// TargetVersion The targeted version of the HostPathProvisioner deployment
	TargetVersion string `json:"targetVersion,omitempty" optional:"true"`
	// ObservedVersion The observed version of the HostPathProvisioner deployment
	ObservedVersion string `json:"observedVersion,omitempty" optional:"true"`
	// +listType=atomic
	StoragePoolStatuses []StoragePoolStatus `json:"storagePoolStatuses,omitempty" optional:"true"`
}

HostPathProvisionerStatus defines the observed state of HostPathProvisioner +k8s:openapi-gen=true

func (*HostPathProvisionerStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostPathProvisionerStatus.

func (*HostPathProvisionerStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodePlacement added in v0.7.0

type NodePlacement struct {
	// nodeSelector is the node selector applied to the relevant kind of pods
	// It specifies a map of key-value pairs: for the pod to be eligible to run on a node,
	// the node must have each of the indicated key-value pairs as labels
	// (it can have additional labels as well).
	// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
	// +kubebuilder:validation:Optional
	// +optional
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// affinity enables pod affinity/anti-affinity placement expanding the types of constraints
	// that can be expressed with nodeSelector.
	// affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector
	// See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
	// +kubebuilder:validation:Optional
	// +optional
	Affinity *corev1.Affinity `json:"affinity,omitempty"`

	// tolerations is a list of tolerations applied to the relevant kind of pods
	// See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for more info.
	// These are additional tolerations other than default ones.
	// +kubebuilder:validation:Optional
	// +optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}

NodePlacement describes node scheduling configuration. +k8s:openapi-gen=true

func (*NodePlacement) DeepCopy added in v0.7.0

func (in *NodePlacement) DeepCopy() *NodePlacement

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePlacement.

func (*NodePlacement) DeepCopyInto added in v0.7.0

func (in *NodePlacement) DeepCopyInto(out *NodePlacement)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PathConfig

type PathConfig struct {
	// Path The path the directories for the PVs are created under
	Path string `json:"path,omitempty" valid:"required"`
	// UseNamingPrefix Use the name of the PVC requesting the PV as part of the directory created
	UseNamingPrefix bool `json:"useNamingPrefix,omitempty"`
}

PathConfig contains the information needed to build the path where the PVs will be created. Deprecated +k8s:openapi-gen=true

func (*PathConfig) DeepCopy

func (in *PathConfig) DeepCopy() *PathConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PathConfig.

func (*PathConfig) DeepCopyInto

func (in *PathConfig) DeepCopyInto(out *PathConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StoragePool added in v0.11.0

type StoragePool struct {
	// Name specifies an identifier that is used in the storage class arguments to identify the source to use.
	Name string `json:"name" valid:"required"`
	// PVCTemplate is the template of the PVC to create as the source volume
	PVCTemplate *corev1.PersistentVolumeClaimSpec `json:"pvcTemplate,omitempty" optional:"true"`
	// path the path to use on the host, this is a required field
	Path string `json:"path" valid:"required"`
}

StoragePool defines how and where hostpath provisioner can use storage to create volumes. +k8s:openapi-gen=true

func (*StoragePool) DeepCopy added in v0.11.0

func (in *StoragePool) DeepCopy() *StoragePool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePool.

func (*StoragePool) DeepCopyInto added in v0.11.0

func (in *StoragePool) DeepCopyInto(out *StoragePool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StoragePoolPhase added in v0.11.0

type StoragePoolPhase string

StoragePoolPhase is the current phase of the storage pool.

const (
	// StoragePoolPreparing indicates the storage pool is preparing one or more volumes for use.
	StoragePoolPreparing StoragePoolPhase = "Preparing"
	//StoragePoolMounting indicates one or more pool are in the process of mounting.
	StoragePoolMounting StoragePoolPhase = "Mounting"
	// StoragePoolReady indicates all the volumes are ready for use.
	StoragePoolReady StoragePoolPhase = "Ready"
)

type StoragePoolStatus added in v0.11.0

type StoragePoolStatus struct {
	// Name is the name of the storage pool
	Name string `json:"name" valid:"required"`
	// StoragePoolPhase indicates which phase the storage pool is in.
	Phase StoragePoolPhase `json:"phase" valid:"required"`
	// DesiredReady is the number of desired ready replicasets.
	DesiredReady int `json:"desiredReady,omitempty" optional:"true"`
	// CurrentReady is the number of currently ready replicasets.
	CurrentReady int `json:"currentReady,omitempty" optional:"true"`
	// The status of all the claims.
	// +listType=atomic
	ClaimStatuses []ClaimStatus `json:"claimStatuses,omitempty" optional:"true"`
}

StoragePoolStatus is the status of the named storage pool

func (*StoragePoolStatus) DeepCopy added in v0.11.0

func (in *StoragePoolStatus) DeepCopy() *StoragePoolStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoragePoolStatus.

func (*StoragePoolStatus) DeepCopyInto added in v0.11.0

func (in *StoragePoolStatus) DeepCopyInto(out *StoragePoolStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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