Documentation ¶
Index ¶
- func Register(ctx context.Context, management *config.Management, opts config.Options) error
- type Handler
- func (h *Handler) MonitorAddonPerStatus(key string, aObj *harvesterv1.Addon) (*harvesterv1.Addon, error)
- func (h *Handler) MonitorAddonRancherMonitoring(key string, aObj *harvesterv1.Addon) (*harvesterv1.Addon, error)
- func (h *Handler) PatchApps(key string, app *catalogv1.App) (*catalogv1.App, error)
- func (h *Handler) ReconcileHelmChartOwners(_ string, _ string, obj runtime.Object) ([]relatedresource.Key, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) MonitorAddonPerStatus ¶ added in v1.2.0
func (h *Handler) MonitorAddonPerStatus(key string, aObj *harvesterv1.Addon) (*harvesterv1.Addon, error)
MonitorAddonPerStatus will track the OnChange on addon, route actions per addon status
func (*Handler) MonitorAddonRancherMonitoring ¶ added in v1.2.0
func (h *Handler) MonitorAddonRancherMonitoring(key string, aObj *harvesterv1.Addon) (*harvesterv1.Addon, error)
MonitorAddonRancherMonitoring will track status change of rancher-monitroing addon
func (*Handler) PatchApps ¶ added in v1.2.0
PatchApps will watch apps.catalog.cattle.io and patch Charts.yaml with additional annotation 'catalog.cattle.io/managed' this is needed to ensure that addons cannot be upgrade directly from the apps with rancher mcm enabled on harvester
func (*Handler) ReconcileHelmChartOwners ¶
func (h *Handler) ReconcileHelmChartOwners(_ string, _ string, obj runtime.Object) ([]relatedresource.Key, error)
downstream helmchart change will also trigger Addon OnChange
Click to show internal directories.
Click to hide internal directories.