deckhouse

package
v1.26.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 15 Imported by: 0 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

This section is empty.

Variables

View Source
var NonSafeCharsRegexp = regexp.MustCompile(`[^a-zA-Z0-9]`)

Functions

func GetCurrentPod

func GetCurrentPod(client klient.Client) (pod *v1.Pod, err error)

func GetCurrentPodImageInfo

func GetCurrentPodImageInfo(kubeClient klient.Client) (imageName string, imageID string)

GetCurrentPodImageInfo returns image name (registry:port/image_repo:image_tag) and imageID.

imageID can be in two forms on docker backend: - "imageID": "docker-pullable://registry.gitlab.com/projectgroup/projectname/dev@sha256:05f5cc14dff4fcc3ff3eb554de0e550050e65c968dc8bbc2d7f4506edfcdc5b6" - "imageID": "docker://sha256:e537460dd124f6db6656c1728a42cf8e268923ff52575504a471fa485c2a884a"

Image name should be taken from container spec. ContainerStatus contains bad image name if multiple tags has one digest! https://github.com/kubernetes/kubernetes/issues/51017

func GetDeploymentOfCurrentPod

func GetDeploymentOfCurrentPod(client klient.Client) (deployment *appsv1.Deployment, err error)

func InitAndStart

func InitAndStart(ctrl *DeckhouseController) error

func NormalizeLabelValue

func NormalizeLabelValue(value string) string

func RegisterDeckhouseMetrics

func RegisterDeckhouseMetrics(metricStorage *metric_storage.MetricStorage)

func UpdateDeployment

func UpdateDeployment(client klient.Client, deployment *appsv1.Deployment) error

func UpdateDeploymentImageAndExit

func UpdateDeploymentImageAndExit(kubeClient klient.Client, newImageID string)

UpdateDeploymentImageAndExit updates "deckhouseImageId" label of deployment/deckhouse

Types

type DeckhouseController

type DeckhouseController struct {
	*addon_operator.AddonOperator
	// contains filtered or unexported fields
}

Ignore error: type name will be used as deckhouse.DeckhouseController by other packages, and that stutters

func DefaultDeckhouse

func DefaultDeckhouse() *DeckhouseController

func NewDeckhouseController

func NewDeckhouseController() *DeckhouseController

func (*DeckhouseController) InitAndStartRegistryWatcher

func (d *DeckhouseController) InitAndStartRegistryWatcher() error

StartWatchRegistry initializes and starts a RegistryManager.

func (*DeckhouseController) Shutdown

func (d *DeckhouseController) Shutdown()

func (*DeckhouseController) Stop

func (d *DeckhouseController) Stop()

func (*DeckhouseController) WithContext

Jump to

Keyboard shortcuts

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