test

package
v0.0.0-...-b8da2f3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Normal Conditions
	ConditionTypeFoo = "Foo"
	ConditionTypeBar = "Bar"
	// Abnormal Conditions
	ConditionTypeBaz = "Baz"
)

Variables

View Source
var (
	APIGroup       = "operators.k8s.aws"
	DiscoveryLabel = APIGroup + "/test-id"
)
View Source
var Namespace = &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "default"}}

Functions

func Object

func Object[T client.Object](base T, overrides ...T) T

func RandomName

func RandomName() string

Types

type CustomObject

type CustomObject struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Status            CustomStatus `json:"status"`
}

+k8s:deepcopy-gen=true +kubebuilder:object:root=true

func (*CustomObject) DeepCopy

func (in *CustomObject) DeepCopy() *CustomObject

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

func (*CustomObject) DeepCopyInto

func (in *CustomObject) DeepCopyInto(out *CustomObject)

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

func (*CustomObject) DeepCopyObject

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

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

func (*CustomObject) GetConditions

func (t *CustomObject) GetConditions() []status.Condition

func (*CustomObject) SetConditions

func (t *CustomObject) SetConditions(conditions []status.Condition)

func (*CustomObject) StatusConditions

func (t *CustomObject) StatusConditions() status.ConditionSet

type CustomStatus

type CustomStatus struct {
	Conditions []status.Condition `json:"conditions,omitempty"`
}

+k8s:deepcopy-gen=true

func (*CustomStatus) DeepCopy

func (in *CustomStatus) DeepCopy() *CustomStatus

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

func (*CustomStatus) DeepCopyInto

func (in *CustomStatus) DeepCopyInto(out *CustomStatus)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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