v1alpha1

package
v0.0.0-...-4df37e3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kuberlogic.com v1alpha1 API group +kubebuilder:object:generate=true +groupName=kuberlogic.com

Index

Constants

View Source
const (
	// CredsUpdateSecretName is a corev1.Secret name that is created when a credentials update operation is requested via KL apiserver
	CredsUpdateSecretName = "credential-request"

	ReadyCondType = "Ready"
)
View Source
const (
	KlbSuccessfulCondType = "Successful"
	KlbFailedCondType     = "Failed"
	KlbRequestedCondType  = "Requested"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kuberlogic.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 KuberLogicService

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

	Spec   KuberLogicServiceSpec   `json:"spec,omitempty"`
	Status KuberLogicServiceStatus `json:"status,omitempty"`
}

func (*KuberLogicService) BackupRunning

func (in *KuberLogicService) BackupRunning() (bool, string)

func (*KuberLogicService) ClusterSyncFailed

func (in *KuberLogicService) ClusterSyncFailed(s string)

func (*KuberLogicService) ConfigurationFailed

func (in *KuberLogicService) ConfigurationFailed(s string)

func (*KuberLogicService) DeepCopy

func (in *KuberLogicService) DeepCopy() *KuberLogicService

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

func (*KuberLogicService) DeepCopyInto

func (in *KuberLogicService) DeepCopyInto(out *KuberLogicService)

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

func (*KuberLogicService) DeepCopyObject

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

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

func (*KuberLogicService) Default

func (r *KuberLogicService) Default()

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

func (*KuberLogicService) GetHost

func (in *KuberLogicService) GetHost() string

func (*KuberLogicService) Insecure

func (in *KuberLogicService) Insecure() bool

func (*KuberLogicService) IsReady

func (in *KuberLogicService) IsReady() (bool, string, *time.Time)

IsReady returns * true if ready * string containing current status * time of last readiness status transition

func (*KuberLogicService) MarkNotReady

func (in *KuberLogicService) MarkNotReady(msg string)

func (*KuberLogicService) MarkPaused

func (in *KuberLogicService) MarkPaused()

func (*KuberLogicService) MarkReady

func (in *KuberLogicService) MarkReady(msg string)

func (*KuberLogicService) MarkResumed

func (in *KuberLogicService) MarkResumed()

func (*KuberLogicService) PauseRequested

func (in *KuberLogicService) PauseRequested() bool

PauseRequested indicates that a kls pause is requested

func (*KuberLogicService) Paused

func (in *KuberLogicService) Paused() bool

func (*KuberLogicService) RestoreRunning

func (in *KuberLogicService) RestoreRunning() (bool, string)

func (*KuberLogicService) Resumed

func (in *KuberLogicService) Resumed() bool

Resumed indicates that a kls was paused and now is resumed by setting in.Spec.Paused false

func (*KuberLogicService) SetAccessEndpoint

func (in *KuberLogicService) SetAccessEndpoint()

func (*KuberLogicService) SetBackupStatus

func (in *KuberLogicService) SetBackupStatus(klb *KuberlogicServiceBackup)

func (*KuberLogicService) SetRestoreStatus

func (in *KuberLogicService) SetRestoreStatus(klr *KuberlogicServiceRestore)

func (*KuberLogicService) SetupWebhookWithManager

func (r *KuberLogicService) SetupWebhookWithManager(mgr ctrl.Manager, plugins map[string]commons.PluginService) error

func (*KuberLogicService) ValidateCreate

func (r *KuberLogicService) ValidateCreate() error

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

func (*KuberLogicService) ValidateDelete

func (r *KuberLogicService) ValidateDelete() error

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

func (*KuberLogicService) ValidateUpdate

func (r *KuberLogicService) ValidateUpdate(old runtime.Object) error

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

type KuberLogicServiceList

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

KuberLogicServiceList contains a list of KuberLogicService +kubebuilder:object:root=true

func (*KuberLogicServiceList) DeepCopy

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

func (*KuberLogicServiceList) DeepCopyInto

func (in *KuberLogicServiceList) DeepCopyInto(out *KuberLogicServiceList)

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

func (*KuberLogicServiceList) DeepCopyObject

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

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

type KuberLogicServiceSpec

type KuberLogicServiceSpec struct {
	// Type of the cluster
	Type string `json:"type"`
	// Amount of replicas
	// +kubebuilder:validation:Maximum=5
	Replicas int32 `json:"replicas,omitempty"`
	// 2 or 3 digits: 5 or 5.7 or 5.7.31
	// +kubebuilder:validation:Pattern=^\d+[\.\d+]*$
	Version string `json:"version,omitempty"`

	// Resources (requests/limits)
	Limits v1.ResourceList `json:"limits,omitempty"`

	// +kubebuilder:validation:Pattern=[a-z]([-a-z0-9]*[a-z0-9])?
	Domain   string `json:"domain,omitempty"`
	Insecure bool   `json:"insecure,omitempty"`

	// any advanced configuration is supported
	Advanced v11.JSON `json:"advanced,omitempty"`

	// Paused field allows to stop all service related containers
	// +kubebuilder:default=false
	Paused bool `json:"paused,omitempty"`

	BackupSchedule string `json:"backupSchedule,omitempty"`
}

func (*KuberLogicServiceSpec) DeepCopy

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

func (*KuberLogicServiceSpec) DeepCopyInto

func (in *KuberLogicServiceSpec) DeepCopyInto(out *KuberLogicServiceSpec)

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

type KuberLogicServiceStatus

type KuberLogicServiceStatus struct {
	Phase      string             `json:"phase,omitempty"`
	Conditions []metav1.Condition `json:"conditions"`
	// namespace that contains service resources
	Namespace string `json:"namespace,omitempty"`
	// date when the namespace and all related resources will be purged
	PurgeDate string `json:"purgeDate,omitempty"`

	AccessEndpoint string `json:"access,omitempty"`

	// a service is about to be restored or restore is in progress
	RestoreRequested bool `json:"restoreRequested,omitempty"`
	// a service is ready for restore process
	ReadyForRestore bool `json:"readyForRestore,omitempty"`
}

KuberLogicServiceStatus defines the observed state of KuberLogicService

func (*KuberLogicServiceStatus) DeepCopy

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

func (*KuberLogicServiceStatus) DeepCopyInto

func (in *KuberLogicServiceStatus) DeepCopyInto(out *KuberLogicServiceStatus)

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

type KuberlogicServiceBackup

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

	Spec   KuberlogicServiceBackupSpec   `json:"spec,omitempty"`
	Status KuberlogicServiceBackupStatus `json:"status,omitempty"`
}

KuberlogicServiceBackup is the Schema for the kuberlogicservicebackups API

func (*KuberlogicServiceBackup) DeepCopy

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

func (*KuberlogicServiceBackup) DeepCopyInto

func (in *KuberlogicServiceBackup) DeepCopyInto(out *KuberlogicServiceBackup)

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

func (*KuberlogicServiceBackup) DeepCopyObject

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

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

func (*KuberlogicServiceBackup) Default

func (r *KuberlogicServiceBackup) Default()

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

func (*KuberlogicServiceBackup) IsFailed

func (in *KuberlogicServiceBackup) IsFailed() bool

func (*KuberlogicServiceBackup) IsRequested

func (in *KuberlogicServiceBackup) IsRequested() bool

func (*KuberlogicServiceBackup) IsSuccessful

func (in *KuberlogicServiceBackup) IsSuccessful() bool

func (*KuberlogicServiceBackup) MarkFailed

func (in *KuberlogicServiceBackup) MarkFailed(reason string)

func (*KuberlogicServiceBackup) MarkRequested

func (in *KuberlogicServiceBackup) MarkRequested()

func (*KuberlogicServiceBackup) MarkSuccessful

func (in *KuberlogicServiceBackup) MarkSuccessful()

func (*KuberlogicServiceBackup) SetupWebhookWithManager

func (r *KuberlogicServiceBackup) SetupWebhookWithManager(mgr ctrl.Manager, cfgBackupsEnabled bool) error

func (*KuberlogicServiceBackup) ValidateCreate

func (r *KuberlogicServiceBackup) ValidateCreate() error

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

func (*KuberlogicServiceBackup) ValidateDelete

func (r *KuberlogicServiceBackup) ValidateDelete() error

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

func (*KuberlogicServiceBackup) ValidateUpdate

func (r *KuberlogicServiceBackup) ValidateUpdate(old runtime.Object) error

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

type KuberlogicServiceBackupList

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

KuberlogicServiceBackupList contains a list of KuberlogicServiceBackup

func (*KuberlogicServiceBackupList) DeepCopy

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

func (*KuberlogicServiceBackupList) DeepCopyInto

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

func (*KuberlogicServiceBackupList) DeepCopyObject

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

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

type KuberlogicServiceBackupSchedule

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

	Spec   KuberlogicServiceBackupScheduleSpec   `json:"spec,omitempty"`
	Status KuberlogicServiceBackupScheduleStatus `json:"status,omitempty"`
}

KuberlogicServiceBackupSchedule is the Schema for the kuberlogicservicebackupschedules API

func (*KuberlogicServiceBackupSchedule) DeepCopy

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

func (*KuberlogicServiceBackupSchedule) DeepCopyInto

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

func (*KuberlogicServiceBackupSchedule) DeepCopyObject

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

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

type KuberlogicServiceBackupScheduleList

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

KuberlogicServiceBackupScheduleList contains a list of KuberlogicServiceBackupSchedule

func (*KuberlogicServiceBackupScheduleList) DeepCopy

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

func (*KuberlogicServiceBackupScheduleList) DeepCopyInto

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

func (*KuberlogicServiceBackupScheduleList) DeepCopyObject

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

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

type KuberlogicServiceBackupScheduleSpec

type KuberlogicServiceBackupScheduleSpec struct {
	KuberlogicServiceName string `json:"kuberlogicServiceName"`
	Schedule              string `json:"schedule,omitempty"`
}

KuberlogicServiceBackupScheduleSpec defines the desired state of KuberlogicServiceBackupSchedule

func (*KuberlogicServiceBackupScheduleSpec) DeepCopy

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

func (*KuberlogicServiceBackupScheduleSpec) DeepCopyInto

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

type KuberlogicServiceBackupScheduleStatus

type KuberlogicServiceBackupScheduleStatus struct {
}

KuberlogicServiceBackupScheduleStatus defines the observed state of KuberlogicServiceBackupSchedule

func (*KuberlogicServiceBackupScheduleStatus) DeepCopy

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

func (*KuberlogicServiceBackupScheduleStatus) DeepCopyInto

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

type KuberlogicServiceBackupSpec

type KuberlogicServiceBackupSpec struct {
	KuberlogicServiceName string `json:"kuberlogicServiceName"`
}

KuberlogicServiceBackupSpec defines the desired state of KuberlogicServiceBackup

func (*KuberlogicServiceBackupSpec) DeepCopy

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

func (*KuberlogicServiceBackupSpec) DeepCopyInto

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

type KuberlogicServiceBackupStatus

type KuberlogicServiceBackupStatus struct {
	Conditions      []metav1.Condition `json:"conditions"`
	Phase           string             `json:"phase,omitempty"`
	BackupReference string             `json:"backupReference,omitempty"`
}

KuberlogicServiceBackupStatus defines the observed state of KuberlogicServiceBackup

func (*KuberlogicServiceBackupStatus) DeepCopy

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

func (*KuberlogicServiceBackupStatus) DeepCopyInto

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

type KuberlogicServiceRestore

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

	Spec   KuberlogicServiceRestoreSpec   `json:"spec,omitempty"`
	Status KuberlogicServiceRestoreStatus `json:"status,omitempty"`
}

KuberlogicServiceRestore is the Schema for the kuberlogicservicerestores API

func (*KuberlogicServiceRestore) DeepCopy

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

func (*KuberlogicServiceRestore) DeepCopyInto

func (in *KuberlogicServiceRestore) DeepCopyInto(out *KuberlogicServiceRestore)

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

func (*KuberlogicServiceRestore) DeepCopyObject

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

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

func (*KuberlogicServiceRestore) IsFailed

func (in *KuberlogicServiceRestore) IsFailed() bool

func (*KuberlogicServiceRestore) IsRequested

func (in *KuberlogicServiceRestore) IsRequested() bool

func (*KuberlogicServiceRestore) IsSuccessful

func (in *KuberlogicServiceRestore) IsSuccessful() bool

func (*KuberlogicServiceRestore) MarkFailed

func (in *KuberlogicServiceRestore) MarkFailed(reason string)

func (*KuberlogicServiceRestore) MarkRequested

func (in *KuberlogicServiceRestore) MarkRequested()

func (*KuberlogicServiceRestore) MarkSuccessful

func (in *KuberlogicServiceRestore) MarkSuccessful()

type KuberlogicServiceRestoreList

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

KuberlogicServiceRestoreList contains a list of KuberlogicServiceRestore

func (*KuberlogicServiceRestoreList) DeepCopy

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

func (*KuberlogicServiceRestoreList) DeepCopyInto

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

func (*KuberlogicServiceRestoreList) DeepCopyObject

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

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

type KuberlogicServiceRestoreSpec

type KuberlogicServiceRestoreSpec struct {
	KuberlogicServiceBackup string `json:"kuberlogicServiceBackup"`
}

KuberlogicServiceRestoreSpec defines the desired state of KuberlogicServiceRestore

func (*KuberlogicServiceRestoreSpec) DeepCopy

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

func (*KuberlogicServiceRestoreSpec) DeepCopyInto

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

type KuberlogicServiceRestoreStatus

type KuberlogicServiceRestoreStatus struct {
	RestoreReference string             `json:"restoreReference,omitempty"`
	Conditions       []metav1.Condition `json:"conditions"`
	Phase            string             `json:"phase,omitempty"`
}

KuberlogicServiceRestoreStatus defines the observed state of KuberlogicServiceRestore

func (*KuberlogicServiceRestoreStatus) DeepCopy

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

func (*KuberlogicServiceRestoreStatus) DeepCopyInto

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