Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the lib v1alpha1 API group +kubebuilder:object:generate=true +groupName=lib.projectsveltos.io
Index ¶
Constants ¶
const ( // LogLevelNotSet indicates log severity is not set. Default configuration will apply. LogLevelNotSet = LogLevel("LogLevelNotSet") // LogLevelInfo indicates log severity info (V(0)) is set LogLevelInfo = LogLevel("LogLevelInfo") // LogLevelDebug indicates log severity debug (V(5)) is set LogLevelDebug = LogLevel("LogLevelDebug") // LogLevelVerbose indicates log severity debug (V(10)) is set LogLevelVerbose = LogLevel("LogLevelVerbose") )
const ( // ComponentSveltosManager is the sveltos-manager pod ComponentSveltosManager = Component("SveltosManager") // Classifier is the classifier pod CLassifier = Component("CLassifier") )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "lib.projectsveltos.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 ComponentConfiguration ¶
type ComponentConfiguration struct {
// Component indicates which Sveltos component the configuration applies to.
Component Component `json:"component"`
// LogLevel is the log severity above which logs are sent to the stdout. [Default: Info]
LogLevel LogLevel `json:"logLevel,omitempty"`
}
ComponentConfiguration is the debugging configuration to be applied to a Sveltos component.
func (*ComponentConfiguration) DeepCopy ¶
func (in *ComponentConfiguration) DeepCopy() *ComponentConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentConfiguration.
func (*ComponentConfiguration) DeepCopyInto ¶
func (in *ComponentConfiguration) DeepCopyInto(out *ComponentConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DebuggingConfiguration ¶
type DebuggingConfiguration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DebuggingConfigurationSpec `json:"spec,omitempty"`
}
DebuggingConfiguration is the Schema for the debuggingconfigurations API
func (*DebuggingConfiguration) DeepCopy ¶
func (in *DebuggingConfiguration) DeepCopy() *DebuggingConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebuggingConfiguration.
func (*DebuggingConfiguration) DeepCopyInto ¶
func (in *DebuggingConfiguration) DeepCopyInto(out *DebuggingConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DebuggingConfiguration) DeepCopyObject ¶
func (in *DebuggingConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DebuggingConfigurationList ¶
type DebuggingConfigurationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DebuggingConfiguration `json:"items"`
}
DebuggingConfigurationList contains a list of DebuggingConfiguration
func (*DebuggingConfigurationList) DeepCopy ¶
func (in *DebuggingConfigurationList) DeepCopy() *DebuggingConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebuggingConfigurationList.
func (*DebuggingConfigurationList) DeepCopyInto ¶
func (in *DebuggingConfigurationList) DeepCopyInto(out *DebuggingConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DebuggingConfigurationList) DeepCopyObject ¶
func (in *DebuggingConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DebuggingConfigurationSpec ¶
type DebuggingConfigurationSpec struct {
// Configuration contains debugging configuration as granular as per component.
// +listType=atomic
// +optional
Configuration []ComponentConfiguration `json:"configuration,omitempty"`
}
DebuggingConfigurationSpec defines the desired state of DebuggingConfiguration
func (*DebuggingConfigurationSpec) DeepCopy ¶
func (in *DebuggingConfigurationSpec) DeepCopy() *DebuggingConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebuggingConfigurationSpec.
func (*DebuggingConfigurationSpec) DeepCopyInto ¶
func (in *DebuggingConfigurationSpec) DeepCopyInto(out *DebuggingConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LogLevel ¶
type LogLevel string
+kubebuilder:validation:Enum:=LogLevelNotSet;LogLevelInfo;LogLevelDebug;LogLevelVerbose
type PolicyRef ¶
type PolicyRef struct {
// Namespace of the referenced resource.
// +kubebuilder:validation:MinLength=1
Namespace string `json:"namespace"`
// Name of the rreferenced resource.
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// Kind of the resource. Supported kinds are: Secrets and ConfigMaps.
// +kubebuilder:validation:Enum=Secret;ConfigMap
Kind string `json:"kind"`
}
PolicyRef specifies a resource containing one or more policy to deploy in matching CAPI Clusters.
func (*PolicyRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRef.
func (*PolicyRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.