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 ( // EventBasedAddOnFinalizer allows Reconcilers to clean up resources associated with // EventBasedAddOn before removing it from the apiserver. EventBasedAddOnFinalizer = "eventbasedaddon.finalizer.projectsveltos.io" EventBasedAddOnKind = "EventBasedAddOn" FeatureEventBasedAddOn = "EventBasedAddOn" )
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 EventBasedAddOn ¶
type EventBasedAddOn struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec EventBasedAddOnSpec `json:"spec,omitempty"`
Status EventBasedAddOnStatus `json:"status,omitempty"`
}
EventBasedAddOn is the Schema for the eventbasedaddons API
func (*EventBasedAddOn) DeepCopy ¶
func (in *EventBasedAddOn) DeepCopy() *EventBasedAddOn
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBasedAddOn.
func (*EventBasedAddOn) DeepCopyInto ¶
func (in *EventBasedAddOn) DeepCopyInto(out *EventBasedAddOn)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventBasedAddOn) DeepCopyObject ¶
func (in *EventBasedAddOn) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventBasedAddOnList ¶
type EventBasedAddOnList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []EventBasedAddOn `json:"items"`
}
EventBasedAddOnList contains a list of EventBasedAddOn
func (*EventBasedAddOnList) DeepCopy ¶
func (in *EventBasedAddOnList) DeepCopy() *EventBasedAddOnList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBasedAddOnList.
func (*EventBasedAddOnList) DeepCopyInto ¶
func (in *EventBasedAddOnList) DeepCopyInto(out *EventBasedAddOnList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventBasedAddOnList) DeepCopyObject ¶
func (in *EventBasedAddOnList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventBasedAddOnSpec ¶
type EventBasedAddOnSpec struct {
// ClusterSelector identifies clusters to associate to.
ClusterSelector libsveltosv1alpha1.Selector `json:"clusterSelector"`
// Multiple resources in a managed cluster can be a match for referenced
// EventSource. OneForEvent indicates whether a ClusterProfile for all
// resource (OneForEvent = false) or one per resource (OneForEvent = true)
// needs to be creted.
// Default to to true.
// +kubebuilder:default:=true
// +optional
OneForEvent bool `json:"oneForEvent,omitempty"`
// EventSourceName is the name of the referenced EventSource.
// Resources contained in the referenced ConfigMaps/Secrets and HelmCharts
// will be customized using information from resources matching the EventSource
// in the managed cluster.
EventSourceName string `json:"eventSourceName"`
// PolicyRefs references all the ConfigMaps/Secrets containing kubernetes resources
// that need to be deployed in the matching clusters based on EventSource.
// +optional
PolicyRefs []libsveltosv1alpha1.PolicyRef `json:"policyRefs,omitempty"`
// Helm charts to be deployed in the matching clusters based on EventSource.
HelmCharts []configv1alpha1.HelmChart `json:"helmCharts,omitempty"`
}
EventBasedAddOnSpec defines the desired state of EventBasedAddOn
func (*EventBasedAddOnSpec) DeepCopy ¶
func (in *EventBasedAddOnSpec) DeepCopy() *EventBasedAddOnSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBasedAddOnSpec.
func (*EventBasedAddOnSpec) DeepCopyInto ¶
func (in *EventBasedAddOnSpec) DeepCopyInto(out *EventBasedAddOnSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventBasedAddOnStatus ¶
type EventBasedAddOnStatus struct {
// MatchingClusterRefs reference all the cluster-api Cluster currently matching
// ClusterProfile ClusterSelector
// +optional
MatchingClusterRefs []corev1.ObjectReference `json:"matchingClusters,omitempty"`
// ClusterInfo represent the deployment status in each managed
// cluster
// +optional
ClusterInfo []libsveltosv1alpha1.ClusterInfo `json:"clusterInfo,omitempty"`
}
EventBasedAddOnStatus defines the observed state of EventBasedAddOn
func (*EventBasedAddOnStatus) DeepCopy ¶
func (in *EventBasedAddOnStatus) DeepCopy() *EventBasedAddOnStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventBasedAddOnStatus.
func (*EventBasedAddOnStatus) DeepCopyInto ¶
func (in *EventBasedAddOnStatus) DeepCopyInto(out *EventBasedAddOnStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.