Documentation ¶
Index ¶
- type StaticResourceController
- func (c *StaticResourceController) AddInformer(informer cache.SharedIndexInformer) *StaticResourceController
- func (c *StaticResourceController) AddKubeInformers(kubeInformersByNamespace v1helpers.KubeInformersForNamespaces) *StaticResourceController
- func (c *StaticResourceController) AddNamespaceInformer(informer cache.SharedIndexInformer, namespaces ...string) *StaticResourceController
- func (c *StaticResourceController) Name() string
- func (c *StaticResourceController) Run(ctx context.Context, workers int)
- func (c StaticResourceController) Sync(ctx context.Context, syncContext factory.SyncContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticResourceController ¶
type StaticResourceController struct {
// contains filtered or unexported fields
}
func NewStaticResourceController ¶
func NewStaticResourceController( name string, manifests resourceapply.AssetFunc, files []string, clients *resourceapply.ClientHolder, operatorClient v1helpers.OperatorClient, eventRecorder events.Recorder, ) *StaticResourceController
NewStaticResourceController returns a controller that maintains certain static manifests. Most "normal" types are supported, but feel free to add ones we missed. Use .AddInformer(), .AddKubeInformers(), .AddNamespaceInformer or to provide triggering conditions.
func (*StaticResourceController) AddInformer ¶
func (c *StaticResourceController) AddInformer(informer cache.SharedIndexInformer) *StaticResourceController
func (*StaticResourceController) AddKubeInformers ¶
func (c *StaticResourceController) AddKubeInformers(kubeInformersByNamespace v1helpers.KubeInformersForNamespaces) *StaticResourceController
func (*StaticResourceController) AddNamespaceInformer ¶
func (c *StaticResourceController) AddNamespaceInformer(informer cache.SharedIndexInformer, namespaces ...string) *StaticResourceController
func (*StaticResourceController) Name ¶
func (c *StaticResourceController) Name() string
func (*StaticResourceController) Run ¶
func (c *StaticResourceController) Run(ctx context.Context, workers int)
func (StaticResourceController) Sync ¶
func (c StaticResourceController) Sync(ctx context.Context, syncContext factory.SyncContext) error
Click to show internal directories.
Click to hide internal directories.