v1beta2

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v1beta2 contains test types. +kubebuilder:object:generate=true +groupName=test.cluster.x-k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to test CRD migration.
	GroupVersion = schema.GroupVersion{Group: "test.cluster.x-k8s.io", Version: "v1beta2"}

	// AddToScheme adds the types to the given scheme.
	AddToScheme = schemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type TestCluster

type TestCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TestClusterSpec   `json:"spec,omitempty"`
	Status            TestClusterStatus `json:"status,omitempty"`
}

TestCluster defines a test cluster.

func (*TestCluster) DeepCopy

func (in *TestCluster) DeepCopy() *TestCluster

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

func (*TestCluster) DeepCopyInto

func (in *TestCluster) DeepCopyInto(out *TestCluster)

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

func (*TestCluster) DeepCopyObject

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

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

type TestClusterList

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

TestClusterList is a list of TestCluster. +kubebuilder:object:root=true

func (*TestClusterList) DeepCopy

func (in *TestClusterList) DeepCopy() *TestClusterList

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

func (*TestClusterList) DeepCopyInto

func (in *TestClusterList) DeepCopyInto(out *TestClusterList)

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

func (*TestClusterList) DeepCopyObject

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

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

type TestClusterSpec

type TestClusterSpec struct {
	// +optional
	Foo string `json:"foo,omitempty"`

	// +optional
	Bar string `json:"bar,omitempty"`
}

TestClusterSpec defines the spec of a TestCluster.

func (*TestClusterSpec) DeepCopy

func (in *TestClusterSpec) DeepCopy() *TestClusterSpec

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

func (*TestClusterSpec) DeepCopyInto

func (in *TestClusterSpec) DeepCopyInto(out *TestClusterSpec)

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

type TestClusterStatus

type TestClusterStatus struct {
	// +optional
	FooStatus string `json:"foo,omitempty"`
}

TestClusterStatus defines the status of a TestCluster.

func (*TestClusterStatus) DeepCopy

func (in *TestClusterStatus) DeepCopy() *TestClusterStatus

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

func (*TestClusterStatus) DeepCopyInto

func (in *TestClusterStatus) DeepCopyInto(out *TestClusterStatus)

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
JackTT - Gopher 🇻🇳