Documentation ¶
Index ¶
- func InitKodeResourcesConfig(kode *kodev1alpha2.Kode, template *kodev1alpha2.Template) *common.KodeResourceConfig
- func NewKodeCleanupResource(kode *kodev1alpha2.Kode) cleanup.CleanupableResource
- type KodeCleanupResource
- type KodeReconciler
- func (r *KodeReconciler) GetCleanupManager() cleanup.CleanupManager
- func (r *KodeReconciler) GetClient() client.Client
- func (r *KodeReconciler) GetEventRecorder() event.EventManager
- func (r *KodeReconciler) GetIsTestEnvironment() bool
- func (r *KodeReconciler) GetLog() logr.Logger
- func (r *KodeReconciler) GetLongReconcileInterval() time.Duration
- func (r *KodeReconciler) GetReconcileInterval() time.Duration
- func (r *KodeReconciler) GetResourceManager() resourcev1.ResourceManager
- func (r *KodeReconciler) GetScheme() *runtime.Scheme
- func (r *KodeReconciler) GetTemplateManager() template.TemplateManager
- func (r *KodeReconciler) HandleReconcileError(ctx context.Context, resource statemachine.StateManagedResource, err error, ...) (kodev1alpha2.Phase, ctrl.Result, error)
- func (r *KodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *KodeReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ResourceReadyCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitKodeResourcesConfig ¶
func InitKodeResourcesConfig( kode *kodev1alpha2.Kode, template *kodev1alpha2.Template) *common.KodeResourceConfig
func NewKodeCleanupResource ¶ added in v0.4.0
func NewKodeCleanupResource(kode *kodev1alpha2.Kode) cleanup.CleanupableResource
Types ¶
type KodeCleanupResource ¶ added in v0.4.0
type KodeCleanupResource struct {
Kode *kodev1alpha2.Kode
}
func (*KodeCleanupResource) GetResources ¶ added in v0.4.0
func (k *KodeCleanupResource) GetResources() []cleanup.Resource
func (*KodeCleanupResource) ShouldDelete ¶ added in v0.4.0
func (k *KodeCleanupResource) ShouldDelete(resource cleanup.Resource) bool
type KodeReconciler ¶
type KodeReconciler struct { Client client.Client Scheme *runtime.Scheme Log logr.Logger Resource resourcev1.ResourceManager Template template.TemplateManager CleanupManager cleanup.CleanupManager EventManager event.EventManager IsTestEnvironment bool ReconcileInterval time.Duration LongReconcileInterval time.Duration }
func (*KodeReconciler) GetCleanupManager ¶ added in v0.7.0
func (r *KodeReconciler) GetCleanupManager() cleanup.CleanupManager
func (*KodeReconciler) GetClient ¶ added in v0.7.0
func (r *KodeReconciler) GetClient() client.Client
func (*KodeReconciler) GetEventRecorder ¶ added in v0.7.0
func (r *KodeReconciler) GetEventRecorder() event.EventManager
func (*KodeReconciler) GetIsTestEnvironment ¶ added in v0.7.0
func (r *KodeReconciler) GetIsTestEnvironment() bool
func (*KodeReconciler) GetLog ¶ added in v0.7.0
func (r *KodeReconciler) GetLog() logr.Logger
func (*KodeReconciler) GetLongReconcileInterval ¶ added in v0.7.0
func (r *KodeReconciler) GetLongReconcileInterval() time.Duration
func (*KodeReconciler) GetReconcileInterval ¶ added in v0.7.0
func (r *KodeReconciler) GetReconcileInterval() time.Duration
func (*KodeReconciler) GetResourceManager ¶ added in v0.7.0
func (r *KodeReconciler) GetResourceManager() resourcev1.ResourceManager
func (*KodeReconciler) GetScheme ¶ added in v0.7.0
func (r *KodeReconciler) GetScheme() *runtime.Scheme
func (*KodeReconciler) GetTemplateManager ¶ added in v0.7.0
func (r *KodeReconciler) GetTemplateManager() template.TemplateManager
func (*KodeReconciler) HandleReconcileError ¶ added in v0.7.0
func (r *KodeReconciler) HandleReconcileError(ctx context.Context, resource statemachine.StateManagedResource, err error, message string) (kodev1alpha2.Phase, ctrl.Result, error)
func (*KodeReconciler) SetupWithManager ¶
func (r *KodeReconciler) SetupWithManager(mgr ctrl.Manager) error
type ResourceReadyCheck ¶ added in v0.7.0
type ResourceReadyCheck func(context.Context, statemachine.ReconcilerInterface, resourcev1.ResourceManager, *kodev1alpha2.Kode, *common.KodeResourceConfig) (bool, error)
ResourceReadyCheck defines a function type for resource readiness checks
func ComposeResourceChecks ¶ added in v0.7.0
func ComposeResourceChecks() []ResourceReadyCheck
ComposeResourceChecks returns a slice of all resource ready checks
Click to show internal directories.
Click to hide internal directories.