v1alpha1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=kruize.io

Index

Constants

This section is empty.

Variables

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

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

	Spec   KruizeSpec   `json:"spec,omitempty"`
	Status KruizeStatus `json:"status,omitempty"`
}

Kruize contains configuration options for controlling the deployment of the Kruize application and its related components. A Kruize instance must be created to instruct the operator to deploy the Kruize application. +kubebuilder:object:root=true +kubebuilder:subresource:status +operator-sdk:csv:customresourcedefinitions:resources={{Deployment,v1},{Service,v1},{ServiceAccount,v1},{ConfigMap,v1},{PersistentVolume,v1},{PersistentVolumeClaim,v1},{StorageClass,v1}}

func (*Kruize) DeepCopy

func (in *Kruize) DeepCopy() *Kruize

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

func (*Kruize) DeepCopyInto

func (in *Kruize) DeepCopyInto(out *Kruize)

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

func (*Kruize) DeepCopyObject

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

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

type KruizeList

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

KruizeList contains a list of Kruize

func (*KruizeList) DeepCopy

func (in *KruizeList) DeepCopy() *KruizeList

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

func (*KruizeList) DeepCopyInto

func (in *KruizeList) DeepCopyInto(out *KruizeList)

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

func (*KruizeList) DeepCopyObject

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

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

type KruizeSpec

type KruizeSpec struct {

	// Type of Kubernetes cluster (openshift, minikube, or kind)
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Cluster Type",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:select:openshift","urn:alm:descriptor:com.tectonic.ui:select:minikube","urn:alm:descriptor:com.tectonic.ui:select:kind"}
	Cluster_type string `json:"cluster_type"`

	// Container image for Kruize Autotune
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Autotune Image",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	Autotune_image string `json:"autotune_image"`

	// Container image for Kruize UI
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Autotune UI Image",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	Autotune_ui_image string `json:"autotune_ui_image"`

	// Target namespace for Kruize deployment
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Namespace",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:text"}
	Namespace string `json:"namespace"`
}

KruizeSpec defines the desired state of Kruize

func (*KruizeSpec) DeepCopy

func (in *KruizeSpec) DeepCopy() *KruizeSpec

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

func (*KruizeSpec) DeepCopyInto

func (in *KruizeSpec) DeepCopyInto(out *KruizeSpec)

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

type KruizeStatus

type KruizeStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Nodes []string `json:"nodes"`
}

KruizeStatus defines the observed state of Kruize

func (*KruizeStatus) DeepCopy

func (in *KruizeStatus) DeepCopy() *KruizeStatus

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

func (*KruizeStatus) DeepCopyInto

func (in *KruizeStatus) DeepCopyInto(out *KruizeStatus)

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