Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
SmeConverterServicePath = "/convert-sme"
)
Functions ¶
Types ¶
type WebhookCleanupRunnable ¶
type WebhookCleanupRunnable struct {
// contains filtered or unexported fields
}
func NewCleanupRunnable ¶
func NewCleanupRunnable(cl client.Client) *WebhookCleanupRunnable
Returns a Runnable that will remove the resources that previous versions of the operator created for webhooks, so that they don't conflict with the new resources that are deployed by OLM.
func (*WebhookCleanupRunnable) Done ¶
func (r *WebhookCleanupRunnable) Done() bool
func (*WebhookCleanupRunnable) NeedLeaderElection ¶
func (r *WebhookCleanupRunnable) NeedLeaderElection() bool
NeedLeaderElection returns false because it needs to run before the operator becomes the leader, since the operator also starts serving webhooks before it becomes the leader. If the webhooks are cleaned up as soon as the operator starts, then the webhook server will log TLS certificate errors because the old certificate is still being used. With NeedLeaderElection being false, if multiple instances of the operator start at the same time, they will all try to delete these resources, but this shouldn't be an issue because the code that deletes them handles conflicts.
func (*WebhookCleanupRunnable) Start ¶
func (r *WebhookCleanupRunnable) Start(_ <-chan struct{}) error