v1alpha1

package
v0.0.0-...-1a1c347 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the app v1alpha1 API group +kubebuilder:object:generate=true +groupName=ha-sno.medik8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ha-sno.medik8s.io", 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 FenceAgentSpec

type FenceAgentSpec struct {
	//Name fence agent name.
	Name string `json:"name"`
	//Type of the fence agent.
	Type string `json:"type"`
	//Params parameters which are necessary when creating the fence agent, will be applied in the format: key1=value1 key2=value2 ...
	Params map[string]string `json:"params,omitempty"`
}

FenceAgentSpec contains the necessary information for setting up the fence agent that will be used in the HA layer.

func (*FenceAgentSpec) DeepCopy

func (in *FenceAgentSpec) DeepCopy() *FenceAgentSpec

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

func (*FenceAgentSpec) DeepCopyInto

func (in *FenceAgentSpec) DeepCopyInto(out *FenceAgentSpec)

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

type HALayerSet

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

	Spec   HALayerSetSpec   `json:"spec,omitempty"`
	Status HALayerSetStatus `json:"status,omitempty"`
}

HALayerSet is the Schema for the halayersets API

func (*HALayerSet) DeepCopy

func (in *HALayerSet) DeepCopy() *HALayerSet

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

func (*HALayerSet) DeepCopyInto

func (in *HALayerSet) DeepCopyInto(out *HALayerSet)

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

func (*HALayerSet) DeepCopyObject

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

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

func (*HALayerSet) SetupWebhookWithManager

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

func (*HALayerSet) ValidateCreate

func (r *HALayerSet) ValidateCreate() error

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

func (*HALayerSet) ValidateDelete

func (r *HALayerSet) ValidateDelete() error

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

func (*HALayerSet) ValidateUpdate

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

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

type HALayerSetList

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

HALayerSetList contains a list of HALayerSet

func (*HALayerSetList) DeepCopy

func (in *HALayerSetList) DeepCopy() *HALayerSetList

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

func (*HALayerSetList) DeepCopyInto

func (in *HALayerSetList) DeepCopyInto(out *HALayerSetList)

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

func (*HALayerSetList) DeepCopyObject

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

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

type HALayerSetSpec

type HALayerSetSpec struct {

	//Deployments is a list of deployments that will be managed by the created HA layer.
	Deployments []string `json:"deployments,omitempty"`

	//FenceAgentsSpec list of fence agent to use during HA layer fencing setup.
	FenceAgentsSpec []FenceAgentSpec `json:"fenceAgentsSpec"`

	//NodesSpec contain names and ips of both SNO clusters nodes.
	NodesSpec NodesSpec `json:"nodesSpec"`

	//ContainerImage this image will be used by the HALayer pod to set up the pacemaker container which also contains the fencing agents - if left empty a default one will be used.
	ContainerImage string `json:"containerImage,omitempty"`
}

HALayerSetSpec defines the desired state of HALayerSet

func (*HALayerSetSpec) DeepCopy

func (in *HALayerSetSpec) DeepCopy() *HALayerSetSpec

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

func (*HALayerSetSpec) DeepCopyInto

func (in *HALayerSetSpec) DeepCopyInto(out *HALayerSetSpec)

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

type HALayerSetStatus

type HALayerSetStatus struct {
	//PrevFenceAgentsSpec reflects the previous status of the Fence Agents - in order to be able to compare to the current state and decide whether an action is required
	PrevFenceAgentsSpec []FenceAgentSpec `json:"prevFenceAgentsSpec,omitempty"`
}

HALayerSetStatus defines the observed state of HALayerSet

func (*HALayerSetStatus) DeepCopy

func (in *HALayerSetStatus) DeepCopy() *HALayerSetStatus

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

func (*HALayerSetStatus) DeepCopyInto

func (in *HALayerSetStatus) DeepCopyInto(out *HALayerSetStatus)

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

type NodesSpec

type NodesSpec struct {
	//FirstNodeName is the name of the first node in the cluster (the same name that was used creating the first SNO).
	FirstNodeName string `json:"firstNodeName"`
	//SecondNodeName is the name of the second node in the cluster (the same name that was used creating the second SNO).
	SecondNodeName string `json:"secondNodeName"`
	//FirstNodeIP is the ip address used by the first node in the cluster.
	FirstNodeIP string `json:"firstNodeIP"`
	//SecondNodeIP is the ip address used by the second node in the cluster.
	SecondNodeIP string `json:"secondNodeIP"`
}

NodesSpec contains names and ips of both SNO clusters nodes.

func (*NodesSpec) DeepCopy

func (in *NodesSpec) DeepCopy() *NodesSpec

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

func (*NodesSpec) DeepCopyInto

func (in *NodesSpec) DeepCopyInto(out *NodesSpec)

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