Documentation ¶
Index ¶
Constants ¶
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 ¶ added in v0.1.1
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
type ExternalDnsAzureConfig ¶ added in v0.1.1
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 ¶
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 ¶ added in v0.1.1
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