thirdparty

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewThirdPartyConfigManager

func NewThirdPartyConfigManager() configmanager.ConfigManager

NewThirdPartyConfigManager load third party resource in the cache.

Types

type ConfigurableInterpreter

type ConfigurableInterpreter struct {
	// contains filtered or unexported fields
}

ConfigurableInterpreter interprets resources with third party resource interpreter.

func NewConfigurableInterpreter

func NewConfigurableInterpreter() *ConfigurableInterpreter

NewConfigurableInterpreter return a new ConfigurableInterpreter.

func (*ConfigurableInterpreter) AggregateStatus

func (p *ConfigurableInterpreter) AggregateStatus(object *unstructured.Unstructured, aggregatedStatusItems []workv1alpha2.AggregatedStatusItem) (status *unstructured.Unstructured, enabled bool, err error)

AggregateStatus returns the objects that based on the 'object' but with status aggregated.

func (*ConfigurableInterpreter) GetDependencies

func (p *ConfigurableInterpreter) GetDependencies(object *unstructured.Unstructured) (dependencies []configv1alpha1.DependentObjectReference, enabled bool, err error)

GetDependencies returns the dependent resources of the given object.

func (*ConfigurableInterpreter) GetReplicas

func (p *ConfigurableInterpreter) GetReplicas(object *unstructured.Unstructured) (replicas int32, requires *workv1alpha2.ReplicaRequirements, enabled bool, err error)

GetReplicas returns the desired replicas of the object as well as the requirements of each replica.

func (*ConfigurableInterpreter) HookEnabled

HookEnabled tells if any hook exist for specific resource gvk and operation type.

func (*ConfigurableInterpreter) InterpretHealth

func (p *ConfigurableInterpreter) InterpretHealth(object *unstructured.Unstructured) (health bool, enabled bool, err error)

InterpretHealth returns the health state of the object.

func (*ConfigurableInterpreter) ReflectStatus

func (p *ConfigurableInterpreter) ReflectStatus(object *unstructured.Unstructured) (status *runtime.RawExtension, enabled bool, err error)

ReflectStatus returns the status of the object.

func (*ConfigurableInterpreter) Retain

func (p *ConfigurableInterpreter) Retain(desired *unstructured.Unstructured, observed *unstructured.Unstructured) (retained *unstructured.Unstructured, enabled bool, err error)

Retain returns the objects that based on the "desired" object but with values retained from the "observed" object.

func (*ConfigurableInterpreter) ReviseReplica

func (p *ConfigurableInterpreter) ReviseReplica(object *unstructured.Unstructured, replica int64) (revised *unstructured.Unstructured, enabled bool, err error)

ReviseReplica revises the replica of the given object.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL