istio: Index | Files

package controller

import ""

Package controller implements a k8s controller for managing the lifecycle of a validating webhook.


Package Files

controller.go monitoring.go


const QuitSignal = "unblock client on queue.Get return and exit the current go routine"

type Controller Uses

type Controller struct {
    // contains filtered or unexported fields

func New Uses

func New(o Options, client kube.Client) (*Controller, error)

func (*Controller) Start Uses

func (c *Controller) Start(stop <-chan struct{})

type Options Uses

type Options struct {
    // Istio system namespace where istiod resides.
    WatchedNamespace string

    // Periodically resync with the kube-apiserver. Set to zero to disable.
    ResyncPeriod time.Duration

    // File path to the x509 certificate bundle used by the webhook server
    // and patched into the webhook config.
    CAPath string

    // Name of the k8s validatingwebhookconfiguration resource. This should
    // match the name in the config template.
    WebhookConfigName string

    // Name of the service running the webhook server.
    ServiceName string

    // RemoteWebhookConfig defines whether the webhook config is coming from remote cluster
    RemoteWebhookConfig bool

func (Options) String Uses

func (o Options) String() string

String produces a stringified version of the arguments for debugging.

func (Options) Validate Uses

func (o Options) Validate() error

Validate the options that exposed to end users

Package controller imports 36 packages (graph) and is imported by 4 packages. Updated 2020-11-22. Refresh now. Tools for package owners.