Documentation ¶
Index ¶
- type Config
- type Resources
- func (r *Resources) APIApply(ctx context.Context, cr client.Object) error
- func (r *Resources) APIDelete(ctx context.Context, cr client.Object) error
- func (r *Resources) AddNewResource(ctx context.Context, cr, o client.Object)
- func (r *Resources) GetNewResources() map[corev1.ObjectReference]client.Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Owns []schema.GroupVersionKind
}
type Resources ¶
func (*Resources) APIApply ¶
APIApply step 0: get existing resources step 1: remove the exisiting resources from the internal resource list that overlap with the new resources step 2: delete the exisiting resources that are no longer needed step 3: apply the new resources to the api server
func (*Resources) APIDelete ¶
APIDelete is used to delete the existing resources that are owned by this cr the implementation retrieves the existing resources and deletes them
func (*Resources) AddNewResource ¶
AddNewResource adds a new resource to the inventoru
func (*Resources) GetNewResources ¶
func (r *Resources) GetNewResources() map[corev1.ObjectReference]client.Object
Click to show internal directories.
Click to hide internal directories.