controller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 17 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

Overview

Package controller provides functions for creating and registering a Helm controller with a `controller-runtime` manager. It also provides a Helm reconciler implementation that can be used to create a Helm-based operator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, options WatchOptions) error

Add creates a new helm operator controller and adds it to the manager

Types

type HelmOperatorReconciler

type HelmOperatorReconciler struct {
	Client         client.Client
	GVK            schema.GroupVersionKind
	ManagerFactory release.ManagerFactory
	ResyncPeriod   time.Duration
}

HelmOperatorReconciler reconciles custom resources as Helm releases.

func (HelmOperatorReconciler) Reconcile

Reconcile reconciles the requested resource by installing, updating, or uninstalling a Helm release based on the resource's current state. If no release changes are necessary, Reconcile will create or patch the underlying resources to match the expected release manifest.

type WatchOptions

type WatchOptions struct {
	Namespace      string
	GVK            schema.GroupVersionKind
	ManagerFactory release.ManagerFactory
	ResyncPeriod   time.Duration
}

WatchOptions contains the necessary values to create a new controller that manages helm releases in a particular namespace based on a GVK watch.

Jump to

Keyboard shortcuts

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