Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +kubebuilder:object:generate=true +groupName=cache.jhouse.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cache.jhouse.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type ImageConfiguration ¶
type ImageConfiguration struct {
// Set nfs provisioner operator image
// +kubebuilder:default="k8s.gcr.io/sig-storage/nfs-provisioner@sha256:e943bb77c7df05ebdc8c7888b2db289b13bf9f012d6a3a5a74f14d4d5743d439"
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="NFS Provisioner Image",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
Image *string `json:"image"`
// Image PullPolicy is for nfs provisioner operator image.
// +kubebuilder:default="IfNotPresent"
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Pull Policy",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:imagePullPolicy"}
ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy"`
}
ImageConfiguration holds configuration of the image to use
func (*ImageConfiguration) DeepCopy ¶
func (in *ImageConfiguration) DeepCopy() *ImageConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageConfiguration.
func (*ImageConfiguration) DeepCopyInto ¶
func (in *ImageConfiguration) DeepCopyInto(out *ImageConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NFSProvisioner ¶
type NFSProvisioner struct {
Spec NFSProvisionerSpec `json:"spec,omitempty"`
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Status NFSProvisionerStatus `json:"status,omitempty"`
}
NFSProvisioner is the Schema for the nfsprovisioners API +operator-sdk:csv:customresourcedefinitions:displayName="NFS Provisioner App",resources={{ServiceAccount,v1,nfs-provisioner},{SecurityContextConstraints,v1,nfs-provisioner},{Deployment,v1,nfs-provisioner},{PersistentVolumeClaim,v1,nfs-server},{ClusterRole,v1,nfs-provisioner-runner},{ClusterRoleBinding,v1,nfs-provisioner-runner},{Role,v1,leader-locking-nfs-provisioner},{RoleBinding,v1,leader-locking-nfs-provisioner},{Service,v1,nfs-provisioner},{StorageClass,v1,nfs}}
func (*NFSProvisioner) DeepCopy ¶
func (in *NFSProvisioner) DeepCopy() *NFSProvisioner
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NFSProvisioner.
func (*NFSProvisioner) DeepCopyInto ¶
func (in *NFSProvisioner) DeepCopyInto(out *NFSProvisioner)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NFSProvisioner) DeepCopyObject ¶
func (in *NFSProvisioner) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NFSProvisionerList ¶
type NFSProvisionerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []NFSProvisioner `json:"items"`
}
NFSProvisionerList contains a list of NFSProvisioner
func (*NFSProvisionerList) DeepCopy ¶
func (in *NFSProvisionerList) DeepCopy() *NFSProvisionerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NFSProvisionerList.
func (*NFSProvisionerList) DeepCopyInto ¶
func (in *NFSProvisionerList) DeepCopyInto(out *NFSProvisionerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NFSProvisionerList) DeepCopyObject ¶
func (in *NFSProvisionerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NFSProvisionerSpec ¶
type NFSProvisionerSpec struct {
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
NFSImageConfiguration *ImageConfiguration `json:"nfsImageConfiguration,omitempty"`
HostPathDir string `json:"hostPathDir,omitempty"`
Pvc string `json:"pvc,omitempty"`
StorageSize string `json:"storageSize,omitempty"`
SCForNFSPvc string `json:"scForNFSPvc,omitempty"`
SCForNFSProvisioner string `json:"scForNFS,omitempty"`
}
NFSProvisionerSpec defines the desired state of NFSProvisioner
func (*NFSProvisionerSpec) DeepCopy ¶
func (in *NFSProvisionerSpec) DeepCopy() *NFSProvisionerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NFSProvisionerSpec.
func (*NFSProvisionerSpec) DeepCopyInto ¶
func (in *NFSProvisionerSpec) DeepCopyInto(out *NFSProvisionerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NFSProvisionerStatus ¶
type NFSProvisionerStatus struct {
Phase string `json:"phase,omitempty"`
Error string `json:"error,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
Nodes []string `json:"nodes,omitempty"`
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
NFSProvisionerStatus defines the observed state of NFSProvisioner
func (*NFSProvisionerStatus) DeepCopy ¶
func (in *NFSProvisionerStatus) DeepCopy() *NFSProvisionerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NFSProvisionerStatus.
func (*NFSProvisionerStatus) DeepCopyInto ¶
func (in *NFSProvisionerStatus) DeepCopyInto(out *NFSProvisionerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.