config

package
v1.12.11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 9 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

type ACMEServer struct {
	URL                         string
	DNSServer                   string
	IngressIP                   string
	GatewayIP                   string
	InvalidACMEURL              string
	TestingACMEEmail            string
	TestingACMEEmailAlternative string
	TestingACMEPrivateKey       string
}

func (*ACMEServer) AddFlags

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

func (*ACMEServer) Validate

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

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

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

func (*CertManager) Validate

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

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

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

func (*DNS01Webhook) AddFlags

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

func (*DNS01Webhook) Validate

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

type Gateway

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

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

func (*Gateway) Validate

func (g *Gateway) Validate() []error

type Ginkgo

type Ginkgo struct {
	ReportDirectory 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

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

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

func (*IngressController) Validate

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

type Venafi struct {
	TPP   VenafiTPPConfiguration
	Cloud VenafiCloudConfiguration
}

Venafi global configuration for Venafi TPP/Cloud instances

func (*Venafi) AddFlags

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

func (*Venafi) Validate

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

type VenafiCloudConfiguration

type VenafiCloudConfiguration struct {
	Zone     string
	APIToken string
}

func (*VenafiCloudConfiguration) AddFlags

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

func (*VenafiCloudConfiguration) Validate

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

type VenafiTPPConfiguration

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

func (*VenafiTPPConfiguration) AddFlags

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

func (*VenafiTPPConfiguration) Validate

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

Jump to

Keyboard shortcuts

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