dynamic

package
v1.0.0-rc.2 Latest Latest
Warning

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

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

Documentation

Overview

Package dynamic contains utilities for working with dynamic client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrPatch

func CreateOrPatch(ctx context.Context, c dynamic.ResourceInterface, objName string,
	mutate func(obj *unstructured.Unstructured) error) (*unstructured.Unstructured, error)

CreateOrPatch creates or patches the object using the dynamic client.

Types

type FactorySource

type FactorySource struct {
	// contains filtered or unexported fields
}

FactorySource is a source that can be used to trigger a reconciliation.

func NewFactorySource

func NewFactorySource(factory *RunnableFactory) *FactorySource

NewFactorySource returns a new FactorySource.

func (*FactorySource) ForResource

func (f *FactorySource) ForResource(gvr schema.GroupVersionResource)

ForResource registers the handler for the given resource.

func (*FactorySource) Source

Source returns a source that can be used to trigger a reconciliation.

type RunnableFactory

type RunnableFactory struct {
	dynamicinformer.DynamicSharedInformerFactory
}

RunnableFactory is a wrapper around a DynamicSharedInformerFactory to implement the Runnable interface.

func (*RunnableFactory) Start

func (r *RunnableFactory) Start(ctx context.Context) error

Start starts the informers.

Jump to

Keyboard shortcuts

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