aks

package
v0.0.0-...-a79bcda Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 27 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// AppID is the registered ID of the "Kubeprod Installer" app
	AppID = "2dcc87f0-6e30-4dca-b572-20d971c63a89"
)

Variables

This section is empty.

Functions

func NewAuthorizerFromCli

func NewAuthorizerFromCli(resource, tenantID string) (autorest.Authorizer, error)

NewAuthorizerFromCli snarfs credentials from azure-cli's stored credentials. These have a short (~1h?) expiry.

Types

type AKSConfig

type AKSConfig struct {

	// TODO: Promote this to a proper (versioned) k8s Object
	DnsZone      string                 `json:"dnsZone"`
	ContactEmail string                 `json:"contactEmail"`
	ExternalDNS  ExternalDnsAzureConfig `json:"externalDns"`
	OauthProxy   OauthProxyConfig       `json:"oauthProxy"`
	// contains filtered or unexported fields
}

Local config required for AKS platforms

func (*AKSConfig) Generate

func (conf *AKSConfig) Generate(ctx context.Context) error

type ExternalDnsAzureConfig

type ExternalDnsAzureConfig struct {
	TenantID        string `json:"tenantId"`
	SubscriptionID  string `json:"subscriptionId"`
	AADClientID     string `json:"aadClientId"`
	AADClientSecret string `json:"aadClientSecret"`
	ResourceGroup   string `json:"resourceGroup"`
}

Structure of `azure.json` required by external-dns

type LoggingInspector

type LoggingInspector struct {
	Logger *log.Logger
}

LoggingInspector implements request and response inspectors that log the full request and response to a supplied log.

func (LoggingInspector) ByInspecting

func (li LoggingInspector) ByInspecting() autorest.RespondDecorator

ByInspecting returns a RespondDecorator that emits the http.Response to the supplied logger. The body is restored after being emitted.

Note: Since it reads the entire Body, this decorator should not be used where body streaming is important. It is best used to trace JSON or similar body values.

func (LoggingInspector) WithInspection

func (li LoggingInspector) WithInspection() autorest.PrepareDecorator

WithInspection returns a PrepareDecorator that emits the http.Request to the supplied logger. The body is restored after being emitted.

Note: Since it reads the entire Body, this decorator should not be used where body streaming is important. It is best used to trace JSON or similar body values.

type OauthProxyConfig

type OauthProxyConfig struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	CookieSecret string `json:"cookie_secret"`
	AuthzDomain  string `json:"authz_domain"`
	AzureTenant  string `json:"azure_tenant"`
}

Config options required by oauth2-proxy

Jump to

Keyboard shortcuts

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