Documentation ¶
Overview ¶
Package controller implement the command used to start the operator
Index ¶
Constants ¶
View Source
const ( // WebhookSecretName is the name of the secret where the certificates // for the webhook server are stored WebhookSecretName = "cnpg-webhook-cert" // #nosec // WebhookServiceName is the name of the service where the webhook server // is reachable WebhookServiceName = "cnpg-webhook-service" // #nosec // MutatingWebhookConfigurationName is the name of the mutating webhook configuration MutatingWebhookConfigurationName = "cnpg-mutating-webhook-configuration" // ValidatingWebhookConfigurationName is the name of the validating webhook configuration ValidatingWebhookConfigurationName = "cnpg-validating-webhook-configuration" // LeaderElectionID The operator Leader Election ID LeaderElectionID = "db9c8771.cnpg.io" // CaSecretName is the name of the secret which is hosting the Operator CA CaSecretName = "cnpg-ca-secret" // #nosec )
Variables ¶
This section is empty.
Functions ¶
func RunController ¶
func RunController( metricsAddr, configMapName, secretName string, leaderConfig leaderElectionConfiguration, pprofDebug bool, port int, ) error
RunController is the main procedure of the operator, and is used as the controller-manager of the operator and as the controller of a certain PostgreSQL instance.
This code really belongs to app/controller_manager.go but we can't put it here to respect the project layout created by kubebuilder.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.