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 contains the mutation hooks for the Zarf agent.
Package hooks provides HTTP handlers for the mutating webhook.
Index ¶
- Constants
- func NewAppProjectMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- func NewApplicationMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- func NewApplicationSetMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- func NewGitRepositoryMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- func NewHelmRepositoryMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- func NewOCIRepositoryMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- func NewPodMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- func NewRepositorySecretMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
- type AppProject
- type AppProjectSpec
- type Application
- type ApplicationSet
- type ApplicationSetGenerator
- type ApplicationSetSpec
- type ApplicationSource
- type ApplicationSpec
- type GitGenerator
- type RepoCreds
Constants ¶
const ( // AgentErrTransformGitURL is thrown when the agent fails to make the git url a Zarf compatible url AgentErrTransformGitURL = "unable to transform the git url" // AgentErrTransformOCIURL is thrown when the agent fails to make the OCI url a Zarf compatible url AgentErrTransformOCIURL = "unable to transform the OCIRepo URL" )
Variables ¶
This section is empty.
Functions ¶
func NewAppProjectMutationHook ¶ added in v0.58.0
func NewAppProjectMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
NewAppProjectMutationHook creates a new mutation hook for ArgoCD AppProjects.
func NewApplicationMutationHook ¶
func NewApplicationMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
NewApplicationMutationHook creates a new instance of the ArgoCD Application mutation hook.
func NewApplicationSetMutationHook ¶ added in v0.70.0
func NewApplicationSetMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
NewApplicationSetMutationHook creates a new instance of the ArgoCD ApplicationSet mutation hook.
func NewGitRepositoryMutationHook ¶
func NewGitRepositoryMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
NewGitRepositoryMutationHook creates a new instance of the git repo mutation hook.
func NewHelmRepositoryMutationHook ¶
func NewHelmRepositoryMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
NewHelmRepositoryMutationHook creates a new instance of the helm repo mutation hook.
func NewOCIRepositoryMutationHook ¶
func NewOCIRepositoryMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
NewOCIRepositoryMutationHook creates a new instance of the oci repo mutation hook.
func NewPodMutationHook ¶
func NewPodMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
NewPodMutationHook creates a new instance of pods mutation hook.
func NewRepositorySecretMutationHook ¶
func NewRepositorySecretMutationHook(c *cluster.Cluster, mode state.MutationPolicy) operations.Hook
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 ApplicationSet ¶ added in v0.70.0
type ApplicationSet struct {
Spec ApplicationSetSpec `json:"spec"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}
ApplicationSet is a definition of an ArgoCD ApplicationSet resource. The ArgoCD ApplicationSet structs in this file have been partially copied from upstream.
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 ApplicationSetGenerator ¶ added in v0.70.0
type ApplicationSetGenerator struct {
Git *GitGenerator `json:"git,omitempty"`
}
ApplicationSetGenerator represents a generator at the top level of an ApplicationSet.
type ApplicationSetSpec ¶ added in v0.70.0
type ApplicationSetSpec struct {
Generators []ApplicationSetGenerator `json:"generators,omitempty"`
}
ApplicationSetSpec represents a class of application set state.
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 GitGenerator ¶ added in v0.70.0
type GitGenerator struct {
RepoURL string `json:"repoURL"`
}
GitGenerator represents a class of git generator.
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/