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 ¶
- type KubernetesBackend
- func (be *KubernetesBackend) Create(ctx context.Context, project *v1alpha1.AppProject) (*v1alpha1.AppProject, error)
- func (be *KubernetesBackend) Delete(ctx context.Context, name string, namespace string, ...) error
- func (be *KubernetesBackend) Get(ctx context.Context, name string, namespace string) (*v1alpha1.AppProject, error)
- func (be *KubernetesBackend) List(ctx context.Context, selector backend.AppProjectSelector) ([]v1alpha1.AppProject, error)
- func (be *KubernetesBackend) Patch(ctx context.Context, name string, namespace string, patch []byte) (*v1alpha1.AppProject, error)
- func (be *KubernetesBackend) StartInformer(ctx context.Context)
- func (be *KubernetesBackend) SupportsPatch() bool
- func (be *KubernetesBackend) Update(ctx context.Context, project *v1alpha1.AppProject) (*v1alpha1.AppProject, error)
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 (be *KubernetesBackend) Create(ctx context.Context, project *v1alpha1.AppProject) (*v1alpha1.AppProject, error)
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 (be *KubernetesBackend) List(ctx context.Context, selector backend.AppProjectSelector) ([]v1alpha1.AppProject, error)
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 ¶
func (be *KubernetesBackend) Update(ctx context.Context, project *v1alpha1.AppProject) (*v1alpha1.AppProject, error)
Click to show internal directories.
Click to hide internal directories.