crdwait

package
v0.0.0-...-9331f55 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package crdwait provides an API to wait for CRDs to be available in a kubernetes api-server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDWaiter

type CRDWaiter struct {
	Ctx          context.Context
	ClientSet    kubernetes.Interface
	APIReader    client.Reader
	Logger       logr.Logger
	Scheme       *runtime.Scheme
	PollInterval time.Duration
	PollTimeout  time.Duration
	// contains filtered or unexported fields
}

CRDWaiter waits for api-resources and emits logs and events for missing resources

func (*CRDWaiter) WaitForCRDs

func (c *CRDWaiter) WaitForCRDs(crds map[schema.GroupVersion]*sets.String, object runtime.Object, controllerName string) error

WaitForCRDs checks if CRDs are available by polling for resources.

Jump to

Keyboard shortcuts

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