hooks

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 16 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 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 added in v0.29.0

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 NewPodMutationHook

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

NewPodMutationHook creates a new instance of pods mutation hook.

func NewRepositorySecretMutationHook added in v0.34.0

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 added in v0.34.0

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

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/

Jump to

Keyboard shortcuts

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