hooks

package
v0.42.1 Latest Latest
Warning

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

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

Documentation

Overview

Package hooks contains the mutation hooks for the Zarf agent.

Package hooks contains the mutation hooks for the Zarf agent.

Package hooks contains the mutation hooks for the Zarf agent.

Package hooks contains the mutation hooks for the Zarf agent.

Package hooks contains the mutation hooks for the Zarf agent.

Package hooks contains the mutation hooks for the Zarf agent.

Package hooks provides HTTP handlers for the mutating webhook.

Index

Constants

View Source
const AgentErrTransformGitURL = "unable to transform the git url"

AgentErrTransformGitURL is thrown when the agent fails to make the git url a Zarf compatible url

Variables

This section is empty.

Functions

func NewApplicationMutationHook

func NewApplicationMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook

NewApplicationMutationHook creates a new instance of the ArgoCD Application mutation hook.

func NewGitRepositoryMutationHook

func NewGitRepositoryMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook

NewGitRepositoryMutationHook creates a new instance of the git repo mutation hook.

func NewHelmRepositoryMutationHook

func NewHelmRepositoryMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook

NewHelmRepositoryMutationHook creates a new instance of the helm repo mutation hook.

func NewOCIRepositoryMutationHook

func NewOCIRepositoryMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook

NewOCIRepositoryMutationHook creates a new instance of the oci repo mutation hook.

func NewPodMutationHook

func NewPodMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook

NewPodMutationHook creates a new instance of pods mutation hook.

func NewRepositorySecretMutationHook

func NewRepositorySecretMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook

NewRepositorySecretMutationHook creates a new instance of the ArgoCD repository secret mutation hook.

Types

type Application

type Application struct {
	Spec ApplicationSpec `json:"spec"`
	metav1.ObjectMeta
}

Application is a definition of an ArgoCD Application resource. The ArgoCD Application structs in this file have been partially copied from upstream.

https://github.com/argoproj/argo-cd/blob/v2.11.0/pkg/apis/application/v1alpha1/types.go

There were errors encountered when trying to import argocd as a Go package.

For more information: https://argo-cd.readthedocs.io/en/stable/user-guide/import/

type ApplicationSource

type ApplicationSource struct {
	// RepoURL is the URL to the repository (Git or Helm) that contains the application manifests.
	RepoURL string `json:"repoURL"`
}

ApplicationSource contains all required information about the source of an application.

type ApplicationSpec

type ApplicationSpec struct {
	// Source is a reference to the location of the application's manifests or chart.
	Source  *ApplicationSource  `json:"source,omitempty"`
	Sources []ApplicationSource `json:"sources,omitempty"`
}

ApplicationSpec represents desired application state. Contains link to repository with application definition.

type RepoCreds

type RepoCreds struct {
	// URL is the URL that this credential matches to.
	URL string `json:"url"`
}

RepoCreds holds the definition for repository credentials. This has been partially copied from upstream.

https://github.com/argoproj/argo-cd/blob/v2.11.0/pkg/apis/application/v1alpha1/repository_types.go

There were errors encountered when trying to import argocd as a Go package.

For more information: https://argo-cd.readthedocs.io/en/stable/user-guide/import/

Jump to

Keyboard shortcuts

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