Documentation ¶
Index ¶
Constants ¶
View Source
const ( CreateOperation operation = "create" DeleteOperation operation = "delete" GetOperation operation = "get" ReplaceOperation operation = "replace" )
These constants implement the operation enumeration type.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
Configurator configures a Kubernetes cluster using kubectl.
func NewConfigurator ¶
func NewConfigurator(kubernetes util.Kubernetes) *Configurator
NewConfigurator creates a new Configurator.
func (*Configurator) Configure ¶
func (a *Configurator) Configure(c *common.Configuration, o operation) (string, error)
Configure passes each resource in the configuration to kubectl and performs the appropriate action on it (create/delete/replace) and updates the State of the resource with the resulting status. In case of errors with a resource, Resource.State.Errors is set. and then updates the deployment with the completion status and completion time.
type DependencyMap ¶
DependencyMap maps a resource name to a set of dependencies.
Click to show internal directories.
Click to hide internal directories.