apis

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 4 Imported by: 7

Documentation

Overview

Package shared contains types and functions used by API definitions in the operators package +groupName=operators.example.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicMultiPhaseObjectStatus

type BasicMultiPhaseObjectStatus struct {
	BasicObjectStatus `json:",inline"`

	// Phase is the current phase
	// +operator-sdk:csv:customresourcedefinitions:type=status
	PhaseName shared.PhaseName `json:"phase,omitempty"`
}

MultiPhaseObjectStatus is the default status for CRD used to create multiple K8s resources

func (*BasicMultiPhaseObjectStatus) DeepCopy

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

func (*BasicMultiPhaseObjectStatus) DeepCopyInto

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

func (*BasicMultiPhaseObjectStatus) GetPhaseName

func (h *BasicMultiPhaseObjectStatus) GetPhaseName() shared.PhaseName

func (*BasicMultiPhaseObjectStatus) SetPhaseName

func (h *BasicMultiPhaseObjectStatus) SetPhaseName(name shared.PhaseName)

type BasicObjectStatus

type BasicObjectStatus struct {

	// IsOnError is true if controller is stuck on Error
	// +operator-sdk:csv:customresourcedefinitions:type=status
	IsOnError *bool `json:"isOnError,omitempty"`

	// List of conditions
	// +operator-sdk:csv:customresourcedefinitions:type=status
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

	// LastErrorMessage is the current error message
	// +operator-sdk:csv:customresourcedefinitions:type=status
	LastErrorMessage string `json:"lastErrorMessage,omitempty"`

	// observedGeneration is the current generation applied
	// +operator-sdk:csv:customresourcedefinitions:type=status
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

BasicObjectStatus is the default status for basic Object

func (*BasicObjectStatus) DeepCopy

func (in *BasicObjectStatus) DeepCopy() *BasicObjectStatus

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

func (*BasicObjectStatus) DeepCopyInto

func (in *BasicObjectStatus) DeepCopyInto(out *BasicObjectStatus)

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

func (*BasicObjectStatus) GetConditions

func (h *BasicObjectStatus) GetConditions() []metav1.Condition

func (*BasicObjectStatus) GetIsOnError

func (h *BasicObjectStatus) GetIsOnError() bool

func (*BasicObjectStatus) GetLastErrorMessage

func (h *BasicObjectStatus) GetLastErrorMessage() string

func (*BasicObjectStatus) GetObservedGeneration added in v0.1.4

func (h *BasicObjectStatus) GetObservedGeneration() int64

func (*BasicObjectStatus) SetConditions

func (h *BasicObjectStatus) SetConditions(conditions []metav1.Condition)

func (*BasicObjectStatus) SetIsOnError

func (h *BasicObjectStatus) SetIsOnError(isError bool)

func (*BasicObjectStatus) SetLastErrorMessage

func (h *BasicObjectStatus) SetLastErrorMessage(message string)

func (*BasicObjectStatus) SetObservedGeneration added in v0.1.4

func (h *BasicObjectStatus) SetObservedGeneration(version int64)

type BasicRemoteObjectStatus

type BasicRemoteObjectStatus struct {
	BasicObjectStatus `json:",inline"`

	// IsSync is true if controller successfully apply on remote API
	// +operator-sdk:csv:customresourcedefinitions:type=status
	IsSync *bool `json:"isSync,omitempty"`

	// LastAppliedConfiguration is the last applied configuration to use 3-way diff
	// +operator-sdk:csv:customresourcedefinitions:type=status
	LastAppliedConfiguration string `json:"lastAppliedConfiguration,omitempty"`
}

RemoteObjectStatus is the default status for CRD used to call remote API (not create K8s resources)

func (*BasicRemoteObjectStatus) DeepCopy

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

func (*BasicRemoteObjectStatus) DeepCopyInto

func (in *BasicRemoteObjectStatus) DeepCopyInto(out *BasicRemoteObjectStatus)

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

func (*BasicRemoteObjectStatus) GetIsSync

func (h *BasicRemoteObjectStatus) GetIsSync() bool

func (*BasicRemoteObjectStatus) GetLastAppliedConfiguration

func (h *BasicRemoteObjectStatus) GetLastAppliedConfiguration() string

func (*BasicRemoteObjectStatus) SetIsSync

func (h *BasicRemoteObjectStatus) SetIsSync(isSync bool)

func (*BasicRemoteObjectStatus) SetLastAppliedConfiguration

func (h *BasicRemoteObjectStatus) SetLastAppliedConfiguration(object string)

type MapAny added in v0.1.6

type MapAny struct {
	// Data is the map[string]any contend
	Data map[string]any `json:"-"`
}

MapAny is YAML map[string]any representation +kubebuilder:validation:Type=object

func (*MapAny) DeepCopy added in v0.1.6

func (in *MapAny) DeepCopy() *MapAny

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

func (*MapAny) DeepCopyInto added in v0.1.6

func (ma *MapAny) DeepCopyInto(maCopy *MapAny)

DeepCopyInto is needed by controller

func (MapAny) MarshalJSON added in v0.1.6

func (ma MapAny) MarshalJSON() ([]byte, error)

MarshalJSON implements the Marshaler interface.

func (*MapAny) UnmarshalJSON added in v0.1.6

func (ma *MapAny) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the Unmarshaler interface.

Directories

Path Synopsis
Package shared contains types and functions used by API definitions in the operators package +groupName=operators.example.com
Package shared contains types and functions used by API definitions in the operators package +groupName=operators.example.com

Jump to

Keyboard shortcuts

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