Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a dependency manifold that runs an upgrader worker, using the resource names defined in the supplied config.
Types ¶
type CAASOperatorUpgrader ¶
type Config ¶
type Config struct {
UpgraderClient UpgraderClient
CAASOperatorUpgrader CAASOperatorUpgrader
AgentTag names.Tag
OrigAgentVersion version.Number
UpgradeStepsWaiter gate.Waiter
InitialUpgradeCheckComplete gate.Unlocker
}
Config contains the items the worker needs to start.
type ManifoldConfig ¶
type ManifoldConfig struct {
AgentName string
APICallerName string
UpgradeStepsGateName string
UpgradeCheckGateName string
PreviousAgentVersion version.Number
}
ManifoldConfig defines the names of the manifolds on which a Manifold will depend.
type Upgrader ¶
type Upgrader struct {
// contains filtered or unexported fields
}
Upgrader represents a worker that watches the state for upgrade requests for a given CAAS agent.
func NewUpgrader ¶
NewUpgrader returns a new upgrader worker. It watches changes to the current version of a CAAS agent. If an upgrade is needed, the worker updates the docker image version for the specified agent. TODO(caas) - support HA controllers
Click to show internal directories.
Click to hide internal directories.