Documentation ¶
Index ¶
- Constants
- func AddHook(hook logrus.Hook)
- func EnableMetrics(updateFrequency time.Duration)
- func GetLevel() logrus.Level
- func SetFormatter(formatter logrus.Formatter)
- func SetLevel(level logrus.Level)
- func SetOutput(out io.Writer)
- func SetRepairBackoff(delay time.Duration, jitter float64, steps uint)
- func SetTagLimit(limit int)
- func SetVersion(version string)
- func TransportLogger() *logrus.Logger
- type Controller
- type Option
Constants ¶
const ( // IngressClassDefault defines the default class of ingresses managed by the controller IngressClassDefault = "argo-tunnel" // ResyncPeriodDefault defines the default duration prior to synchronization ResyncPeriodDefault = 5 * time.Minute // RequeueLimitDefault defines the default processing attempts before dropping the item RequeueLimitDefault = 2 // WorkersDefault defines the default number of workers processing items from the queue WorkersDefault = 2 )
const ( // RepairDelayDefault the default base time to wait between repairs RepairDelayDefault = 100 * time.Millisecond // RepairJitterDefault the default linear jitter applied to the wait on repair RepairJitterDefault = 0.5 // RepairStepsDefault the default exponential steps used during repair RepairStepsDefault = 4 // TagLimitDefault the default number of unique tags TagLimitDefault = 32 )
Variables ¶
This section is empty.
Functions ¶
func EnableMetrics ¶
EnableMetrics configures the metrics used by all tunnels
func SetFormatter ¶
SetFormatter sets the standard logger formatter.
func SetRepairBackoff ¶
SetRepairBackoff configures the repair backoff used by all tunnels
func SetVersion ¶
func SetVersion(version string)
SetVersion configures the version used by all tunnels
func TransportLogger ¶
TransportLogger returns the proto logger
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller translates kubernetes events into tunnels.
func NewController ¶
func NewController(client kubernetes.Interface, log *logrus.Logger, options ...Option) *Controller
NewController create a new controller
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{}) (err error)
Run starts processing
type Option ¶
type Option func(*options)
Option provides behavior overrides
func IngressClass ¶
IngressClass defines the ingress class for the controller
func RequeueLimit ¶
RequeueLimit defines the processing attempts before dropping the item
func ResyncPeriod ¶
ResyncPeriod defines the duration prior to synchronization
func SecretGroups ¶
func SecretGroups(v cloudflare.OriginSecrets) Option
SecretGroups maps secrets used by specific origin tunnels
func WatchNamespace ¶
WatchNamespace restricts Ingress, Secret, and Service monitoring