Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraMetadataPatcher ¶
type ExtraMetadataPatcher struct {
// contains filtered or unexported fields
}
func NewExtraMetadataPatcher ¶
func NewExtraMetadataPatcher(annotations, labels map[string]string) *ExtraMetadataPatcher
func (*ExtraMetadataPatcher) Match ¶
func (p *ExtraMetadataPatcher) Match(ctx context.Context, info *ResourceInfo) (bool, error)
func (*ExtraMetadataPatcher) Patch ¶
func (p *ExtraMetadataPatcher) Patch(ctx context.Context, info *ResourceInfo) (*unstructured.Unstructured, error)
func (*ExtraMetadataPatcher) Type ¶
func (p *ExtraMetadataPatcher) Type() Type
type ReleaseMetadataPatcher ¶
type ReleaseMetadataPatcher struct {
// contains filtered or unexported fields
}
func NewReleaseMetadataPatcher ¶
func NewReleaseMetadataPatcher(releaseName, releaseNamespace string) *ReleaseMetadataPatcher
func (*ReleaseMetadataPatcher) Match ¶
func (p *ReleaseMetadataPatcher) Match(ctx context.Context, info *ResourceInfo) (bool, error)
func (*ReleaseMetadataPatcher) Patch ¶
func (p *ReleaseMetadataPatcher) Patch(ctx context.Context, info *ResourceInfo) (*unstructured.Unstructured, error)
func (*ReleaseMetadataPatcher) Type ¶
func (p *ReleaseMetadataPatcher) Type() Type
type ResourceInfo ¶
type ResourceInfo struct {
Obj *unstructured.Unstructured
Type resrc.Type
ManageableBy resrc.ManageableBy
}
type ResourcePatcher ¶
type ResourcePatcher interface {
Match(ctx context.Context, resourceInfo *ResourceInfo) (matched bool, err error)
Patch(ctx context.Context, matchedResourceInfo *ResourceInfo) (output *unstructured.Unstructured, err error)
Type() Type
}
Click to show internal directories.
Click to hide internal directories.