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 contains the mutation hooks for the Zarf agent.
Package hooks provides HTTP handlers for the mutating webhook.
Index ¶
- Constants
- func NewAppProjectMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- func NewApplicationMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- func NewGitRepositoryMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- func NewHelmRepositoryMutationHook(ctx context.Context, cluster *cluster.Cluster) operations.Hook
- func NewOCIRepositoryMutationHook(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 AppProject
- type AppProjectSpec
- 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 NewAppProjectMutationHook ¶ added in v0.58.0
NewAppProjectMutationHook creates a new mutation hook for ArgoCD AppProjects.
func NewApplicationMutationHook ¶
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 NewHelmRepositoryMutationHook ¶
NewHelmRepositoryMutationHook creates a new instance of the helm repo mutation hook.
func NewOCIRepositoryMutationHook ¶
NewOCIRepositoryMutationHook creates a new instance of the oci repo mutation hook.
func NewPodMutationHook ¶
NewPodMutationHook creates a new instance of pods mutation hook.
func NewRepositorySecretMutationHook ¶
NewRepositorySecretMutationHook creates a new instance of the ArgoCD repository secret mutation hook.
Types ¶
type AppProject ¶ added in v0.58.0
type AppProject struct {
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
Spec AppProjectSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
}
AppProject is a definition of an ArgoCD AppProject resource. The ArgoCD AppProject structs in this file have been partially copied from upstream. https://github.com/argoproj/argo-cd/blob/v2.11.0/pkg/apis/application/v1alpha1/app_project_types.go
type AppProjectSpec ¶ added in v0.58.0
type AppProjectSpec struct {
// SourceRepos contains list of repository URLs which can be used for deployment
SourceRepos []string `json:"sourceRepos,omitempty" protobuf:"bytes,1,name=sourceRepos"`
}
AppProjectSpec is the specification of an AppProject The ArgoCD AppProjectSpec struct 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
type Application ¶
type Application struct {
Spec ApplicationSpec `json:"spec"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}
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/