helmrelease

package
v0.0.0-...-4e27ce1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidFlags

func IsInvalidFlags(err error) bool

IsInvalidFlags asserts invalidFlagsError.

Types

type Chart

type Chart struct {
	Git  string `yaml:"git"`
	Path string `yaml:"path"`
	Ref  string `yaml:"ref"`
}

type Command

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

func New

func New(config Config) (*Command, error)

New creates a new configured draughtsman command.

func (*Command) CobraCommand

func (c *Command) CobraCommand() *cobra.Command

func (*Command) Execute

func (c *Command) Execute(cmd *cobra.Command, args []string)

type Config

type Config struct {
	// Dependencies.
	Logger micrologger.Logger
}

Config represents the configuration used to create a new draughtsman command.

type Flags

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

Flags represents flags used by command.

func (*Flags) Validate

func (f *Flags) Validate() error

Validate will check flags correctness.

type HelmReleaseCR

type HelmReleaseCR struct {
	ApiVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   Metadata
	Spec       Spec
}

type Image

type Image struct {
	Registry   string `yaml:"registry"`
	Repository string `yaml:"repository"`
	Tag        string `yaml:"tag"`
}

type ImageSpec

type ImageSpec struct {
	Image Image
}

type Metadata

type Metadata struct {
	Name        string            `yaml:"name"`
	Namespace   string            `yaml:"namespace"`
	Annotations map[string]string `yaml:"annotations"`
}

type Spec

type Spec struct {
	ReleaseName string `yaml:"releaseName"`
	Chart       Chart
	Values      map[string]interface{} `yaml:"values"`
}

Jump to

Keyboard shortcuts

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