config

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 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 ACME

type ACME struct {
	Cloudflare Cloudflare
}

func (*ACME) AddFlags

func (c *ACME) AddFlags(fs *flag.FlagSet)

func (*ACME) Validate

func (c *ACME) Validate() []error

type Addons

type Addons struct {
	// Tiller describes the global configuration values for the tiller addon
	Tiller Tiller

	// Helm describes the global configuration values for helm
	Helm Helm

	// Pebble describes the global configuration values for the pebble addon
	Pebble Pebble

	// Nginx describes global configuration variables for the nginx addon.
	// Because we currently can only run one instance of nginx per cluster due
	// to the way we provision DNS, this structure currently also describes
	// the runtime configuration for a global shared Nginx instance as well.
	Nginx Nginx

	// Venafi describes global configuration variables for the Venafi tests.
	// This includes credentials for the Venafi TPP server to use during runs.
	Venafi Venafi
}

Addons contains global configuration for instances of addons

func (*Addons) AddFlags

func (a *Addons) AddFlags(fs *flag.FlagSet)

func (*Addons) Validate

func (c *Addons) Validate() []error

type Cloudflare

type Cloudflare struct {
	Domain string
	Email  string
	APIKey string
}

func (*Cloudflare) AddFlags

func (c *Cloudflare) AddFlags(fs *flag.FlagSet)

type Config

type Config struct {
	KubeConfig  string
	KubeContext string
	Kubectl     string

	// If Cleanup is true, addons will be cleaned up both before and after provisioning
	Cleanup bool

	// RepoRoot is used as the base path for any parts of the framework that
	// require access to repo files, such as Helm charts and test fixtures.
	RepoRoot string

	Ginkgo    Ginkgo
	Framework Framework
	Addons    Addons
	Suite     Suite
}

func (*Config) AddFlags

func (c *Config) AddFlags(fs *flag.FlagSet)

Register flags common to all e2e test suites.

func (*Config) Validate

func (c *Config) Validate() error

type Framework

type Framework struct {
}

func (*Framework) AddFlags

func (f *Framework) AddFlags(fs *flag.FlagSet)

func (*Framework) Validate

func (c *Framework) Validate() []error

type Ginkgo

type Ginkgo struct {
	ReportDirectory string
	ReportPrefix    string
}

func (*Ginkgo) AddFlags

func (g *Ginkgo) AddFlags(fs *flag.FlagSet)

func (*Ginkgo) Validate

func (c *Ginkgo) Validate() []error

type Helm

type Helm struct {
	// Path to the Helm binary to use during tests
	Path string
}

func (*Helm) AddFlags

func (n *Helm) AddFlags(fs *flag.FlagSet)

func (*Helm) Validate

func (n *Helm) Validate() []error

type Nginx

type Nginx struct {
	// Helm chart version to deploy during tests
	ChartVersion string

	Global NginxRuntimeConfig
}

func (*Nginx) AddFlags

func (n *Nginx) AddFlags(fs *flag.FlagSet)

func (*Nginx) Validate

func (n *Nginx) Validate() []error

type NginxRuntimeConfig

type NginxRuntimeConfig struct {
	// IPAddress is the IP address that the nginx-ingress service will be
	// exposed on.
	// This must be a part of the service CIDR, and must not already be allocated
	// else provisioning will fail.
	IPAddress string

	// Domain is a domain name that can be used during e2e tests.
	// This domain should have records for *.example.com and example.com pointing
	// to the IP listed above.
	Domain string
}

NginxRuntimeConfig is a copy of the runtime configuration for an instance of the nginx addon. It is copied to avoid dependency cycle issues, as the nginx addon depends upon this package for global configuration.

func (*NginxRuntimeConfig) AddFlags

func (n *NginxRuntimeConfig) AddFlags(fs *flag.FlagSet)

func (*NginxRuntimeConfig) Validate

func (n *NginxRuntimeConfig) Validate() []error

type Pebble

type Pebble struct {
}

Pebble global configuration for new Pebble instances

func (*Pebble) AddFlags

func (p *Pebble) AddFlags(fs *flag.FlagSet)

func (*Pebble) Validate

func (p *Pebble) Validate() []error

type Suite

type Suite struct {
	ACME ACME
}

func (*Suite) AddFlags

func (f *Suite) AddFlags(fs *flag.FlagSet)

func (*Suite) Validate

func (c *Suite) Validate() []error

type Tiller

type Tiller struct {
	// Tiller image repo to use when deploying
	ImageRepo string

	// Tiller image tag to use when deploying
	ImageTag string
}

func (*Tiller) AddFlags

func (n *Tiller) AddFlags(fs *flag.FlagSet)

func (*Tiller) Validate

func (n *Tiller) Validate() []error

type Venafi added in v0.7.0

type Venafi struct {
	TPP VenafiTPPConfiguration
}

Venafi global configuration for Venafi TPP/Cloud instances

func (*Venafi) AddFlags added in v0.7.0

func (v *Venafi) AddFlags(fs *flag.FlagSet)

func (*Venafi) Validate added in v0.7.0

func (v *Venafi) Validate() []error

type VenafiTPPConfiguration added in v0.7.0

type VenafiTPPConfiguration struct {
	URL      string
	Zone     string
	Username string
	Password string
}

func (*VenafiTPPConfiguration) AddFlags added in v0.7.0

func (v *VenafiTPPConfiguration) AddFlags(fs *flag.FlagSet)

func (*VenafiTPPConfiguration) Validate added in v0.7.0

func (v *VenafiTPPConfiguration) Validate() []error

TODO: make missing venafi vars not fail validation (i.e. skip venafi tests)

Jump to

Keyboard shortcuts

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