Documentation
¶
Index ¶
- Variables
- func CreateOrUpdate(ctx context.Context, c client.Client, obj client.Object) error
- func CreateScheduler(instance *stackv1alpha1.ArgoWorkFlow, dep *appsv1.Deployment, ...)
- func ReconcileTasks[T client.Object](tasks *[]ReconcileTask[T], ctx context.Context, instance T, ...) error
- type ArgoWorkFlowReconciler
- type Map
- type ReconcileTask
- type ResourceType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResourceMapper = map[ResourceType]string{ Deployment: status.ConditionTypeReconcileDeployment, Service: status.ConditionTypeReconcileService, Secret: status.ConditionTypeReconcileSecret, ConfigMap: status.ConditionTypeReconcileConfigMap, Pvc: status.ConditionTypeReconcilePVC, ServiceAccount: "ReconcileServiceAccount", RoleBinding: "ReconcileRoleBinding", } )
Functions ¶
func CreateOrUpdate ¶
func CreateScheduler ¶
func CreateScheduler(instance *stackv1alpha1.ArgoWorkFlow, dep *appsv1.Deployment, roleGroup *stackv1alpha1.RoleConfigSpec)
func ReconcileTasks ¶
func ReconcileTasks[T client.Object](tasks *[]ReconcileTask[T], ctx context.Context, instance T, r *ArgoWorkFlowReconciler, instanceStatus status.Status, serverName string) error
Types ¶
type ArgoWorkFlowReconciler ¶
ArgoWorkFlowReconciler reconciles a ArgoWorkFlow object
func (*ArgoWorkFlowReconciler) Reconcile ¶
func (r *ArgoWorkFlowReconciler) 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 ArgoWorkFlow 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.1/pkg/reconcile
func (*ArgoWorkFlowReconciler) SetupWithManager ¶
func (r *ArgoWorkFlowReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReconcileTask ¶
type ResourceType ¶
type ResourceType string
const ( Deployment ResourceType = "Deployment" Service ResourceType = "Service" Secret ResourceType = "Secret" ConfigMap ResourceType = "ConfigMap" Pvc ResourceType = "Pvc" ServiceAccount ResourceType = "ServiceAccount" RoleBinding = "RoleBinding" )
Click to show internal directories.
Click to hide internal directories.