appproject

package
v0.0.0-...-586883c Latest Latest
Warning

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

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

Documentation

Overview

Package kubernetes implements an AppProject backend that uses a Kubernetes informer to keep track of resources, and an appclientset to manipulate AppProject resources on the cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesBackend

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

KubernetesBackend is an implementation of the backend.AppProject interface, which is used by AppProjectManager to track/update the state of Argo CD AppProjects. KubernetesBackend stores/retrieves all data from Argo CD AppProject CRs on the cluster that is local to the agent/principal.

KubernetesBackend is used by both the principal and agent components.

func NewKubernetesBackend

func NewKubernetesBackend(appClient appclientset.Interface, namespace string, appProjectInformer *appproject.AppProjectInformer, usePatch bool) *KubernetesBackend

func (*KubernetesBackend) Create

func (*KubernetesBackend) Delete

func (be *KubernetesBackend) Delete(ctx context.Context, name string, namespace string, deletionPropagation *backend.DeletionPropagation) error

func (*KubernetesBackend) Get

func (be *KubernetesBackend) Get(ctx context.Context, name string, namespace string) (*v1alpha1.AppProject, error)

func (*KubernetesBackend) List

func (*KubernetesBackend) Patch

func (be *KubernetesBackend) Patch(ctx context.Context, name string, namespace string, patch []byte) (*v1alpha1.AppProject, error)

func (*KubernetesBackend) StartInformer

func (be *KubernetesBackend) StartInformer(ctx context.Context)

func (*KubernetesBackend) SupportsPatch

func (be *KubernetesBackend) SupportsPatch() bool

func (*KubernetesBackend) Update

Jump to

Keyboard shortcuts

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