Documentation ¶
Index ¶
Constants ¶
View Source
const (
UpdatePolicyLabel = "modules.deckhouse.io/update-policy"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller implementation for ModuleRelease resources
func NewController ¶
func NewController(ks kubernetes.Interface, d8ClientSet versioned.Interface, moduleReleaseInformer d8informers.ModuleReleaseInformer, moduleSourceInformer d8informers.ModuleSourceInformer, moduleUpdatePolicyInformer d8informers.ModuleUpdatePolicyInformer, modulePullOverridesInformer d8informers.ModulePullOverrideInformer, mv moduleValidator, httpClient d8http.Client, ) *Controller
NewController returns a new sample controller
func (*Controller) GetModuleSources ¶
func (c *Controller) GetModuleSources() map[string]string
func (*Controller) RunPreflightCheck ¶
func (c *Controller) RunPreflightCheck(ctx context.Context) error
RunPreflightCheck start a few checks and synchronize deckhouse filesystem with ModuleReleases
- Download modules, which have status=deployed on ModuleRelease but have no files on Filesystem
- Delete modules, that don't have ModuleRelease presented in the cluster
type ModulePullOverrideController ¶
type ModulePullOverrideController struct {
// contains filtered or unexported fields
}
ModulePullOverrideController is the controller implementation for ModulePullOverride resources
func NewModulePullOverrideController ¶
func NewModulePullOverrideController(ks kubernetes.Interface, d8ClientSet versioned.Interface, moduleSourceInformer d8informers.ModuleSourceInformer, modulePullOverridesInformer d8informers.ModulePullOverrideInformer, modulesValidator moduleValidator, ) *ModulePullOverrideController
NewModulePullOverrideController returns a new sample controller
func (*ModulePullOverrideController) OverrideReconcile ¶
Click to show internal directories.
Click to hide internal directories.