Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteCli ¶ added in v0.0.2
type DeleteCli struct {
// contains filtered or unexported fields
}
DeleteCli is a client to delete helm release.
func NewDeleteCli ¶ added in v0.0.2
NewDeleteCli returns new DeleteCli instance.
type GetCli ¶
type GetCli struct {
// contains filtered or unexported fields
}
GetCli is a client to get helm chart from secret storage.
type ListCli ¶ added in v0.0.2
type ListCli struct {
// contains filtered or unexported fields
}
ListCli is a client to get helm charts from secret storage.
func NewListCli ¶ added in v0.0.2
NewGetCli returns new GetCli instance.
type ReleaseCli ¶
type ReleaseCli struct {
// contains filtered or unexported fields
}
ReleaseCli is a client to deploy helm chart with secret storage.
func NewReleaseCli ¶
func NewReleaseCli( kubeconfigPath string, namespace string, name string, ch *chart.Chart, labels map[string]string, valuesAppliers ...ValuesApplier, ) (*ReleaseCli, error)
NewReleaseCli returns new ReleaseCli instance.
TODO: 1. add flag to disable Wait
func (*ReleaseCli) Deploy ¶
func (cli *ReleaseCli) Deploy(ctx context.Context, timeout time.Duration, valuesAppliers ...ValuesApplier) error
Deploy will install or upgrade that release.
func (*ReleaseCli) Uninstall ¶
func (cli *ReleaseCli) Uninstall() error
Uninstall deletes that release.
type ValuesApplier ¶
ValuesApplier is to apply new key/values to existing chart's values.
func StringPathValuesApplier ¶
func StringPathValuesApplier(values ...string) ValuesApplier
StringPathValuesApplier applies key/values by string path.
For instance, x.y.z=1 is the same to that YAML value:
```yaml
x: y: z: 1
```
func YAMLValuesApplier ¶ added in v0.0.2
func YAMLValuesApplier(yamlValues string) (ValuesApplier, error)
YAMLValuesApplier applies key/values by YAML.