Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoKindMatch ¶
func NewMockHelm ¶
Types ¶
type Installer ¶
type Installer interface { // create the resources described in the manifest CreateFromManifests(ctx context.Context, namespace string, manifests Manifests) error // delete the resources described in the manifest DeleteFromManifests(ctx context.Context, namespace string, manifests Manifests) error // perform a diff and apply patches to migrate from original to updated manifests UpdateFromManifests(ctx context.Context, namespace string, original, updated Manifests, recreatePods bool) error }
an interface allowing these methods to be mocked
func NewHelmInstaller ¶
func NewHelmInstaller() Installer
type ManifestFilterFunc ¶
var ExcludeEmptyManifests ManifestFilterFunc = func(input []manifest.Manifest) ([]manifest.Manifest, error) { var output []manifest.Manifest for _, manifest := range input { if !isEmptyManifest(manifest.Content) { output = append(output, manifest) } } return output, nil }
Returns only non-empty manifests
func ReplaceHardcodedNamespace ¶
func ReplaceHardcodedNamespace(hardcoded, override string) ManifestFilterFunc
type Manifests ¶
func InstallOrUpdate ¶
func NewManifestsFromGzippedString ¶
returns creates a set of manifests from a gzipped, base64 encoded string
func RenderManifests ¶
func (Manifests) CombinedString ¶
func (Manifests) SplitByCrds ¶
type Options ¶
type Options interface { // type of install InstallName() string // uri of chart ChartUri() string // version to install Version() string // namespace to install into Namespace() string // validator function for opts Validate() error // previous install PreviousInstall() Manifests // installer which should be called Installer() Installer // template which is called with opts, and passed into render as values HelmValuesTemplate() string }
Click to show internal directories.
Click to hide internal directories.