kongargo

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AddonName indicates the unique name of this addon.
	AddonName clusters.AddonName = "kong-argo"

	// DefaultNamespace indicates the default namespace this addon will be deployed to.
	DefaultNamespace = "kong-argo"
)

Variables

This section is empty.

Functions

func New

func New() clusters.Addon

Types

type Addon

type Addon struct {
	// contains filtered or unexported fields
}

func (*Addon) Delete

func (a *Addon) Delete(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) Dependencies

func (a *Addon) Dependencies(_ context.Context, _ clusters.Cluster) []clusters.AddonName

func (*Addon) Deploy

func (a *Addon) Deploy(ctx context.Context, cluster clusters.Cluster) error

func (*Addon) DumpDiagnostics

func (a *Addon) DumpDiagnostics(context.Context, clusters.Cluster) (map[string][]byte, error)

func (*Addon) Name

func (a *Addon) Name() clusters.AddonName

func (*Addon) Ready

func (a *Addon) Ready(ctx context.Context, cluster clusters.Cluster) ([]runtime.Object, bool, error)

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is a configuration tool to generate ArgoCD cluster addons.

func NewBuilder

func NewBuilder() *Builder

NewBuilder provides a new Builder object for configuring ArgoCD cluster addons.

func (*Builder) Build

func (b *Builder) Build() *Addon

Build generates a new kong cluster.Addon which can be loaded and deployed into a test Environment's cluster.Cluster.

func (*Builder) WithAppName

func (b *Builder) WithAppName(appName string) *Builder

WithAppName sets the addon application name

func (*Builder) WithNamespace

func (b *Builder) WithNamespace(namespace string) *Builder

WithNamespace sets the addon namespace

func (*Builder) WithProject

func (b *Builder) WithProject(project string) *Builder

WithProject sets the addon project

func (*Builder) WithRelease

func (b *Builder) WithRelease(release string) *Builder

WithRelease sets the addon release

func (*Builder) WithVersion

func (b *Builder) WithVersion(version string) *Builder

WithVersion sets the addon version

Jump to

Keyboard shortcuts

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