Documentation ¶
Overview ¶
Package helm implements support for Helm plugin, which can deploy Helm charts onto k8s clusters via Helm API.
Index ¶
- func New(clusterPlugin plugin.ClusterPlugin, cfg config.Plugins) (plugin.CodePlugin, error)
- type ClusterConfig
- type Plugin
- func (p *Plugin) Cleanup() error
- func (p *Plugin) Create(invocation *plugin.CodePluginInvocationParams) error
- func (p *Plugin) Destroy(invocation *plugin.CodePluginInvocationParams) error
- func (p *Plugin) Endpoints(invocation *plugin.CodePluginInvocationParams) (map[string]string, error)
- func (p *Plugin) Resources(invocation *plugin.CodePluginInvocationParams) (plugin.Resources, error)
- func (p *Plugin) Status(invocation *plugin.CodePluginInvocationParams) (bool, error)
- func (p *Plugin) Update(invocation *plugin.CodePluginInvocationParams) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.1.11
func New(clusterPlugin plugin.ClusterPlugin, cfg config.Plugins) (plugin.CodePlugin, error)
New returns new instance of the Helm code plugin for specified Kubernetes cluster plugin and plugins config
Types ¶
type ClusterConfig ¶ added in v0.1.11
type ClusterConfig struct {
TillerNamespace string `yaml:",omitempty"`
}
ClusterConfig represents Kubernetes cluster configuration specific for Helm plugin
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin represents Helm code plugin for Kubernetes cluster
func (*Plugin) Cleanup ¶
Cleanup implements cleanup phase for the Helm plugin. It closes cached Tiller tunnel.
func (*Plugin) Create ¶
func (p *Plugin) Create(invocation *plugin.CodePluginInvocationParams) error
Create implements creation of a new component instance in the cloud by deploying a Helm chart
func (*Plugin) Destroy ¶
func (p *Plugin) Destroy(invocation *plugin.CodePluginInvocationParams) error
Destroy implements destruction of an existing component instance in the cloud by running "helm delete" on the corresponding helm chart
func (*Plugin) Endpoints ¶
func (p *Plugin) Endpoints(invocation *plugin.CodePluginInvocationParams) (map[string]string, error)
Endpoints returns map from port type to url for all services of the current chart
func (*Plugin) Resources ¶ added in v0.1.12
Resources returns list of all resources (like services, config maps, etc.) deployed into the cluster by specified component instance