client

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package client provides helper functions for API clients used by the helm operator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLabelInjectingClient added in v1.32.0

func NewLabelInjectingClient(base kube.Interface, labels map[string]string) kube.Interface

func NewOwnerRefInjectingClient

func NewOwnerRefInjectingClient(base kube.Interface, restMapper meta.RESTMapper,
	obj client.Object) (kube.Interface, error)

Types

type ActionConfigGetter added in v1.27.0

type ActionConfigGetter interface {
	ActionConfigFor(obj client.Object) (*action.Configuration, error)
}

func NewActionConfigGetter added in v1.27.0

func NewActionConfigGetter(cfg *rest.Config, rm meta.RESTMapper, log logr.Logger) (ActionConfigGetter, error)

type WatchedSecrets added in v1.31.0

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

Wraps the kubernetes SecretInterface Helm queries its own secrets multiple times per reconciliation. To reduce the number of lists going to the apiserver we instead use an informer to watch the changes on secrets.

func NewWatchedSecrets added in v1.31.0

func NewWatchedSecrets(clientSet kubernetes.Interface, namespace string) *WatchedSecrets

func (*WatchedSecrets) Apply added in v1.31.0

func (*WatchedSecrets) Create added in v1.31.0

func (w *WatchedSecrets) Create(ctx context.Context, secret *corev1.Secret, opts metav1.CreateOptions) (*corev1.Secret, error)

func (*WatchedSecrets) Delete added in v1.31.0

func (w *WatchedSecrets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

func (*WatchedSecrets) DeleteCollection added in v1.31.0

func (w *WatchedSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

func (*WatchedSecrets) Get added in v1.31.0

func (w *WatchedSecrets) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Secret, error)

func (*WatchedSecrets) List added in v1.31.0

func (*WatchedSecrets) Patch added in v1.31.0

func (w *WatchedSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, _ ...string) (result *corev1.Secret, err error)

func (*WatchedSecrets) Run added in v1.31.0

func (w *WatchedSecrets) Run()

func (*WatchedSecrets) Update added in v1.31.0

func (w *WatchedSecrets) Update(ctx context.Context, secret *corev1.Secret, opts metav1.UpdateOptions) (*corev1.Secret, error)

func (*WatchedSecrets) Watch added in v1.31.0

Jump to

Keyboard shortcuts

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