Documentation ¶
Index ¶
- func EnvMapFrom(daemonSet *appsv1.DaemonSet) map[string]string
- func EnvMapFromVars(env []corev1.EnvVar) map[string]string
- type Driver
- func (d *Driver) AssertDaemonSet(name string) *appsv1.DaemonSet
- func (d *Driver) AssertDeployment(name string) *appsv1.Deployment
- func (d *Driver) AssertNoDaemonSet(name string)
- func (d *Driver) AssertNoDeployment(name string)
- func (d *Driver) AssertReconcileError()
- func (d *Driver) AssertReconcileRequeue()
- func (d *Driver) AssertReconcileSuccess()
- func (d *Driver) AssertUninstallInitContainer(template *corev1.PodTemplateSpec, image string) map[string]string
- func (d *Driver) AwaitFinalizer(obj client.Object, finalizer string)
- func (d *Driver) AwaitNoResource(obj client.Object)
- func (d *Driver) BeforeEach()
- func (d *Driver) DeletePods(label, value string)
- func (d *Driver) DoReconcile() (reconcile.Result, error)
- func (d *Driver) GetDaemonSet(name string) (*appsv1.DaemonSet, error)
- func (d *Driver) GetDeployment(name string) (*appsv1.Deployment, error)
- func (d *Driver) JustBeforeEach()
- func (d *Driver) NewClient() client.Client
- func (d *Driver) NewDaemonSet(name string) *appsv1.DaemonSet
- func (d *Driver) NewDeployment(name string) *appsv1.Deployment
- func (d *Driver) NewPodWithLabel(label, value string) *corev1.Pod
- func (d *Driver) UpdateDaemonSetToObserved(daemonSet *appsv1.DaemonSet)
- func (d *Driver) UpdateDaemonSetToReady(daemonSet *appsv1.DaemonSet)
- func (d *Driver) UpdateDaemonSetToScheduled(daemonSet *appsv1.DaemonSet)
- func (d *Driver) UpdateDeploymentToReady(deployment *appsv1.Deployment)
- type FailingClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { InitClientObjs []client.Object Client client.Client Controller reconcile.Reconciler Namespace string ResourceName string }
func (*Driver) AssertDeployment ¶
func (d *Driver) AssertDeployment(name string) *appsv1.Deployment
func (*Driver) AssertNoDaemonSet ¶
func (*Driver) AssertNoDeployment ¶
func (*Driver) AssertReconcileError ¶
func (d *Driver) AssertReconcileError()
func (*Driver) AssertReconcileRequeue ¶
func (d *Driver) AssertReconcileRequeue()
func (*Driver) AssertReconcileSuccess ¶
func (d *Driver) AssertReconcileSuccess()
func (*Driver) AssertUninstallInitContainer ¶
func (*Driver) AwaitFinalizer ¶
func (*Driver) AwaitNoResource ¶ added in v0.13.0
func (*Driver) BeforeEach ¶
func (d *Driver) BeforeEach()
func (*Driver) DeletePods ¶
func (*Driver) GetDeployment ¶
func (d *Driver) GetDeployment(name string) (*appsv1.Deployment, error)
func (*Driver) JustBeforeEach ¶
func (d *Driver) JustBeforeEach()
func (*Driver) NewDeployment ¶
func (d *Driver) NewDeployment(name string) *appsv1.Deployment
func (*Driver) UpdateDaemonSetToObserved ¶
func (*Driver) UpdateDaemonSetToReady ¶
func (*Driver) UpdateDaemonSetToScheduled ¶
func (*Driver) UpdateDeploymentToReady ¶
func (d *Driver) UpdateDeploymentToReady(deployment *appsv1.Deployment)
type FailingClient ¶
type FailingClient struct { controllerClient.Client OnCreate reflect.Type OnGet reflect.Type OnUpdate reflect.Type }
func (*FailingClient) Create ¶
func (c *FailingClient) Create(ctx context.Context, obj controllerClient.Object, opts ...controllerClient.CreateOption) error
func (*FailingClient) Get ¶
func (c *FailingClient) Get(ctx context.Context, key controllerClient.ObjectKey, obj controllerClient.Object) error
func (*FailingClient) Update ¶
func (c *FailingClient) Update(ctx context.Context, obj controllerClient.Object, opts ...controllerClient.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.