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 ¶
func (f *FactorySource) Source(eh handler.EventHandler) source.Source
Source returns a source that can be used to trigger a reconciliation.
type RunnableFactory ¶
type RunnableFactory struct {
}RunnableFactory is a wrapper around a DynamicSharedInformerFactory to implement the Runnable interface.
Click to show internal directories.
Click to hide internal directories.