Documentation
¶
Index ¶
- Variables
- func GenerateCertificate(ctx context.Context, c client.Client, options ...CertOption) error
- func Install(ctx context.Context, c client.Client, scheme *runtime.Scheme, ...) error
- func Uninstall(ctx context.Context, c client.Client, scheme *runtime.Scheme, ...) error
- type APITypes
- type CertOption
- type Flags
- type InstallOption
- type WithAdditionalDNSNames
- type WithCustomBaseURL
- type WithCustomCA
- type WithManagedLabels
- type WithManagedWebhookService
- type WithRemoteClient
- type WithWebhookSecret
- type WithWebhookService
- type WithWebhookServicePort
Constants ¶
This section is empty.
Variables ¶
View Source
var WithoutCA = withoutCA{}
Functions ¶
func GenerateCertificate ¶
GenerateCertificate
Types ¶
type APITypes ¶ added in v0.24.0
type APITypes struct {
// Obj is the API type object.
Obj client.Object
// Validator indicates whether the type has a validating webhook.
Validator bool
// Defaulter indicates whether the type has a mutating webhook.
Defaulter bool
}
APITypes defines an API type along with whether it has a validator and/or defaulter webhook.
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
}
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
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.