release

package
v1.57.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 38 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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,
) *Controller

NewController returns a new sample controller

func (*Controller) GetModuleSources

func (c *Controller) GetModuleSources() map[string]string

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, releaseName string) (ctrl.Result, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int)

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

func (c *ModulePullOverrideController) OverrideReconcile(ctx context.Context, key string) (ctrl.Result, error)

func (*ModulePullOverrideController) Run

func (c *ModulePullOverrideController) Run(ctx context.Context, workers int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL