status

package
v0.0.0-...-d1b097e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

This package is for maintaining the link between `HelmRelease` resources and the Helm releases to which they correspond. Specifically,

  1. updating the `HelmRelease` status based on the progress of syncing, and the state of the associated Helm release; and,

  2. attributing each resource in a Helm release (under our control) to the associated `HelmRelease`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateConditions

func UpdateConditions(client v1beta1client.HelmReleaseInterface, fhr *v1beta1.HelmRelease, updates ...v1beta1.HelmReleaseCondition) error

UpdateConditions applies the updates to the HelmRelease given, and patches the resource in the cluster.

func UpdateConditionsPatch

func UpdateConditionsPatch(status *v1beta1.HelmReleaseStatus, updates ...v1beta1.HelmReleaseCondition) (types.PatchType, interface{})

We can't rely on having UpdateStatus, or strategic merge patching for custom resources. So we have to create an object which represents the merge path or JSON patch to apply.

func UpdateReleaseStatus

func UpdateReleaseStatus(client v1beta1client.HelmReleaseInterface, fhr v1beta1.HelmRelease, releaseName, releaseStatus string) error

Types

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

func New

func New(fhrClient fluxclientset.Interface, kubeClient kube.Interface, helmClient *helm.Client, namespace string) *Updater

func (*Updater) Loop

func (a *Updater) Loop(stop <-chan struct{}, logger log.Logger)

Jump to

Keyboard shortcuts

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