options

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

View Source
const (
	AppName = "kube-oidc-proxy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditOptions added in v0.3.0

type AuditOptions struct {
	*apiserveroptions.AuditOptions
}

func NewAuditOptions added in v0.3.0

func NewAuditOptions(nfs *cliflag.NamedFlagSets) *AuditOptions

func (*AuditOptions) AddFlags added in v0.3.0

func (a *AuditOptions) AddFlags(fs *pflag.FlagSet) *AuditOptions

type ClientOptions

type ClientOptions struct {
	*genericclioptions.ConfigFlags
}

func NewClientOptions added in v0.3.0

func NewClientOptions(nfs *cliflag.NamedFlagSets) *ClientOptions

func (*ClientOptions) AddFlags

func (c *ClientOptions) AddFlags(fs *pflag.FlagSet) *ClientOptions

func (*ClientOptions) ClientFlagsChanged

func (c *ClientOptions) ClientFlagsChanged(cmd *cobra.Command) bool

type ExtraHeaderOptions added in v0.3.0

type ExtraHeaderOptions struct {
	EnableClientIPExtraUserHeader bool

	ExtraUserHeaders map[string][]string
}

func (*ExtraHeaderOptions) AddFlags added in v0.3.0

func (e *ExtraHeaderOptions) AddFlags(fs *pflag.FlagSet)

type KubeOIDCProxyOptions

type KubeOIDCProxyOptions struct {
	DisableImpersonation bool
	ReadinessProbePort   int

	FlushInterval time.Duration

	ExtraHeaderOptions ExtraHeaderOptions
	TokenPassthrough   TokenPassthroughOptions
}

func NewKubeOIDCProxyOptions added in v0.3.0

func NewKubeOIDCProxyOptions(nfs *cliflag.NamedFlagSets) *KubeOIDCProxyOptions

func (*KubeOIDCProxyOptions) AddFlags

type MiscOptions added in v0.3.0

type MiscOptions struct {
	// contains filtered or unexported fields
}

func NewMiscOptions added in v0.3.0

func NewMiscOptions(nfs *cliflag.NamedFlagSets) *MiscOptions

func (*MiscOptions) AddFlags added in v0.3.0

func (m *MiscOptions) AddFlags(fs *pflag.FlagSet) *MiscOptions

func (*MiscOptions) PrintVersionAndExit added in v0.3.0

func (m *MiscOptions) PrintVersionAndExit()

type OIDCAuthenticationOptions

type OIDCAuthenticationOptions struct {
	CAFile         string
	ClientID       string
	IssuerURL      string
	UsernameClaim  string
	UsernamePrefix string
	GroupsClaim    string
	GroupsPrefix   string
	SigningAlgs    []string
	RequiredClaims map[string]string
}

func NewOIDCAuthenticationOptions added in v0.3.0

func NewOIDCAuthenticationOptions(nfs *cliflag.NamedFlagSets) *OIDCAuthenticationOptions

func (*OIDCAuthenticationOptions) AddFlags

func (*OIDCAuthenticationOptions) Validate

func (o *OIDCAuthenticationOptions) Validate() error

type Options added in v0.3.0

type Options struct {
	App                *KubeOIDCProxyOptions
	OIDCAuthentication *OIDCAuthenticationOptions
	SecureServing      *SecureServingOptions
	Audit              *AuditOptions
	Client             *ClientOptions
	Misc               *MiscOptions
	// contains filtered or unexported fields
}

func New added in v0.3.0

func New() *Options

func (*Options) AddFlags added in v0.3.0

func (o *Options) AddFlags(cmd *cobra.Command)

func (*Options) Validate added in v0.3.0

func (o *Options) Validate(cmd *cobra.Command) error

type SecureServingOptions added in v0.3.0

type SecureServingOptions struct {
	*apiserveroptions.SecureServingOptions
}

func NewSecureServingOptions added in v0.3.0

func NewSecureServingOptions(nfs *cliflag.NamedFlagSets) *SecureServingOptions

func (*SecureServingOptions) AddFlags added in v0.3.0

type TokenPassthroughOptions

type TokenPassthroughOptions struct {
	Audiences []string
	Enabled   bool
}

func (*TokenPassthroughOptions) AddFlags

func (t *TokenPassthroughOptions) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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