hooks

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 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

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationMutationHook added in v0.29.0

func NewApplicationMutationHook() operations.Hook

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

func NewGitRepositoryMutationHook

func NewGitRepositoryMutationHook() operations.Hook

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

func NewPodMutationHook

func NewPodMutationHook() operations.Hook

NewPodMutationHook creates a new instance of pods mutation hook.

func NewRepositoryMutationHook added in v0.29.0

func NewRepositoryMutationHook() operations.Hook

NewRepositoryMutationHook creates a new instance of the ArgoCD Repository mutation hook.

Types

type ArgoApplication added in v0.29.0

type ArgoApplication struct {
	Spec struct {
		Source  Source   `json:"source"`
		Sources []Source `json:"sources"`
	} `json:"spec"`
}

ArgoApplication represents a subset of the Argo Application object needed for Zarf Git URL mutations

type ArgoRepository added in v0.29.0

type ArgoRepository struct {
	Data struct {
		URL string `json:"url"`
	}
}

ArgoRepository represents a subset of the Argo Repository object needed for Zarf Git URL mutations

type GenericGitRepo

type GenericGitRepo struct {
	Spec struct {
		URL       string    `json:"url"`
		SecretRef SecretRef `json:"secretRef,omitempty"`
	} `json:"spec"`
}

GenericGitRepo contains the URL of a git repo and the secret that corresponds to it for use with Flux.

type SecretRef

type SecretRef struct {
	Name string `json:"name"`
}

SecretRef contains the name used to reference a git repository secret.

type Source added in v0.29.0

type Source struct {
	RepoURL string `json:"repoURL"`
}

Source represents a subset of the Argo Source object needed for Zarf Git URL mutations

Jump to

Keyboard shortcuts

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