v1alpha1

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package

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

Index

Constants

View Source
const (
	OctopingerConditionReady = "Ready"

	OctopingerConditionScalingUp   = "ScalingUp"
	OctopingerConditionScalingDown = "ScalingDown"

	OctopingerConditionUpgrading = "Upgrading"
)

Variables

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

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

	Spec   OctopingerSpec   `json:"spec,omitempty"`
	Status OctopingerStatus `json:"status,omitempty"`
}

Octopinger is the Schema for the octopinger API +k8s:openapi-gen=true +kubebuilder:subresource:status +operator-sdk:csv:customresourcedefinitions:resources={{Octopinger,v1alpha1,""}} +operator-sdk:csv:customresourcedefinitions:resources={{Pod,v1,""}} +operator-sdk:csv:customresourcedefinitions:resources={{Prometheus,v1,""}} +operator-sdk:csv:customresourcedefinitions:resources={{ReplicaSet,v1,""}}

func (*Octopinger) DeepCopy

func (in *Octopinger) DeepCopy() *Octopinger

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

func (*Octopinger) DeepCopyInto

func (in *Octopinger) DeepCopyInto(out *Octopinger)

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

func (*Octopinger) DeepCopyObject

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

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

type OctopingerCondition added in v0.0.3

type OctopingerCondition struct {
	Type OctopingerConditionType `json:"type"`

	Reason string `json:"reason"`

	TransitionTime string `json:"transitionTime"`
}

func (*OctopingerCondition) DeepCopy added in v0.0.3

func (in *OctopingerCondition) DeepCopy() *OctopingerCondition

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

func (*OctopingerCondition) DeepCopyInto added in v0.0.3

func (in *OctopingerCondition) DeepCopyInto(out *OctopingerCondition)

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

type OctopingerConditionType added in v0.0.3

type OctopingerConditionType string

type OctopingerList

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

OctopingerList contains a list of Octopinger

func (*OctopingerList) DeepCopy

func (in *OctopingerList) DeepCopy() *OctopingerList

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

func (*OctopingerList) DeepCopyInto

func (in *OctopingerList) DeepCopyInto(out *OctopingerList)

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

func (*OctopingerList) DeepCopyObject

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

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

type OctopingerPhase added in v0.0.3

type OctopingerPhase string
const (
	OctopingerPhaseNone     OctopingerPhase = ""
	OctopingerPhaseCreating OctopingerPhase = "Creating"
	OctopingerPhaseRunning  OctopingerPhase = "Running"
	OctopingerPhaseFailed   OctopingerPhase = "Failed"
)

type OctopingerSpec

type OctopingerSpec struct {
	// Version is the expected version of octopinger.
	// The operator will eventually make the octopinger version
	// equal to the expected version.
	//
	// The version must follow the [semver]( http://semver.org) format, for example "1.0.4".
	// Only octopinger released versions are supported: https://github.com/ionos-cloud/octopinger/releases
	//
	Version string `json:"version"`

	// Label is the value of the 'octopinger=' label to set on a node that should run octopinger.
	Label string `json:"label"`

	// Image is the Docker image to run for octopinger.
	Image string `json:"image"`

	// Probes ...
	Probes Probes `json:"probes"`
}

OctopingerSpec defines the desired state of Octopinger +k8s:openapi-gen=true

func (*OctopingerSpec) DeepCopy

func (in *OctopingerSpec) DeepCopy() *OctopingerSpec

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

func (*OctopingerSpec) DeepCopyInto

func (in *OctopingerSpec) DeepCopyInto(out *OctopingerSpec)

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

type OctopingerStatus

type OctopingerStatus struct {
	// Phase is the octopinger running phase.
	Phase  OctopingerPhase `json:"phase"`
	Reason string          `json:"reason"`

	// ControlPaused indicates the operator pauses the control of
	// octopinger.
	ControlPaused bool `json:"controlPaused"`

	// Condition keeps ten most recent octopinger conditions.
	Conditions []OctopingerCondition `json:"conditions"`

	// Size is the number of nodes the daemon is deployed to.
	Size int `json:"size"`

	// CurrentVersion is the current octopinger version.
	CurrentVersion string `json:"currentVersion"`
}

OctopingerStatus defines the observed state of Octopinger +k8s:openapi-gen=true

func (*OctopingerStatus) Control added in v0.0.3

func (cs *OctopingerStatus) Control()

func (*OctopingerStatus) DeepCopy

func (in *OctopingerStatus) DeepCopy() *OctopingerStatus

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

func (*OctopingerStatus) DeepCopyInto

func (in *OctopingerStatus) DeepCopyInto(out *OctopingerStatus)

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

func (*OctopingerStatus) IsFailed added in v0.0.3

func (cs *OctopingerStatus) IsFailed() bool

IsFailed ...

func (*OctopingerStatus) PauseControl added in v0.0.3

func (cs *OctopingerStatus) PauseControl()

func (*OctopingerStatus) SetCurrentVersion added in v0.0.3

func (cs *OctopingerStatus) SetCurrentVersion(v string)

func (*OctopingerStatus) SetPhase added in v0.0.3

func (cs *OctopingerStatus) SetPhase(p OctopingerPhase)

func (*OctopingerStatus) SetReason added in v0.0.3

func (cs *OctopingerStatus) SetReason(r string)

func (*OctopingerStatus) SetSize added in v0.0.3

func (cs *OctopingerStatus) SetSize(size int)

SetSize sets the current size of the cluster.

type Probe added in v0.0.3

type Probe struct {
	// Type ...
	Type string `json:"type"`

	// Enabled ...
	Enabled bool `json:"enabled"`

	// Properties ...
	Properties Properties `json:"properties"`
}

Probe ...

func (Probe) ConfigMap added in v0.0.3

func (p Probe) ConfigMap() map[string]string

ConfigMap ...

func (*Probe) DeepCopy added in v0.0.3

func (in *Probe) DeepCopy() *Probe

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

func (*Probe) DeepCopyInto added in v0.0.3

func (in *Probe) DeepCopyInto(out *Probe)

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

type Probes added in v0.0.3

type Probes []Probe

Probes ...

func (Probes) ConfigMap added in v0.0.3

func (p Probes) ConfigMap() map[string]string

ConfigMap ...

func (Probes) DeepCopy added in v0.0.3

func (in Probes) DeepCopy() Probes

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

func (Probes) DeepCopyInto added in v0.0.3

func (in Probes) DeepCopyInto(out *Probes)

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

type Properties added in v0.0.3

type Properties map[string]string

Properties ...

func (Properties) DeepCopy added in v0.0.3

func (in Properties) DeepCopy() Properties

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

func (Properties) DeepCopyInto added in v0.0.3

func (in Properties) DeepCopyInto(out *Properties)

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

func (Properties) KeyValues added in v0.0.3

func (p Properties) KeyValues() string

KeyValues ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL