v1alpha1

package
v0.4.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromHelmReleaseHandlerToHandler

func FromHelmReleaseHandlerToHandler(sync HelmReleaseHandler) generic.Handler

func RegisterHelmReleaseGeneratingHandler

func RegisterHelmReleaseGeneratingHandler(ctx context.Context, controller HelmReleaseController, apply apply.Apply,
	condition condition.Cond, name string, handler HelmReleaseGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterHelmReleaseStatusHandler

func RegisterHelmReleaseStatusHandler(ctx context.Context, controller HelmReleaseController, condition condition.Cond, name string, handler HelmReleaseStatusHandler)

func UpdateHelmReleaseDeepCopyOnChange

func UpdateHelmReleaseDeepCopyOnChange(client HelmReleaseClient, obj *v1alpha1.HelmRelease, handler func(obj *v1alpha1.HelmRelease) (*v1alpha1.HelmRelease, error)) (*v1alpha1.HelmRelease, error)

Types

type HelmReleaseCache

type HelmReleaseCache interface {
	Get(namespace, name string) (*v1alpha1.HelmRelease, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.HelmRelease, error)

	AddIndexer(indexName string, indexer HelmReleaseIndexer)
	GetByIndex(indexName, key string) ([]*v1alpha1.HelmRelease, error)
}

type HelmReleaseClient

type HelmReleaseClient interface {
	Create(*v1alpha1.HelmRelease) (*v1alpha1.HelmRelease, error)
	Update(*v1alpha1.HelmRelease) (*v1alpha1.HelmRelease, error)
	UpdateStatus(*v1alpha1.HelmRelease) (*v1alpha1.HelmRelease, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1alpha1.HelmRelease, error)
	List(namespace string, opts metav1.ListOptions) (*v1alpha1.HelmReleaseList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.HelmRelease, err error)
}

type HelmReleaseController

type HelmReleaseController interface {
	generic.ControllerMeta
	HelmReleaseClient

	OnChange(ctx context.Context, name string, sync HelmReleaseHandler)
	OnRemove(ctx context.Context, name string, sync HelmReleaseHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() HelmReleaseCache
}

func NewHelmReleaseController

func NewHelmReleaseController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) HelmReleaseController

type HelmReleaseHandler

type HelmReleaseHandler func(string, *v1alpha1.HelmRelease) (*v1alpha1.HelmRelease, error)

type HelmReleaseIndexer

type HelmReleaseIndexer func(obj *v1alpha1.HelmRelease) ([]string, error)

type HelmReleaseStatusHandler

type HelmReleaseStatusHandler func(obj *v1alpha1.HelmRelease, status v1alpha1.HelmReleaseStatus) (v1alpha1.HelmReleaseStatus, error)

type Interface

type Interface interface {
	HelmRelease() HelmReleaseController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

Jump to

Keyboard shortcuts

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