v1beta2

package
v1.0.0-beta.20 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: AGPL-3.0 Imports: 6 Imported by: 6

Documentation

Overview

Package v1beta2 contains API Schema definitions for the preflight v1beta2 API group +kubebuilder:object:generate=true +groupName=troubleshoot.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "troubleshoot.sh", Version: "v1beta2"}

	// 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 ClusterAccessAnalyze

type ClusterAccessAnalyze struct {
	// AnalyzeMeta is defined in troubleshoot.sh
	troubleshoot.AnalyzeMeta `json:",inline"`
	// Outcomes are expected user defined results.
	// +kubebuilder:validation:Required
	Outcomes []*troubleshoot.Outcome `json:"outcomes"`
}

ClusterAccessAnalyze analyzes the accessibility of target

func (*ClusterAccessAnalyze) DeepCopy added in v0.6.0

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

func (*ClusterAccessAnalyze) DeepCopyInto added in v0.6.0

func (in *ClusterAccessAnalyze) DeepCopyInto(out *ClusterAccessAnalyze)

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

type ClusterRegion

type ClusterRegion struct {
	// HostCollectorMeta is defined in troubleshoot.sh
	troubleshoot.HostCollectorMeta `json:",inline"`
	// ProviderName denotes the cloud provider target k8s located on
	// +kubebuilder:validation:Required
	ProviderName string `json:"providerName"`
}

func (*ClusterRegion) DeepCopy added in v0.6.0

func (in *ClusterRegion) DeepCopy() *ClusterRegion

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

func (*ClusterRegion) DeepCopyInto added in v0.6.0

func (in *ClusterRegion) DeepCopyInto(out *ClusterRegion)

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

type ClusterRegionAnalyze

type ClusterRegionAnalyze struct {
	// AnalyzeMeta is defined in troubleshoot.sh
	troubleshoot.AnalyzeMeta `json:",inline"`
	// Outcomes are expected user defined results.
	// +kubebuilder:validation:Required
	Outcomes []*troubleshoot.Outcome `json:"outcomes"`
	// RegionNames is a set of expected region names
	// +kubebuilder:validation:Required
	RegionNames []string `json:"regionNames"`
}

func (*ClusterRegionAnalyze) DeepCopy added in v0.6.0

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

func (*ClusterRegionAnalyze) DeepCopyInto added in v0.6.0

func (in *ClusterRegionAnalyze) DeepCopyInto(out *ClusterRegionAnalyze)

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

type ExtendAnalyze

type ExtendAnalyze struct {
	// ClusterAccess is to determine the accessibility of target k8s cluster
	// +optional
	ClusterAccess *ClusterAccessAnalyze `json:"clusterAccess,omitempty"`
	// StorageClass is to determine the correctness of target storage class
	// +optional
	StorageClass *KBStorageClassAnalyze `json:"storageClass,omitempty"`
	// Taint is to Determine the matching between the taint and toleration
	// +optional
	Taint *KBTaintAnalyze `json:"taint,omitempty"`
}

func (*ExtendAnalyze) DeepCopy added in v0.6.0

func (in *ExtendAnalyze) DeepCopy() *ExtendAnalyze

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

func (*ExtendAnalyze) DeepCopyInto added in v0.6.0

func (in *ExtendAnalyze) DeepCopyInto(out *ExtendAnalyze)

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

type ExtendCollect

type ExtendCollect struct {
}

ExtendCollect defines extended data collector for k8s cluster

func (*ExtendCollect) DeepCopy added in v0.6.0

func (in *ExtendCollect) DeepCopy() *ExtendCollect

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

func (*ExtendCollect) DeepCopyInto added in v0.6.0

func (in *ExtendCollect) DeepCopyInto(out *ExtendCollect)

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

type ExtendHostAnalyze

type ExtendHostAnalyze struct {
	// HostUtility is to analyze the presence of target utility
	// +optional
	HostUtility *HostUtilityAnalyze `json:"hostUtility,omitempty"`
	// ClusterRegion is to validate the regionName of target k8s cluster
	// +optional
	ClusterRegion *ClusterRegionAnalyze `json:"clusterRegion,omitempty"`
}

func (*ExtendHostAnalyze) DeepCopy added in v0.6.0

func (in *ExtendHostAnalyze) DeepCopy() *ExtendHostAnalyze

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

func (*ExtendHostAnalyze) DeepCopyInto added in v0.6.0

func (in *ExtendHostAnalyze) DeepCopyInto(out *ExtendHostAnalyze)

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

type ExtendHostCollect

type ExtendHostCollect struct {
	// HostUtility is to collect the data of target utility.
	// +optional
	HostUtility *HostUtility `json:"hostUtility,omitempty"`
	// ClusterRegion is region of target k8s
	// +optional
	ClusterRegion *ClusterRegion `json:"clusterRegion,omitempty"`
}

func (*ExtendHostCollect) DeepCopy added in v0.6.0

func (in *ExtendHostCollect) DeepCopy() *ExtendHostCollect

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

func (*ExtendHostCollect) DeepCopyInto added in v0.6.0

func (in *ExtendHostCollect) DeepCopyInto(out *ExtendHostCollect)

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

type HostPreflight

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

	Spec   HostPreflightSpec   `json:"spec,omitempty"`
	Status HostPreflightStatus `json:"status,omitempty"`
}

HostPreflight is the Schema for the hostpreflights API

func (*HostPreflight) DeepCopy added in v0.6.0

func (in *HostPreflight) DeepCopy() *HostPreflight

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

func (*HostPreflight) DeepCopyInto added in v0.6.0

func (in *HostPreflight) DeepCopyInto(out *HostPreflight)

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

func (*HostPreflight) DeepCopyObject added in v0.6.0

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

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

type HostPreflightList

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

HostPreflightList contains a list of HostPreflight

func (*HostPreflightList) DeepCopy added in v0.6.0

func (in *HostPreflightList) DeepCopy() *HostPreflightList

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

func (*HostPreflightList) DeepCopyInto added in v0.6.0

func (in *HostPreflightList) DeepCopyInto(out *HostPreflightList)

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

func (*HostPreflightList) DeepCopyObject added in v0.6.0

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

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

type HostPreflightSpec

type HostPreflightSpec struct {
	// hostPreflightSpec is defined by troubleshoot.sh and inherited by ApeCloud.
	troubleshoot.HostPreflightSpec `json:",inline"`
	// extendCollectors extends user defined hostCollectors by ApeCloud.
	// +optional
	ExtendCollectors []*ExtendHostCollect `json:"extendCollectors,omitempty"`
	// extendAnalyzers extends user defined hostAnalyzers by ApeCloud.
	// +optional
	ExtendAnalyzers []*ExtendHostAnalyze `json:"extendAnalyzers,omitempty"`
}

HostPreflightSpec defines the desired state of HostPreflight

func (*HostPreflightSpec) DeepCopy added in v0.6.0

func (in *HostPreflightSpec) DeepCopy() *HostPreflightSpec

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

func (*HostPreflightSpec) DeepCopyInto added in v0.6.0

func (in *HostPreflightSpec) DeepCopyInto(out *HostPreflightSpec)

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

type HostPreflightStatus

type HostPreflightStatus struct {
	// hostPreflightStatus is defined by troubleshoot.sh and inherited by ApeCloud.
	troubleshoot.HostPreflightStatus `json:",inline"`
}

HostPreflightStatus defines the observed state of HostPreflight

func (*HostPreflightStatus) DeepCopy added in v0.6.0

func (in *HostPreflightStatus) DeepCopy() *HostPreflightStatus

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

func (*HostPreflightStatus) DeepCopyInto added in v0.6.0

func (in *HostPreflightStatus) DeepCopyInto(out *HostPreflightStatus)

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

type HostUtility

type HostUtility struct {
	// HostCollectorMeta is defined in troubleshoot.sh
	troubleshoot.HostCollectorMeta `json:",inline"`
	// UtilityName indicates the utility which will be checked in local host
	// +kubebuilder:validation:Required
	UtilityName string `json:"utilityName"`
}

func (*HostUtility) DeepCopy added in v0.6.0

func (in *HostUtility) DeepCopy() *HostUtility

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

func (*HostUtility) DeepCopyInto added in v0.6.0

func (in *HostUtility) DeepCopyInto(out *HostUtility)

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

type HostUtilityAnalyze

type HostUtilityAnalyze struct {
	// HostCollectorMeta is defined in troubleshoot.sh
	troubleshoot.AnalyzeMeta `json:",inline"`
	// CollectorName indicates the collected data to be analyzed
	// +optional
	CollectorName string `json:"collectorName,omitempty"`
	// Outcomes are expected user defined results
	// +kubebuilder:validation:Required
	Outcomes []*troubleshoot.Outcome `json:"outcomes"`
}

func (*HostUtilityAnalyze) DeepCopy added in v0.6.0

func (in *HostUtilityAnalyze) DeepCopy() *HostUtilityAnalyze

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

func (*HostUtilityAnalyze) DeepCopyInto added in v0.6.0

func (in *HostUtilityAnalyze) DeepCopyInto(out *HostUtilityAnalyze)

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

type KBStorageClassAnalyze

type KBStorageClassAnalyze struct {
	// AnalyzeMeta is defined in troubleshoot.sh
	troubleshoot.AnalyzeMeta `json:",inline"`
	// Outcomes are expected user defined results.
	// +kubebuilder:validation:Required
	Outcomes []*troubleshoot.Outcome `json:"outcomes"`
	// StorageClassType is StorageClass type
	// +kubebuilder:validation:Required
	StorageClassType string `json:"storageClassType"`
	// Provisioner is the provisioner of StorageClass
	// +optional
	Provisioner string `json:"provisioner,omitempty"`
}

KBStorageClassAnalyze replaces default storageClassAnalyze in preflight

func (*KBStorageClassAnalyze) DeepCopy added in v0.6.0

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

func (*KBStorageClassAnalyze) DeepCopyInto added in v0.6.0

func (in *KBStorageClassAnalyze) DeepCopyInto(out *KBStorageClassAnalyze)

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

type KBTaintAnalyze

type KBTaintAnalyze struct {
	// AnalyzeMeta is defined in troubleshoot.sh
	troubleshoot.AnalyzeMeta `json:",inline"`
	// Outcomes are expected user defined results.
	// +kubebuilder:validation:Required
	Outcomes []*troubleshoot.Outcome `json:"outcomes"`
	// Tolerations are toleration configuration passed by kbcli
	// +optional
	TolerationsMap map[string][]v1.Toleration `json:"tolerations"`
}

KBTaintAnalyze matches the analysis of taints with TolerationsMap

func (*KBTaintAnalyze) DeepCopy added in v0.6.0

func (in *KBTaintAnalyze) DeepCopy() *KBTaintAnalyze

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

func (*KBTaintAnalyze) DeepCopyInto added in v0.6.0

func (in *KBTaintAnalyze) DeepCopyInto(out *KBTaintAnalyze)

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

type Preflight

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

	Spec   PreflightSpec   `json:"spec,omitempty"`
	Status PreflightStatus `json:"status,omitempty"`
}

Preflight is the Schema for the preflights API

func (*Preflight) DeepCopy added in v0.6.0

func (in *Preflight) DeepCopy() *Preflight

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

func (*Preflight) DeepCopyInto added in v0.6.0

func (in *Preflight) DeepCopyInto(out *Preflight)

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

func (*Preflight) DeepCopyObject added in v0.6.0

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

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

type PreflightList

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

PreflightList contains a list of Preflight

func (*PreflightList) DeepCopy added in v0.6.0

func (in *PreflightList) DeepCopy() *PreflightList

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

func (*PreflightList) DeepCopyInto added in v0.6.0

func (in *PreflightList) DeepCopyInto(out *PreflightList)

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

func (*PreflightList) DeepCopyObject added in v0.6.0

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

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

type PreflightSpec

type PreflightSpec struct {
	// preflightSpec is defined by troubleshoot.sh and inherited by ApeCloud.
	troubleshoot.PreflightSpec `json:",inline"`
	// extendCollectors extends user defined collectors by ApeCloud.
	// +optional
	ExtendCollectors []*ExtendCollect `json:"extendCollectors,omitempty"`
	// extendAnalyzers extends user defined analyzers by ApeCloud.
	// +optional
	ExtendAnalyzers []*ExtendAnalyze `json:"extendAnalyzers,omitempty"`
}

PreflightSpec defines the desired state of Preflight

func (*PreflightSpec) DeepCopy added in v0.6.0

func (in *PreflightSpec) DeepCopy() *PreflightSpec

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

func (*PreflightSpec) DeepCopyInto added in v0.6.0

func (in *PreflightSpec) DeepCopyInto(out *PreflightSpec)

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

type PreflightStatus

type PreflightStatus struct {
	// preflightStatus is defined by troubleshoot.sh and inherited by ApeCloud.
	troubleshoot.PreflightStatus `json:",inline"`
}

PreflightStatus defines the observed state of Preflight

func (*PreflightStatus) DeepCopy added in v0.6.0

func (in *PreflightStatus) DeepCopy() *PreflightStatus

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

func (*PreflightStatus) DeepCopyInto added in v0.6.0

func (in *PreflightStatus) DeepCopyInto(out *PreflightStatus)

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