v1alpha1

package
v0.0.0-...-0a53738 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the collectd v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=collectd.barometer.com

Package v1alpha1 contains API Schema definitions for the collectd v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=collectd.opnfv.org

Index

Constants

View Source
const (
	CollectdPhaseNone     PhaseType = ""
	CollectdPhaseCreating           = "Creating"
	CollectdPhaseRunning            = "Running"
	CollectdPhaseFailed             = "Failed"
)

Const for phasetype

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "collectd.opnfv.org", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type Barometer

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

	Spec   BarometerSpec   `json:"spec,omitempty"`
	Status BarometerStatus `json:"status,omitempty"`
}

Barometer is the Schema for the barometers API +kubebuilder:subresource:status +kubebuilder:resource:path=barometers,scope=Namespaced

func (*Barometer) DeepCopy

func (in *Barometer) DeepCopy() *Barometer

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

func (*Barometer) DeepCopyInto

func (in *Barometer) DeepCopyInto(out *Barometer)

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

func (*Barometer) DeepCopyObject

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

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

type BarometerList

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

BarometerList contains a list of Barometer

func (*BarometerList) DeepCopy

func (in *BarometerList) DeepCopy() *BarometerList

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

func (*BarometerList) DeepCopyInto

func (in *BarometerList) DeepCopyInto(out *BarometerList)

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

func (*BarometerList) DeepCopyObject

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

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

type BarometerSpec

type BarometerSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	DeploymentPlan DeploymentPlanType `json:"deploymentPlan,omitempty"`
}

BarometerSpec defines the desired state of Barometer

func (*BarometerSpec) DeepCopy

func (in *BarometerSpec) DeepCopy() *BarometerSpec

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

func (*BarometerSpec) DeepCopyInto

func (in *BarometerSpec) DeepCopyInto(out *BarometerSpec)

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

type BarometerStatus

type BarometerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	Phase     PhaseType `json:"phase,omitempty"`
	RevNumber string    `json:"revNumber,omitempty"`
	PodNames  []string  `json:"pods"`

	// Conditions keeps most recent interconnect conditions
	Conditions []CollectdCondition `json:"conditions"`
}

BarometerStatus defines the observed state of Barometer

func (*BarometerStatus) DeepCopy

func (in *BarometerStatus) DeepCopy() *BarometerStatus

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

func (*BarometerStatus) DeepCopyInto

func (in *BarometerStatus) DeepCopyInto(out *BarometerStatus)

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

type CollectdCondition

type CollectdCondition struct {
	Type           ConditionType `json:"type"`
	TransitionTime metav1.Time   `json:"transitionTime,omitempty"`
	Reason         string        `json:"reason,omitempty"`
}

CollectdCondition ...

func (*CollectdCondition) DeepCopy

func (in *CollectdCondition) DeepCopy() *CollectdCondition

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

func (*CollectdCondition) DeepCopyInto

func (in *CollectdCondition) DeepCopyInto(out *CollectdCondition)

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

type ConditionType

type ConditionType string

ConditionType ...

const (
	CollectdConditionProvisioning ConditionType = "Provisioning"
	CollectdConditionDeployed     ConditionType = "Deployed"
	CollectdConditionScalingUp    ConditionType = "ScalingUp"
	CollectdConditionScalingDown  ConditionType = "ScalingDown"
	CollectdConditionUpgrading    ConditionType = "Upgrading"
)

Constant for COndition Type

type DeploymentPlanType

type DeploymentPlanType struct {
	Image      string `json:"image,omitempty"`
	Size       int32  `json:"size,omitempty"`
	ConfigName string `json:"configname,omitempty"`
}

DeploymentPlanType defines deployment spec

func (*DeploymentPlanType) DeepCopy

func (in *DeploymentPlanType) DeepCopy() *DeploymentPlanType

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

func (*DeploymentPlanType) DeepCopyInto

func (in *DeploymentPlanType) DeepCopyInto(out *DeploymentPlanType)

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

type PhaseType

type PhaseType string

PhaseType ...

Jump to

Keyboard shortcuts

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