config

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package config manages configuration of the whole application.

Index

Constants

View Source
const (
	AnnotationIngressClassKey        = "kubernetes.io/ingress.class"
	AnnotationManagedCertificatesKey = "networking.gke.io/managed-certificates"
	AnnotationPreSharedCertKey       = "ingress.gcp.kubernetes.io/pre-shared-cert"
	SslCertificateNamePrefix         = "mcrt-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// CertificateStatus holds mappings of SslCertificate statuses to ManagedCertificate statuses
	CertificateStatus certificateStatusConfig
	// Compute is GCP-specific configuration
	Compute computeConfig
	// MasterElection holds configuration settings needed for electing master
	MasterElection masterElectionConfig
	// SslCertificateNamePrefix is a prefix prepended to SslCertificate resources created by the controller
	SslCertificateNamePrefix string
}

func New

func New(ctx context.Context, gceConfigFilePath, gceServiceAccount string) (*Config, error)

func NewFake added in v1.0.0

func NewFake() *Config

Jump to

Keyboard shortcuts

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