argo

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	TypeMeta   `yaml:",inline"`
	ObjectMeta `yaml:"metadata"`
	Spec       ApplicationSpec `yaml:"spec"`
}

Application is a lightweight struct matching argoproj.io/v1alpha1/Application

func NewApplication

func NewApplication(name string, namespace string, argoNs string, repoUrl string, path string) Application

func (*Application) Render added in v0.3.0

func (app *Application) Render(outfile string) error

type ApplicationSpec

type ApplicationSpec struct {
	Source Source `yaml:"source"`
	// Destination overrides the kubernetes server and namespace defined in the environment ksonnet app.yaml
	Destination Destination `yaml:"destination"`
	Project     string      `yaml:"project"`
	SyncPolicy  SyncPolicy  `yaml:"syncPolicy,omitempty"`
}

type Automated

type Automated struct {
	Prune      bool `yaml:"prune"`
	SelfHeal   bool `yaml:"selfHeal"`
	AllowEmpty bool `yaml:"allowEmpty"`
}

type Backoff

type Backoff struct {
	Duration    time.Duration `yaml:"duration"`
	Factor      int           `yaml:"factor"`
	MaxDuration time.Duration `yaml:"maxDuration"`
}

type Destination

type Destination struct {
	Server    string `yaml:"server"`
	Namespace string `yaml:"namespace"`
}

type ObjectMeta

type ObjectMeta struct {
	Name        string            `yaml:"name,omitempty"`
	Namespace   string            `yaml:"namespace,omitempty"`
	Labels      map[string]string `yaml:"labels,omitempty"`
	Annotations map[string]string `yaml:"annotations,omitempty"`
}

ObjectMeta partially copies apimachinery/pkg/apis/meta/v1.ObjectMeta No need for a direct dependence; the fields are stable.

type Retry

type Retry struct {
	Limit   int     `yaml:"limit"`
	Backoff Backoff `yaml:"backoff"`
}

type Source

type Source struct {
	RepoUrl string `yaml:"repoURL"`
	Path    string `yaml:"path"`
}

type SyncPolicy

type SyncPolicy struct {
	Automated   Automated `yaml:"automated"`
	SyncOptions []string  `yaml:"syncOptions"`
	Retry       Retry     `yaml:"retry"`
}

type TypeMeta

type TypeMeta struct {
	Kind       string `yaml:"kind,omitempty"`
	APIVersion string `yaml:"apiVersion,omitempty"`
}

TypeMeta partially copies apimachinery/pkg/apis/meta/v1.TypeMeta No need for a direct dependence; the fields are stable.

Jump to

Keyboard shortcuts

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