v1beta1

package
v0.0.0-...-b552b28 Latest Latest
Warning

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

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

Documentation

Overview

Package v1beta1 contains API Schema definitions for the watcher v1beta1 API group +kubebuilder:object:generate=true +groupName=watcher.openstack.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "watcher.openstack.org", Version: "v1beta1"}

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

func SetupDefaults()

SetupDefaults - initializes any CRD field defaults based on environment variables (the defaulting mechanism itself is implemented via webhooks)

Types

type PasswordSelector

type PasswordSelector struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default="WatcherPassword"
	// Service - Selector to get the watcher service user password from the Secret
	Service string `json:"service"`
}

PasswordSelector to identify the DB and AdminUser password from the Secret

func (*PasswordSelector) DeepCopy

func (in *PasswordSelector) DeepCopy() *PasswordSelector

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

func (*PasswordSelector) DeepCopyInto

func (in *PasswordSelector) DeepCopyInto(out *PasswordSelector)

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

type Watcher

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

	Spec   WatcherSpec   `json:"spec,omitempty"`
	Status WatcherStatus `json:"status,omitempty"`
}

Watcher is the Schema for the watchers API

func (*Watcher) DeepCopy

func (in *Watcher) DeepCopy() *Watcher

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

func (*Watcher) DeepCopyInto

func (in *Watcher) DeepCopyInto(out *Watcher)

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

func (*Watcher) DeepCopyObject

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

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

func (*Watcher) Default

func (r *Watcher) Default()

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

func (*Watcher) SetupWebhookWithManager

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

func (*Watcher) ValidateCreate

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

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

func (*Watcher) ValidateDelete

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

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

func (*Watcher) ValidateUpdate

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

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

type WatcherAPI

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

	Spec   WatcherAPISpec   `json:"spec,omitempty"`
	Status WatcherAPIStatus `json:"status,omitempty"`
}

WatcherAPI is the Schema for the watcherapis API

func (*WatcherAPI) DeepCopy

func (in *WatcherAPI) DeepCopy() *WatcherAPI

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

func (*WatcherAPI) DeepCopyInto

func (in *WatcherAPI) DeepCopyInto(out *WatcherAPI)

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

func (*WatcherAPI) DeepCopyObject

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

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

func (*WatcherAPI) Default

func (r *WatcherAPI) Default()

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

func (*WatcherAPI) SetupWebhookWithManager

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

func (*WatcherAPI) ValidateCreate

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

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

func (*WatcherAPI) ValidateDelete

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

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

func (*WatcherAPI) ValidateUpdate

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

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

type WatcherAPIList

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

WatcherAPIList contains a list of WatcherAPI

func (*WatcherAPIList) DeepCopy

func (in *WatcherAPIList) DeepCopy() *WatcherAPIList

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

func (*WatcherAPIList) DeepCopyInto

func (in *WatcherAPIList) DeepCopyInto(out *WatcherAPIList)

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

func (*WatcherAPIList) DeepCopyObject

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

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

type WatcherAPISpec

type WatcherAPISpec struct {

	// Foo is an example field of WatcherAPI. Edit watcherapi_types.go to remove/update
	Foo string `json:"foo,omitempty"`
}

WatcherAPISpec defines the desired state of WatcherAPI

func (*WatcherAPISpec) DeepCopy

func (in *WatcherAPISpec) DeepCopy() *WatcherAPISpec

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

func (*WatcherAPISpec) DeepCopyInto

func (in *WatcherAPISpec) DeepCopyInto(out *WatcherAPISpec)

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

type WatcherAPIStatus

type WatcherAPIStatus struct {
}

WatcherAPIStatus defines the observed state of WatcherAPI

func (*WatcherAPIStatus) DeepCopy

func (in *WatcherAPIStatus) DeepCopy() *WatcherAPIStatus

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

func (*WatcherAPIStatus) DeepCopyInto

func (in *WatcherAPIStatus) DeepCopyInto(out *WatcherAPIStatus)

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

type WatcherApplier

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

	Spec   WatcherApplierSpec   `json:"spec,omitempty"`
	Status WatcherApplierStatus `json:"status,omitempty"`
}

WatcherApplier is the Schema for the watcherappliers API

func (*WatcherApplier) DeepCopy

func (in *WatcherApplier) DeepCopy() *WatcherApplier

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

func (*WatcherApplier) DeepCopyInto

func (in *WatcherApplier) DeepCopyInto(out *WatcherApplier)

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

func (*WatcherApplier) DeepCopyObject

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

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

func (*WatcherApplier) Default

func (r *WatcherApplier) Default()

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

func (*WatcherApplier) SetupWebhookWithManager

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

func (*WatcherApplier) ValidateCreate

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

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

func (*WatcherApplier) ValidateDelete

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

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

func (*WatcherApplier) ValidateUpdate

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

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

type WatcherApplierList

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

WatcherApplierList contains a list of WatcherApplier

func (*WatcherApplierList) DeepCopy

func (in *WatcherApplierList) DeepCopy() *WatcherApplierList

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

func (*WatcherApplierList) DeepCopyInto

func (in *WatcherApplierList) DeepCopyInto(out *WatcherApplierList)

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

func (*WatcherApplierList) DeepCopyObject

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

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

type WatcherApplierSpec

type WatcherApplierSpec struct {

	// Foo is an example field of WatcherApplier. Edit watcherapplier_types.go to remove/update
	Foo string `json:"foo,omitempty"`
}

WatcherApplierSpec defines the desired state of WatcherApplier

func (*WatcherApplierSpec) DeepCopy

func (in *WatcherApplierSpec) DeepCopy() *WatcherApplierSpec

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

func (*WatcherApplierSpec) DeepCopyInto

func (in *WatcherApplierSpec) DeepCopyInto(out *WatcherApplierSpec)

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

type WatcherApplierStatus

type WatcherApplierStatus struct {
}

WatcherApplierStatus defines the observed state of WatcherApplier

func (*WatcherApplierStatus) DeepCopy

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

func (*WatcherApplierStatus) DeepCopyInto

func (in *WatcherApplierStatus) DeepCopyInto(out *WatcherApplierStatus)

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

type WatcherDecisionEngine

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

	Spec   WatcherDecisionEngineSpec   `json:"spec,omitempty"`
	Status WatcherDecisionEngineStatus `json:"status,omitempty"`
}

WatcherDecisionEngine is the Schema for the watcherdecisionengines API

func (*WatcherDecisionEngine) DeepCopy

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

func (*WatcherDecisionEngine) DeepCopyInto

func (in *WatcherDecisionEngine) DeepCopyInto(out *WatcherDecisionEngine)

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

func (*WatcherDecisionEngine) DeepCopyObject

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

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

func (*WatcherDecisionEngine) Default

func (r *WatcherDecisionEngine) Default()

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

func (*WatcherDecisionEngine) SetupWebhookWithManager

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

func (*WatcherDecisionEngine) ValidateCreate

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

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

func (*WatcherDecisionEngine) ValidateDelete

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

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

func (*WatcherDecisionEngine) ValidateUpdate

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

type WatcherDecisionEngineList

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

WatcherDecisionEngineList contains a list of WatcherDecisionEngine

func (*WatcherDecisionEngineList) DeepCopy

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

func (*WatcherDecisionEngineList) DeepCopyInto

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

func (*WatcherDecisionEngineList) DeepCopyObject

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

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

type WatcherDecisionEngineSpec

type WatcherDecisionEngineSpec struct {

	// Foo is an example field of WatcherDecisionEngine. Edit watcherdecisionengine_types.go to remove/update
	Foo string `json:"foo,omitempty"`
}

WatcherDecisionEngineSpec defines the desired state of WatcherDecisionEngine

func (*WatcherDecisionEngineSpec) DeepCopy

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

func (*WatcherDecisionEngineSpec) DeepCopyInto

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

type WatcherDecisionEngineStatus

type WatcherDecisionEngineStatus struct {
}

WatcherDecisionEngineStatus defines the observed state of WatcherDecisionEngine

func (*WatcherDecisionEngineStatus) DeepCopy

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

func (*WatcherDecisionEngineStatus) DeepCopyInto

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

type WatcherList

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

WatcherList contains a list of Watcher

func (*WatcherList) DeepCopy

func (in *WatcherList) DeepCopy() *WatcherList

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

func (*WatcherList) DeepCopyInto

func (in *WatcherList) DeepCopyInto(out *WatcherList)

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

func (*WatcherList) DeepCopyObject

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

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

type WatcherSpec

type WatcherSpec struct {
	WatcherTemplate `json:",inline"`
}

WatcherSpec defines the desired state of Watcher

func (*WatcherSpec) DeepCopy

func (in *WatcherSpec) DeepCopy() *WatcherSpec

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

func (*WatcherSpec) DeepCopyInto

func (in *WatcherSpec) DeepCopyInto(out *WatcherSpec)

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

type WatcherStatus

type WatcherStatus struct {
	// Conditions
	Conditions condition.Conditions `json:"conditions,omitempty" optional:"true"`

	// ObservedGeneration - the most recent generation observed for this
	// service. If the observed generation is less than the spec generation,
	// then the controller has not processed the latest changes injected by
	// the opentack-operator in the top-level CR (e.g. the ContainerImage)
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

WatcherStatus defines the observed state of Watcher

func (*WatcherStatus) DeepCopy

func (in *WatcherStatus) DeepCopy() *WatcherStatus

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

func (*WatcherStatus) DeepCopyInto

func (in *WatcherStatus) DeepCopyInto(out *WatcherStatus)

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

type WatcherTemplate

type WatcherTemplate struct {

	// +kubebuilder:validation:Optional
	// +kubebuilder:default=osp-secret
	// Secret containing all passwords / keys needed
	Secret string `json:"secret"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default={service: WatcherPassword,}
	// PasswordSelectors - Selectors to identify the ServiceUser password from the Secret
	PasswordSelectors PasswordSelector `json:"passwordSelectors"`

	// +kubebuilder:validation:Required
	// MariaDB instance name
	// Required to use the mariadb-operator instance to create the DB and user
	DatabaseInstance string `json:"databaseInstance"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default=watcher
	// DatabaseAccount - MariaDBAccount CR name used for watcher DB, defaults to watcher
	DatabaseAccount string `json:"databaseAccount"`
}

WatcherTemplate defines a spec based reusable for all the CRDs

func (*WatcherTemplate) DeepCopy

func (in *WatcherTemplate) DeepCopy() *WatcherTemplate

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

func (*WatcherTemplate) DeepCopyInto

func (in *WatcherTemplate) DeepCopyInto(out *WatcherTemplate)

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