Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reconciler ¶
type Reconciler struct { Client client.Client Scheme *runtime.Scheme PackageDiscover *packages.PackageDiscover // contains filtered or unexported fields }
Reconciler reconciles an AppDeployment object
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res reconcile.Result, retErr error)
Reconcile is the main logic of appDeployment controller
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager setup the controller with manager
type WorkloadRenderer ¶
type WorkloadRenderer interface {
Render(ctx context.Context, ac *oamcorealpha.ApplicationConfiguration, comps []*oamcorealpha.Component) ([]*workload, error)
}
WorkloadRenderer renders Workloads which are k8s resources to apply
func NewWorkloadRenderer ¶
func NewWorkloadRenderer(cli client.Client) WorkloadRenderer
NewWorkloadRenderer is the main entry to create WorkloadRenderer implementation.
Click to show internal directories.
Click to hide internal directories.