texas

package
v0.0.0-...-6bcfac2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnnotationEnable is an opt-in annotation key used to enable Texas sidecar
	// FIXME: remove when Texas is considered stable enough to be enabled by default
	AnnotationEnable = "texas.nais.io/enabled"
)
View Source
const Port = 7164

Variables

This section is empty.

Functions

func Create

func Create(
	source Source,
	ast *resource.Ast,
	cfg Config,
	azureadapplication *nais_io_v1.AzureAdApplication,
	idportenclient *nais_io_v1.IDPortenClient,
	maskinportenclient *nais_io_v1.MaskinportenClient,
	tokenxclient *nais_io_v1.Jwker,
) error

Types

type Config

type Config interface {
	IsTexasEnabled() bool
	GetTexasOptions() config.Texas
	GetObservability() config.Observability
	GetClusterName() string
	GetGoogleProjectID() string
	GetWebProxyOptions() config.Proxy
}

type Provider

type Provider struct {
	// EnableEnvVar is the name of the environment variable that enables the provider in Texas.
	EnableEnvVar string
	SecretName   string
}

func (Provider) EnvVar

func (p Provider) EnvVar() corev1.EnvVar

type Providers

type Providers []Provider

func NewProviders

func NewProviders(
	maskinportenclient *nais_io_v1.MaskinportenClient,
	azureadapplication *nais_io_v1.AzureAdApplication,
	idportenclient *nais_io_v1.IDPortenClient,
	tokenxclient *nais_io_v1.Jwker,
) Providers

func (Providers) EnvFromSources

func (p Providers) EnvFromSources() []corev1.EnvFromSource

func (Providers) EnvVars

func (p Providers) EnvVars() []corev1.EnvVar

type Source

type Source interface {
	resource.Source
}

Jump to

Keyboard shortcuts

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