cert-manager: github.com/jetstack/cert-manager/pkg/webhook/server Index | Files | Directories

package server

import "github.com/jetstack/cert-manager/pkg/webhook/server"

Index

Package Files

server.go

type Server Uses

type Server struct {
    // ListenAddr is the address the HTTP server should listen on
    // This must be specified.
    ListenAddr string

    // HealthzAddr is the address the healthz HTTP server should listen on
    // If not specified, the healthz endpoint will not be exposed.
    HealthzAddr string

    // EnablePprof controls whether net/http/pprof handlers are registered with
    // the HTTP listener.
    EnablePprof bool

    // Scheme is used to decode/encode request/response payloads.
    // If not specified, a default scheme that registers the AdmissionReview
    // and ConversionReview resource types will be used.
    // It is not used for performing validation, mutation or conversion.
    Scheme *runtime.Scheme

    // If specified, the server will listen with TLS using certificates
    // provided by this CertificateSource.
    CertificateSource servertls.CertificateSource

    ValidationWebhook handlers.ValidatingAdmissionHook
    MutationWebhook   handlers.MutatingAdmissionHook
    ConversionWebhook handlers.ConversionHook

    // Log is an optional logger to write informational and error messages to.
    // If not specified, no messages will be logged.
    Log logr.Logger

    // CipherSuites is the list of allowed cipher suites for the server.
    // Values are from tls package constants (https://golang.org/pkg/crypto/tls/#pkg-constants).
    CipherSuites []string

    // MinTLSVersion is the minimum TLS version supported.
    // Values are from tls package constants (https://golang.org/pkg/crypto/tls/#pkg-constants).
    MinTLSVersion string
    // contains filtered or unexported fields
}

func (*Server) Port Uses

func (s *Server) Port() (int, error)

Port returns the port number that the webhook listener is listening on

func (*Server) Run Uses

func (s *Server) Run(stopCh <-chan struct{}) error

Directories

PathSynopsis
tls

Package server imports 20 packages (graph) and is imported by 1 packages. Updated 2020-08-05. Refresh now. Tools for package owners.