Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateResourceName ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct {
Fs Filesystem
DecryptTraverser DecryptTraverser
}
type DecryptTraverser ¶
type Filesystem ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (Generator) GenerateConfig ¶
func (Generator) GenerateRawConfig ¶
func (g Generator) GenerateRawConfig(ctx context.Context, installation, app string) (configmap string, secret string, err error)
GenerateConfig creates final configmap values and secret values for helm to use by performing the following operations:
- Get configmap template data and patch it with installation-specific overrides (if available)
- Get global configmap template for the app and render it with template data (result of 1.)
- Get installation-specific configmap patch for the app template (if available)
- Patch global template (result of 2.) with installation-specific (result of 3.) app overrides
- Get installation-specific secret template data and decrypt it
- Get global secret template for the app (if available) and render it with installation secret template data (result of 5.)
- Get installation-specific secret template patch (if available) and decrypt it
- Patch secret template (result of 6.) with decrypted patch values (result of 7.)
Click to show internal directories.
Click to hide internal directories.