apps

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 89 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ReasonPreCheckSucceed       = "PreCheckSucceed"       // ReasonPreCheckSucceed preChecks succeeded for provisioning started
	ReasonPreCheckFailed        = "PreCheckFailed"        // ReasonPreCheckFailed preChecks failed for provisioning started
	ReasonApplyResourcesFailed  = "ApplyResourcesFailed"  // ReasonApplyResourcesFailed applies resources failed to create or change the cluster
	ReasonApplyResourcesSucceed = "ApplyResourcesSucceed" // ReasonApplyResourcesSucceed applies resources succeeded to create or change the cluster
	ReasonReplicasNotReady      = "ReplicasNotReady"      // ReasonReplicasNotReady the pods of components are not ready
	ReasonAllReplicasReady      = "AllReplicasReady"      // ReasonAllReplicasReady the pods of components are ready
	ReasonComponentsNotReady    = "ComponentsNotReady"    // ReasonComponentsNotReady the components of cluster are not ready
	ReasonClusterReady          = "ClusterReady"          // ReasonClusterReady the components of cluster are ready, the component phase is running
)
View Source
const (
	SysAcctDelete      = "SysAcctDelete"
	SysAcctCreate      = "SysAcctCreate"
	SysAcctUnsupported = "SysAcctUnsupported"
)

SysAccountDeletion and SysAccountCreation are used as event reasons.

View Source
const EventTimeOut = 30 * time.Second

EventTimeOut timeout of the event

Variables

This section is empty.

Functions

func DelayUpdateInstanceSetSystemFields added in v0.9.0

func DelayUpdateInstanceSetSystemFields(obj v1alpha1.InstanceSetSpec, pobj *v1alpha1.InstanceSetSpec)

func DelayUpdatePodSpecSystemFields added in v0.8.0

func DelayUpdatePodSpecSystemFields(obj corev1.PodSpec, pobj *corev1.PodSpec)

DelayUpdatePodSpecSystemFields to delay the updating to system fields in pod spec.

func GetClusterByObject added in v0.8.0

func GetClusterByObject(ctx context.Context,
	cli client.Client,
	obj client.Object) (*appsv1alpha1.Cluster, error)

GetClusterByObject gets cluster by related k8s workloads.

func IsProbeTimeout added in v0.8.0

func IsProbeTimeout(probes *appsv1alpha1.ClusterDefinitionProbes, podsReadyTime *metav1.Time) bool

IsProbeTimeout checks if the application of the pod is probe timed out.

func UpdateInstanceSetSystemFields added in v0.9.0

func UpdateInstanceSetSystemFields(obj v1alpha1.InstanceSetSpec, pobj *v1alpha1.InstanceSetSpec)

func UpdatePodSpecSystemFields added in v0.8.0

func UpdatePodSpecSystemFields(obj corev1.PodSpec, pobj *corev1.PodSpec)

UpdatePodSpecSystemFields to update system fields in pod spec.

Types

type BackupPolicyTemplateReconciler added in v0.7.0

type BackupPolicyTemplateReconciler struct {
	client.Client
	Scheme   *k8sruntime.Scheme
	Recorder record.EventRecorder
}

func (*BackupPolicyTemplateReconciler) Reconcile added in v0.7.0

func (*BackupPolicyTemplateReconciler) SetupWithManager added in v0.7.0

func (r *BackupPolicyTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterAPINormalizationTransformer added in v0.8.0

type ClusterAPINormalizationTransformer struct{}

ClusterAPINormalizationTransformer handles cluster and component API conversion.

func (*ClusterAPINormalizationTransformer) Transform added in v0.8.0

type ClusterDefinitionReconciler

type ClusterDefinitionReconciler struct {
	client.Client
	Scheme   *k8sruntime.Scheme
	Recorder record.EventRecorder
}

ClusterDefinitionReconciler reconciles a ClusterDefinition object

func (*ClusterDefinitionReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile

func (*ClusterDefinitionReconciler) SetupWithManager

func (r *ClusterDefinitionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	Recorder        record.EventRecorder
	MultiClusterMgr multicluster.Manager
}

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ClusterStatusEventHandler

type ClusterStatusEventHandler struct{}

ClusterStatusEventHandler is the event handler for the cluster status event

func (*ClusterStatusEventHandler) Handle

Handle handles the cluster status events.

type ClusterVersionReconciler

type ClusterVersionReconciler struct {
	client.Client
	Scheme   *k8sruntime.Scheme
	Recorder record.EventRecorder
}

ClusterVersionReconciler reconciles a ClusterVersion object

func (*ClusterVersionReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile

func (*ClusterVersionReconciler) SetupWithManager

func (r *ClusterVersionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ComponentClassReconciler

type ComponentClassReconciler struct {
	client.Client
	Scheme   *k8sruntime.Scheme
	Recorder record.EventRecorder
}

func (*ComponentClassReconciler) Reconcile

func (*ComponentClassReconciler) SetupWithManager

func (r *ComponentClassReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ComponentDefinitionReconciler added in v0.8.0

type ComponentDefinitionReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

ComponentDefinitionReconciler reconciles a ComponentDefinition object

func (*ComponentDefinitionReconciler) Reconcile added in v0.8.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile

func (*ComponentDefinitionReconciler) SetupWithManager added in v0.8.0

func (r *ComponentDefinitionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ComponentReconciler added in v0.8.0

type ComponentReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

ComponentReconciler reconciles a Component object

func (*ComponentReconciler) Reconcile added in v0.8.0

func (r *ComponentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile

func (*ComponentReconciler) SetupWithManager added in v0.8.0

func (r *ComponentReconciler) SetupWithManager(mgr ctrl.Manager, multiClusterMgr multicluster.Manager) error

SetupWithManager sets up the controller with the Manager.

type ComponentVersionReconciler added in v0.9.0

type ComponentVersionReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

ComponentVersionReconciler reconciles a ComponentVersion object

func (*ComponentVersionReconciler) Reconcile added in v0.9.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ComponentVersion object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile

func (*ComponentVersionReconciler) SetupWithManager added in v0.9.0

func (r *ComponentVersionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type OpsDefinitionReconciler added in v0.8.0

type OpsDefinitionReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

OpsDefinitionReconciler reconciles a OpsDefinition object

func (*OpsDefinitionReconciler) Reconcile added in v0.8.0

func (r *OpsDefinitionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*OpsDefinitionReconciler) SetupWithManager added in v0.8.0

func (r *OpsDefinitionReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type OpsRequestReconciler

type OpsRequestReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

OpsRequestReconciler reconciles a OpsRequest object

func (*OpsRequestReconciler) Reconcile

func (r *OpsRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.0/pkg/reconcile

func (*OpsRequestReconciler) SetupWithManager

func (r *OpsRequestReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ParallelTransformers added in v0.6.0

type ParallelTransformers struct {
	// contains filtered or unexported fields
}

func (*ParallelTransformers) Transform added in v0.6.0

func (t *ParallelTransformers) Transform(ctx graph.TransformContext, dag *graph.DAG) error

type ServiceDescriptorReconciler added in v0.7.0

type ServiceDescriptorReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

ServiceDescriptorReconciler reconciles a ServiceDescriptor object

func (*ServiceDescriptorReconciler) Reconcile added in v0.7.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ServiceDescriptor object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile

func (*ServiceDescriptorReconciler) SetupWithManager added in v0.7.0

func (r *ServiceDescriptorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SystemAccountReconciler

type SystemAccountReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

SystemAccountReconciler reconciles a SystemAccount object.

func (*SystemAccountReconciler) Reconcile

func (r *SystemAccountReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the SystemAccount object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*SystemAccountReconciler) SetupWithManager

func (r *SystemAccountReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL