Documentation ¶
Index ¶
- func FillDefaultValue(origin *appv1.Agent) *appv1.Agent
- type AgentReconciler
- func (r *AgentReconciler) CreateResource(ctx context.Context, agent *appv1.Agent) (err error)
- func (r *AgentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
- func (r *AgentReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *AgentReconciler) UpdateResource(ctx context.Context, oldDeploy *appsv1.StatefulSet, agent *appv1.Agent) (err error)
- type AgentResources
- type SetOwnerRefFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentReconciler ¶
AgentReconciler reconciles a Agent object
func (*AgentReconciler) CreateResource ¶
func (*AgentReconciler) SetupWithManager ¶
func (r *AgentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*AgentReconciler) UpdateResource ¶
func (r *AgentReconciler) UpdateResource(ctx context.Context, oldDeploy *appsv1.StatefulSet, agent *appv1.Agent) (err error)
type AgentResources ¶
type AgentResources struct { StatefulSet *appsv1.StatefulSet ServiceAccount *corev1.ServiceAccount RoleBinding *rbacv1.RoleBinding Role *rbacv1.Role }
func ConvertAgent ¶
func ConvertAgent(app *appv1.Agent, setOwnerRef SetOwnerRefFunc) *AgentResources
Click to show internal directories.
Click to hide internal directories.