webhooks

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithoutCA = withoutCA{}

Functions

func GenerateCertificate

func GenerateCertificate(ctx context.Context, c client.Client, options ...CertOption) error

GenerateCertificate

func Install

func Install(
	ctx context.Context,
	c client.Client,
	scheme *runtime.Scheme,
	apiTypes []client.Object,
	options ...InstallOption,
) error

func Uninstall added in v0.23.3

func Uninstall(
	ctx context.Context,
	c client.Client,
	scheme *runtime.Scheme,
	apiTypes []client.Object,
	options ...InstallOption,
) error

Types

type CertOption added in v0.23.3

type CertOption interface {
	ApplyToCertOptions(o *certOptions)
}

type Flags

type Flags struct {
	Install        bool
	InstallOptions []InstallOption
	CertOptions    []CertOption
	BindHost       string
	BindPort       int
}

func BindFlags

func BindFlags(fs *flag.FlagSet) *Flags

type InstallOption added in v0.23.3

type InstallOption interface {
	ApplyToInstallOptions(o *installOptions)
}

type WithAdditionalDNSNames

type WithAdditionalDNSNames []string

func (WithAdditionalDNSNames) ApplyToCertOptions

func (opt WithAdditionalDNSNames) ApplyToCertOptions(o *certOptions)

type WithCustomBaseURL

type WithCustomBaseURL string

func (WithCustomBaseURL) ApplyToInstallOptions

func (opt WithCustomBaseURL) ApplyToInstallOptions(o *installOptions)

type WithCustomCA

type WithCustomCA []byte

func (WithCustomCA) ApplyToInstallOptions

func (opt WithCustomCA) ApplyToInstallOptions(o *installOptions)

type WithManagedLabels added in v0.23.3

type WithManagedLabels map[string]string

WithManagedLabels specifies labels which should be added to resources created by this library.

func (WithManagedLabels) ApplyToInstallOptions added in v0.23.3

func (opt WithManagedLabels) ApplyToInstallOptions(o *installOptions)

type WithManagedWebhookService added in v0.23.3

type WithManagedWebhookService struct {
	TargetPort     intstr.IntOrString
	SelectorLabels map[string]string
}

WithManagedWebhookService allows to have the webhook service created and managed by this library.

func (WithManagedWebhookService) ApplyToInstallOptions added in v0.23.3

func (opt WithManagedWebhookService) ApplyToInstallOptions(o *installOptions)

type WithRemoteClient

type WithRemoteClient struct {
	Client client.Client
}

func (WithRemoteClient) ApplyToInstallOptions

func (opt WithRemoteClient) ApplyToInstallOptions(o *installOptions)

type WithWebhookSecret

type WithWebhookSecret types.NamespacedName

func (WithWebhookSecret) ApplyToCertOptions

func (opt WithWebhookSecret) ApplyToCertOptions(o *certOptions)

func (WithWebhookSecret) ApplyToInstallOptions

func (opt WithWebhookSecret) ApplyToInstallOptions(o *installOptions)

type WithWebhookService

type WithWebhookService types.NamespacedName

func (WithWebhookService) ApplyToCertOptions

func (opt WithWebhookService) ApplyToCertOptions(o *certOptions)

func (WithWebhookService) ApplyToInstallOptions

func (opt WithWebhookService) ApplyToInstallOptions(o *installOptions)

type WithWebhookServicePort

type WithWebhookServicePort int32

func (WithWebhookServicePort) ApplyToInstallOptions

func (opt WithWebhookServicePort) ApplyToInstallOptions(o *installOptions)

Jump to

Keyboard shortcuts

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