Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WardenOpts = NewWardenOptions() Flags = []cli.Flag{ &cli.BoolFlag{ Name: "in-member-cluster", Value: true, Destination: &WardenOpts.GenericWardenOpts.InMemberCluster, }, &cli.BoolFlag{ Name: "is-cluster-writable", Value: true, Destination: &WardenOpts.GenericWardenOpts.IsWritable, }, &cli.StringFlag{ Name: "local-cluster-kubeconfig", Destination: &WardenOpts.GenericWardenOpts.LocalClusterKubeConfig, }, &cli.StringFlag{ Name: "pivot-cluster-kubeconfig", Destination: &WardenOpts.GenericWardenOpts.PivotClusterKubeConfig, }, &cli.StringFlag{ Name: "cluster", Destination: &WardenOpts.GenericWardenOpts.Cluster, }, &cli.StringFlag{ Name: "addr", Value: "0.0.0.0", Destination: &WardenOpts.GenericWardenOpts.Addr, }, &cli.IntFlag{ Name: "port", Value: 7443, Destination: &WardenOpts.GenericWardenOpts.Port, }, &cli.StringFlag{ Name: "tls-cert", Destination: &WardenOpts.GenericWardenOpts.TlsCert, }, &cli.StringFlag{ Name: "tls-key", Destination: &WardenOpts.GenericWardenOpts.TlsKey, }, &cli.StringFlag{ Name: "pivot-cube-host", Destination: &WardenOpts.GenericWardenOpts.PivotCubeHost, }, &cli.IntFlag{ Name: "period-second", Value: 3, Destination: &WardenOpts.GenericWardenOpts.PeriodSecond, }, &cli.IntFlag{ Name: "wait-second", Value: 7, Destination: &WardenOpts.GenericWardenOpts.WaitSecond, }, &cli.BoolFlag{ Name: "leader-elect", Value: false, Destination: &WardenOpts.GenericWardenOpts.LeaderElect, }, &cli.StringFlag{ Name: "webhook-cert", Value: "/etc/tls", Destination: &WardenOpts.GenericWardenOpts.WebhookCert, }, &cli.IntFlag{ Name: "webhook-server-port", Value: 8443, Destination: &WardenOpts.GenericWardenOpts.WebhookServerPort, }, &cli.BoolFlag{ Name: "allow-privileged", Value: true, Destination: &WardenOpts.GenericWardenOpts.AllowPrivileged, }, &cli.StringFlag{ Name: "log-file", Value: "/etc/logs/warden.log", Destination: &WardenOpts.CubeLoggerOpts.LogFile, }, &cli.IntFlag{ Name: "max-size", Value: 1000, Destination: &WardenOpts.CubeLoggerOpts.MaxSize, }, &cli.IntFlag{ Name: "max-backups", Value: 7, Destination: &WardenOpts.CubeLoggerOpts.MaxBackups, }, &cli.IntFlag{ Name: "max-age", Value: 1, Destination: &WardenOpts.CubeLoggerOpts.MaxAge, }, &cli.BoolFlag{ Name: "compress", Value: true, Destination: &WardenOpts.CubeLoggerOpts.Compress, }, &cli.StringFlag{ Name: "log-level", Value: "info", Destination: &WardenOpts.CubeLoggerOpts.LogLevel, }, &cli.BoolFlag{ Name: "json-encode", Value: false, Destination: &WardenOpts.CubeLoggerOpts.JsonEncode, }, &cli.StringFlag{ Name: "stacktrace-level", Value: "error", Destination: &WardenOpts.CubeLoggerOpts.StacktraceLevel, }, &cli.StringFlag{ Name: "ingress-nginx-namespace", Value: "ingress-nginx", Destination: &WardenOpts.GenericWardenOpts.NginxNamespace, }, &cli.StringFlag{ Name: "ingress-nginx-tcp-configmap", Value: "tcp-services", Destination: &WardenOpts.GenericWardenOpts.NginxTcpServiceConfigMap, }, &cli.StringFlag{ Name: "ingress-nginx-udp-configmap", Value: "udp-services", Destination: &WardenOpts.GenericWardenOpts.NginxUdpServiceConfigMap, }, } )
Functions ¶
This section is empty.
Types ¶
type WardenOptions ¶
func NewWardenOptions ¶
func NewWardenOptions() *WardenOptions
func (*WardenOptions) NewWarden ¶
func (s *WardenOptions) NewWarden() *warden.Warden
func (*WardenOptions) Validate ¶
func (s *WardenOptions) Validate() []error
Click to show internal directories.
Click to hide internal directories.