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 { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NFSProvisionerSpec `json:"spec,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 { // HostPathDir is the direcotry where NFS server will use. // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="HostPath directory",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:string", "urn:alm:descriptor:io.kubernetes:custom"} HostPathDir string `json:"hostPathDir,omitempty"` // PVC Name is the PVC resource that already created for NFS server. // Do not set StorageClass name with this param. Then, operator will fail to deploy NFS Server. // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="PVC Name",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:string", "urn:alm:descriptor:io.kubernetes:custom"} Pvc string `json:"pvc,omitempty"` // StorageSize is the PVC size for NFS server. // By default, it sets 10G. // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage Size",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:string", "urn:alm:descriptor:io.kubernetes:custom"} StorageSize string `json:"storageSize,omitempty"` // StorageClass Name for NFS server will provide a PVC for NFS server. // Do not set PVC name with this param. Then, operator will fail to deploy NFS Server // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="StorageClass Name for NFS server",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:string","urn:alm:descriptor:io.kubernetes:custom"} SCForNFSPvc string `json:"scForNFSPvc,omitempty"` //https://golang.org/pkg/encoding/json/ // NFS server will be running on a specific node by NodeSeletor // +operator-sdk:csv:customresourcedefinitions:type=spec NodeSelector map[string]string `json:"nodeSelector,omitempty"` // StorageClass Name for NFS Provisioner is the StorageClass name that NFS Provisioner will use. Default value is `nfs` // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="StorageClass Name for NFS Provisioner",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:string","urn:alm:descriptor:io.kubernetes:custom"} SCForNFSProvisioner string `json:"scForNFS,omitempty"` //https://golang.org/pkg/encoding/json/ // NFSImageConfigurations hold the image configuration // +operator-sdk:csv:customresourcedefinitions:displayName="NFS Image Configuration,resources={{pod,v1,test}}" NFSImageConfiguration *ImageConfiguration `json:"nfsImageConfiguration,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 { // Nodes are the names of the NFS pods Nodes []string `json:"nodes"` // Error show error messages briefly Error string `json:"error"` }
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.