Documentation
¶
Index ¶
- type Config
- type DecryptTraverser
- type Filesystem
- type Generator
- func (g *Generator) GenerateConfig(ctx context.Context, app string, meta metav1.ObjectMeta) (*corev1.ConfigMap, *corev1.Secret, error)
- func (g *Generator) GenerateRawConfig(ctx context.Context, app string) (configmap string, secret string, err error)
- func (g *Generator) GenerateRawConfigUnsorted(ctx context.Context, app string) (configmap string, secret string, err error)
- type InvalidConfigError
- type NotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Fs Filesystem
DecryptTraverser DecryptTraverser
Installation string
Verbose bool
}
type DecryptTraverser ¶
type Filesystem ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateConfig ¶
func (g *Generator) GenerateConfig(ctx context.Context, app string, meta metav1.ObjectMeta) (*corev1.ConfigMap, *corev1.Secret, error)
GenerateConfig generates ConfigMap and Secret for a given App. The generated CM and Secret metadata are configured with the provided value.
func (*Generator) GenerateRawConfig ¶ added in v1.0.0
func (*Generator) GenerateRawConfigUnsorted ¶ added in v1.0.0
func (g *Generator) GenerateRawConfigUnsorted(ctx context.Context, app string) (configmap string, secret string, err error)
GenerateRawConfigUnsorted 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
- Merge config and secret values before templating app secret
- 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.)
type InvalidConfigError ¶ added in v1.0.0
type InvalidConfigError struct {
// contains filtered or unexported fields
}
func (*InvalidConfigError) Error ¶ added in v1.0.0
func (e *InvalidConfigError) Error() string
func (*InvalidConfigError) Is ¶ added in v1.0.0
func (e *InvalidConfigError) Is(target error) bool
type NotFoundError ¶ added in v1.0.0
type NotFoundError struct {
// contains filtered or unexported fields
}
func (*NotFoundError) Error ¶ added in v1.0.0
func (e *NotFoundError) Error() string
func (*NotFoundError) Is ¶ added in v1.0.0
func (e *NotFoundError) Is(target error) bool
Click to show internal directories.
Click to hide internal directories.