Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementer ¶
func (*Implementer) Apply ¶
func (i *Implementer) Apply(ctx context.Context, cdk8sAppProxy *addonsv1alpha1.Cdk8sAppProxy, parsedResources []*unstructured.Unstructured, logger logr.Logger) (err error)
Apply applies resources to the target clusters.
func (*Implementer) Check ¶
func (i *Implementer) Check(ctx context.Context, cdk8sAppProxy *addonsv1alpha1.Cdk8sAppProxy, parsedResources []*unstructured.Unstructured, logger logr.Logger) (missingResources bool, err error)
Check checks if the provided resource exists on the target cluster.
type Resourcer ¶
type Resourcer interface {
Apply(ctx context.Context, cdk8sAppProxy *addonsv1alpha1.Cdk8sAppProxy, parsedResources []*unstructured.Unstructured, logger logr.Logger) (err error)
Check(ctx context.Context, cdk8sAppProxy *addonsv1alpha1.Cdk8sAppProxy, parsedResources []*unstructured.Unstructured, logger logr.Logger) (missingResources bool, err error)
}
Click to show internal directories.
Click to hide internal directories.