Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnnotationName ¶ added in v0.8.0
func GetAnnotationName() string
GetAnnotationName will return label key for service created by helm
func GetLabelName ¶ added in v0.8.0
func GetLabelName() string
GetAnnotationName will return label key for service created by helm
Types ¶
type Chart ¶
type Chart struct { ChartName string `validate:"required" mapstructure:"chart_name"` Version string `mapstructure:"version"` ReleaseName string `mapstructure:"release_name"` Namespace string `mapstructure:"namespace"` CreateNamespace *bool `mapstructure:"create_namespace"` Wait *bool `mapstructure:"wait"` Timeout string `mapstructure:"timeout"` // such as "1.5h" or "2h45m", valid time units are "s", "m", "h" UpgradeCRDs *bool `mapstructure:"upgradeCRDs"` // ValuesYaml is the values.yaml content. // use string instead of map[string]interface{} ValuesYaml string `mapstructure:"values_yaml"` }
Chart is the struct containing details of a helm chart. TODO(daniel-hutao): make the Chart equals to helmclient.ChartSpec
func (*Chart) FillDefaultValue ¶ added in v0.8.0
type Deployment ¶
type Helm ¶
type Helm struct { *repo.Entry *helmclient.ChartSpec helmclient.Client }
func (*Helm) AddOrUpdateChartRepo ¶ added in v0.8.0
func (*Helm) InstallOrUpgradeChart ¶
func (*Helm) UninstallHelmChartRelease ¶
type InstanceState ¶
type InstanceState struct {
Workflows Workflows
}
func (*InstanceState) ToStringInterfaceMap ¶
func (is *InstanceState) ToStringInterfaceMap() map[string]interface{}
type Option ¶ added in v0.8.0
type Option func(*Helm)
func WithChartSpec ¶ added in v0.8.0
func WithChartSpec(spec *helmclient.ChartSpec) Option
func WithClient ¶ added in v0.8.0
func WithClient(client helmclient.Client) Option
type Repo ¶
type Repo struct { Name string `validate:"required" mapstructure:"name"` URL string `validate:"required" mapstructure:"url"` }
Repo is the struct containing details of a git repository. TODO(daniel-hutao): make the Repo equals to repo.Entry
func (*Repo) FillDefaultValue ¶ added in v0.8.0
type Statefulset ¶
type Workflows ¶
type Workflows struct { Deployments []Deployment `yaml:"deployments,omitempty"` Daemonsets []Daemonset `yaml:"daemonsets,omitempty"` Statefulsets []Statefulset `yaml:"statefulsets,omitempty"` }
func (*Workflows) AddDaemonset ¶
func (*Workflows) AddDeployment ¶
func (*Workflows) AddStatefulset ¶
Click to show internal directories.
Click to hide internal directories.