v1

package
v0.0.0-...-f41efdc Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the crd v1 API group +kubebuilder:object:generate=true +groupName=crd.gcore-sfs-controller.io

Index

Constants

View Source
const (
	DefaultNfsProvisionerImageVersion = "v4.0.2"
	DefaultApiUrl                     = "https://api.gcore.com/cloud"
	DefaultHelmRepository             = "https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner"
	DefaultHelmChartName              = "nfs-subdir-external-provisioner"
)
View Source
const NfsProvisionerFinalizer = "nfsprovisioner.gcore-sfs-controller.io"

NfsProvisionerFinalizer is the finalizer applied to NfsProvisioner resources by its managing controller.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "crd.gcore-sfs-controller.io", Version: "v1"}

	// 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

func ValidateNfsProvisioner

func ValidateNfsProvisioner(r *NfsProvisioner) error

Types

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

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.

func (*NfsProvisioner) Default

func (r *NfsProvisioner) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*NfsProvisioner) SetupWebhookWithManager

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

func (*NfsProvisioner) ValidateCreate

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

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

func (*NfsProvisioner) ValidateDelete

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

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

func (*NfsProvisioner) ValidateUpdate

func (r *NfsProvisioner) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

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

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 {
	// APIToken is the API token used to authenticate with Gcore Cloud.
	APIToken string `json:"apiToken"`
	// APIURL is the URL of the Gcore Cloud API.
	// +optional
	APIURL string `json:"apiURL,omitempty"`

	// File share region ID
	RegionID int `json:"region"`

	// File share project ID
	ProjectID int `json:"project"`

	// Provisioner helm repository
	// +optional
	HelmRepository string `json:"helmRepository,omitempty"`

	// Provisioner Helm chart name
	// +optional
	ChartName string `json:"chartName,omitempty"`

	// Provisioner Helm chart version
	// +optional
	ChartVersion string `json:"chartVersion,omitempty"`

	// Provisioner image version
	// +optional
	ImageVersion string `json:"imageVersion,omitempty"`

	// Paused can be used to prevent controllers from processing the Provisioner and all its associated objects.
	// +optional
	Paused bool `json:"paused"`
}

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 {
	// Ready denotes that all nfs file share provisioners has been deployed and running
	ProvisionersReady bool `json:"provisionersReady"`
}

NfsProvisionerStatus defines the observed state of NfsProvisioner

func (*NfsProvisionerStatus) DeepCopy

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳