Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 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
	GatewayIP                   string
	InvalidACMEURL              string
	TestingACMEEmail            string
	TestingACMEEmailAlternative string
	TestingACMEPrivateKey       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 {
	// 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

	// Gateway contains configuration for the Gateway API controller
	// being used during HTTP-01 tests.
	Gateway Gateway

	// 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 (a *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 Gateway added in v1.5.1

type Gateway struct {
	// Domain is a domain name that is used during e2e tests to solve
	// ACME HTTP-01 Challenges.
	// It should have suitable records set that resolve *.<domain> to
	// the IP of the Gateway's Service.
	Domain string

	// Labels is a comma separated list of key=value labels set on the
	// HTTPRoutes created by the Gateway API solver
	Labels string
}

func (*Gateway) AddFlags added in v1.5.1

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

func (*Gateway) Validate added in v1.5.1

func (g *Gateway) 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 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