argocdapp

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create creates an ArgoCD app YAML and applies it.

func Delete

func Delete(options configmanager.RawOptions) (bool, error)

Types

type App

type App struct {
	Name      string `validate:"required,dns1123subdomain"`
	Namespace string
}

App is the struct for an ArgoCD app.

type Destination

type Destination struct {
	Server    string
	Namespace string
}

Destination is the struct for the destination of an ArgoCD app.

type Options

type Options struct {
	App         App
	Destination Destination
	Source      Source
}

Param is the struct for parameters used by the argocdapp package.

func NewOptions added in v0.8.0

func NewOptions(options configmanager.RawOptions) (Options, error)

/ NewOptions create options by raw options

type Source

type Source struct {
	Valuefile string
	Path      string `validate:"required"`
	RepoURL   string `validate:"required"`
}

Source is the struct for the source of an ArgoCD app.

Jump to

Keyboard shortcuts

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