config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 6 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 ACMEServer added in v0.14.0

type ACMEServer struct {
	URL       string
	DNSServer string
	IngressIP string
}

func (*ACMEServer) AddFlags added in v0.14.0

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

func (*ACMEServer) Validate added in v0.14.0

func (p *ACMEServer) 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

	// Connection details for the ACME server used during ACME end-to-end
	// tests.
	ACMEServer ACMEServer

	// IngressController contains configuration for the ingress controller
	// being used during ACME HTTP01 tests.
	IngressController IngressController

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

	// CertManager contains configuration options for the cert-manager
	// deployment under test.
	CertManager CertManager

	DNS01Webhook DNS01Webhook
}

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 CertManager added in v0.14.0

type CertManager struct {
	// The --cluster-resource-namespace configured for the cert-manager
	// installation
	ClusterResourceNamespace string

	// ServiceAccountName is the name of the Kubernetes ServiceAccount that the
	// cert-manager-controller deployment is using.
	ServiceAccountName string
}

func (*CertManager) AddFlags added in v0.14.0

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

func (*CertManager) Validate added in v0.14.0

func (c *CertManager) 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
	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 DNS01Webhook added in v0.14.0

type DNS01Webhook struct {
	// GroupName of the deployed DNS01 webhook
	GroupName string

	// SolverName to use with the DNS01 webhook
	SolverName string
}

func (*DNS01Webhook) AddFlags added in v0.14.0

func (d *DNS01Webhook) AddFlags(fs *flag.FlagSet)

func (*DNS01Webhook) Validate added in v0.14.0

func (n *DNS01Webhook) 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 IngressController added in v0.14.0

type IngressController struct {
	// 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 of the ingress controller's Service resource.
	Domain string

	// IngressClass of the ingress controller under test, used for the HTTP01
	// ACME validation tests.
	IngressClass string
}

func (*IngressController) AddFlags added in v0.14.0

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

func (*IngressController) Validate added in v0.14.0

func (n *IngressController) 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
	Cloud VenafiCloudConfiguration
}

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 VenafiCloudConfiguration added in v1.1.0

type VenafiCloudConfiguration struct {
	Zone     string
	APIToken string
}

func (*VenafiCloudConfiguration) AddFlags added in v1.1.0

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

func (*VenafiCloudConfiguration) Validate added in v1.1.0

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

type VenafiTPPConfiguration added in v0.7.0

type VenafiTPPConfiguration struct {
	URL         string
	Zone        string
	Username    string
	Password    string
	AccessToken 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

Jump to

Keyboard shortcuts

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