v1alpha1

package
v0.0.0-...-a038b7b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the introspect v1alpha1 API group +kubebuilder:object:generate=true +groupName=introspect.actvirtual.com +k8s:conversion-gen=github.com/vasu1124/introspect/pkg/operator/useless/api

Index

Constants

This section is empty.

Variables

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

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

	Spec   UselessMachineSpec   `json:"spec,omitempty"`
	Status UselessMachineStatus `json:"status,omitempty"`
}

UselessMachine is the Schema for the useless API +kubebuilder:object:root=true +kubebuilder:subresource:status +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:printcolumn:name="Desired",type="string",JSONPath=".spec.desiredState",description="Desired state" +kubebuilder:printcolumn:name="Actual",type="string",JSONPath=".status.actualState",description="Actual state" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.message",description="Controller message" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*UselessMachine) DeepCopy

func (in *UselessMachine) DeepCopy() *UselessMachine

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

func (*UselessMachine) DeepCopyInto

func (in *UselessMachine) DeepCopyInto(out *UselessMachine)

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

func (*UselessMachine) DeepCopyObject

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

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

type UselessMachineList

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

UselessMachineList contains a list of UselessMachine +kubebuilder:object:root=true

func (*UselessMachineList) DeepCopy

func (in *UselessMachineList) DeepCopy() *UselessMachineList

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

func (*UselessMachineList) DeepCopyInto

func (in *UselessMachineList) DeepCopyInto(out *UselessMachineList)

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

func (*UselessMachineList) DeepCopyObject

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

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

type UselessMachineSpec

type UselessMachineSpec struct {
	// Desired state of cluster, can only be On or Off
	DesiredState UselessMachineState `json:"desiredState"`
}

UselessMachineSpec defines the desired state of a UselessMachine

func (*UselessMachineSpec) DeepCopy

func (in *UselessMachineSpec) DeepCopy() *UselessMachineSpec

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

func (*UselessMachineSpec) DeepCopyInto

func (in *UselessMachineSpec) DeepCopyInto(out *UselessMachineSpec)

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

type UselessMachineState

type UselessMachineState string

UselessMachineState describes the state +kubebuilder:validation:Enum=On;Off

const (
	UselessMachineStateOn  UselessMachineState = "On"
	UselessMachineStateOff UselessMachineState = "Off"
)

UselessMachineState Enum

type UselessMachineStatus

type UselessMachineStatus struct {
	// +optional
	ActualState *UselessMachineState `json:"actualState,omitempty"`
	// +optional
	Message *string `json:"message,omitempty"`
}

UselessMachineStatus defines the observed state of a UselessMachine

func (*UselessMachineStatus) DeepCopy

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

func (*UselessMachineStatus) DeepCopyInto

func (in *UselessMachineStatus) DeepCopyInto(out *UselessMachineStatus)

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