Documentation ¶
Index ¶
- func NewThirdPartyConfigManager() configmanager.ConfigManager
- type ConfigurableInterpreter
- func (p *ConfigurableInterpreter) AggregateStatus(object *unstructured.Unstructured, ...) (status *unstructured.Unstructured, enabled bool, err error)
- func (p *ConfigurableInterpreter) GetDependencies(object *unstructured.Unstructured) (dependencies []configv1alpha1.DependentObjectReference, enabled bool, ...)
- func (p *ConfigurableInterpreter) GetReplicas(object *unstructured.Unstructured) (replicas int32, requires *workv1alpha2.ReplicaRequirements, enabled bool, ...)
- func (p *ConfigurableInterpreter) HookEnabled(kind schema.GroupVersionKind, ...) bool
- func (p *ConfigurableInterpreter) InterpretHealth(object *unstructured.Unstructured) (health bool, enabled bool, err error)
- func (p *ConfigurableInterpreter) ReflectStatus(object *unstructured.Unstructured) (status *runtime.RawExtension, enabled bool, err error)
- func (p *ConfigurableInterpreter) Retain(desired *unstructured.Unstructured, observed *unstructured.Unstructured) (retained *unstructured.Unstructured, enabled bool, err error)
- func (p *ConfigurableInterpreter) ReviseReplica(object *unstructured.Unstructured, replica int64) (revised *unstructured.Unstructured, enabled bool, err error)
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 ¶
func (p *ConfigurableInterpreter) HookEnabled(kind schema.GroupVersionKind, operationType configv1alpha1.InterpreterOperation) bool
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.