Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Generators []Generator
Generators tracks the list of transformers
Functions ¶
This section is empty.
Types ¶
type DefaultTransformer ¶
type DefaultTransformer struct {
ChildTransformer baseTransformer
}
default implementation for all transformers
func (*DefaultTransformer) TransformConfig ¶
func (t *DefaultTransformer) TransformConfig(ctx context.Context) error
func (*DefaultTransformer) TransformManifests ¶
func (t *DefaultTransformer) TransformManifests(ctx context.Context, scheme *runtime.Scheme, gen *generated.SpinnakerGeneratedConfig) error
type Generator ¶
type Generator interface { NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger) (Transformer, error) GetName() string }
Generator generates transformers for the given SpinnakerService
type Transformer ¶
type Transformer interface { TransformConfig(ctx context.Context) error TransformManifests(ctx context.Context, scheme *runtime.Scheme, gen *generated.SpinnakerGeneratedConfig) error }
Transformer affects how Spinnaker is deployed. It can change the Spinnaker configuration itself with TransformConfig. It can also change the manifests before they are updated.
Click to show internal directories.
Click to hide internal directories.