webhook

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeprecatedAnnotationDSNExecConfig = "infoblox.com/dsnexec-config-secret"
	DeprecatedAnnotationRemoteDBDSN   = "infoblox.com/remote-db-dsn-secret"
	DeprecatedAnnotationDBSecretPath  = "infoblox.com/db-secret-path"
	DeprecatedAnnotationMessages      = "persistance.atlas.infoblox.com/deprecation-messages"
)
View Source
var (
	MountPathProxy     = "/dbproxy"
	VolumeNameProxy    = "dbproxydsn"
	ContainerNameProxy = "dbproxy"
)
View Source
var (
	// Set to {key}=disabled to disable injection
	LabelCheckProxy         = "persistance.atlas.infoblox.com/dbproxy"
	LabelCheckExec          = "persistance.atlas.infoblox.com/dsnexec"
	LabelConfigExec         = "persistance.atlas.infoblox.com/dsnexec-config"
	LabelClaim              = "persistance.atlas.infoblox.com/claim"
	LabelClass              = "persistance.atlas.infoblox.com/class"
	AnnotationInjectedProxy = "persistance.atlas.infoblox.com/injected-dbproxy"
	AnnotationInjectedExec  = "persistance.atlas.infoblox.com/injected-dsnexec"
	SecretKey               = v1.DSNURIKey
)
View Source
var (
	MountPathExec     = "/var/run/db-dsn"
	VolumeNameExec    = "db-dsn"
	ContainerNameExec = "dsnexec"

	MountPathExecConfig  = "/var/run/dsn-exec"
	VolumeNameExecConfig = "dsnexec-config"
)

Functions

func SetupConversionWebhookWithManager added in v1.10.1

func SetupConversionWebhookWithManager(mgr ctrl.Manager, cfg SetupConfig) error

SetupConversionWebhookWithManager converts db-controller v1 pod annotations to use v1.10 labels. As this needs to work on existing pods, it is not scoped to a single class. Be careful deploying this in a cluster with other conversion webhooks

func SetupWebhookWithManager

func SetupWebhookWithManager(mgr ctrl.Manager, cfg SetupConfig) error

Types

type SetupConfig

type SetupConfig struct {
	Namespace  string
	Class      string
	DBProxyImg string
	DSNExecImg string
}

Jump to

Keyboard shortcuts

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