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 provides HTTP handlers for the mutating webhook.
Index ¶
- Constants
- func NewApplicationMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- func NewGitRepositoryMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- func NewPodMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- func NewRepositorySecretMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- type Application
- type ApplicationSource
- type ApplicationSpec
- type RepoCreds
Constants ¶
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 ¶ added in v0.29.0
NewApplicationMutationHook creates a new instance of the ArgoCD Application mutation hook.
func NewGitRepositoryMutationHook ¶
NewGitRepositoryMutationHook creates a new instance of the git repo mutation hook.
func NewPodMutationHook ¶
NewPodMutationHook creates a new instance of pods mutation hook.
func NewRepositorySecretMutationHook ¶ added in v0.34.0
NewRepositorySecretMutationHook creates a new instance of the ArgoCD repository secret mutation hook.
Types ¶
type Application ¶ added in v0.34.0
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 ¶ added in v0.34.0
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 ¶ added in v0.34.0
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 ¶ added in v0.34.0
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/