Documentation ¶
Index ¶
- Constants
- type AccountsTransformerGenerator
- type DefaultTransformer
- type DefaultsTransformerGenerator
- type Generator
- type NamedPortsTransformerGenerator
- type OwnerTransformerGenerator
- type PatchTransformerGenerator
- type SecretsTransformerGenerator
- type ServerPortTransformerGenerator
- type SpinSvcSettingsTransformerGenerator
- type StatsTransformerGenerator
- type TargetTransformerGenerator
- type Transformer
Constants ¶
View Source
const DefaultPortName = "http"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsTransformerGenerator ¶ added in v1.1.0
type AccountsTransformerGenerator struct{}
func (*AccountsTransformerGenerator) GetName ¶ added in v1.1.0
func (g *AccountsTransformerGenerator) GetName() string
func (*AccountsTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (a *AccountsTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
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, gen *generated.SpinnakerGeneratedConfig) error
type DefaultsTransformerGenerator ¶ added in v1.1.0
type DefaultsTransformerGenerator struct{}
func (*DefaultsTransformerGenerator) GetName ¶ added in v1.1.0
func (g *DefaultsTransformerGenerator) GetName() string
func (*DefaultsTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (a *DefaultsTransformerGenerator) NewTransformer( svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type Generator ¶
type Generator interface { NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error) GetName() string }
DetectorGenerator generates transformers for the given SpinnakerService
type NamedPortsTransformerGenerator ¶ added in v1.1.0
type NamedPortsTransformerGenerator struct{}
func (*NamedPortsTransformerGenerator) GetName ¶ added in v1.1.0
func (n *NamedPortsTransformerGenerator) GetName() string
func (*NamedPortsTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (n *NamedPortsTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type OwnerTransformerGenerator ¶ added in v1.1.0
type OwnerTransformerGenerator struct{}
func (*OwnerTransformerGenerator) GetName ¶ added in v1.1.0
func (g *OwnerTransformerGenerator) GetName() string
func (*OwnerTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (g *OwnerTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type PatchTransformerGenerator ¶ added in v1.1.0
type PatchTransformerGenerator struct{}
func (*PatchTransformerGenerator) GetName ¶ added in v1.1.0
func (g *PatchTransformerGenerator) GetName() string
func (*PatchTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (g *PatchTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type SecretsTransformerGenerator ¶ added in v1.1.0
type SecretsTransformerGenerator struct{}
func (*SecretsTransformerGenerator) GetName ¶ added in v1.1.0
func (s *SecretsTransformerGenerator) GetName() string
func (*SecretsTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (s *SecretsTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type ServerPortTransformerGenerator ¶ added in v1.1.0
type ServerPortTransformerGenerator struct{}
func (*ServerPortTransformerGenerator) GetName ¶ added in v1.1.0
func (g *ServerPortTransformerGenerator) GetName() string
func (*ServerPortTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (g *ServerPortTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type SpinSvcSettingsTransformerGenerator ¶ added in v1.1.0
type SpinSvcSettingsTransformerGenerator struct{}
func (*SpinSvcSettingsTransformerGenerator) GetName ¶ added in v1.1.0
func (g *SpinSvcSettingsTransformerGenerator) GetName() string
func (*SpinSvcSettingsTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (g *SpinSvcSettingsTransformerGenerator) NewTransformer( svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type StatsTransformerGenerator ¶ added in v1.1.0
type StatsTransformerGenerator struct{}
func (*StatsTransformerGenerator) GetName ¶ added in v1.1.0
func (t *StatsTransformerGenerator) GetName() string
func (*StatsTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (t *StatsTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
type TargetTransformerGenerator ¶ added in v1.1.0
type TargetTransformerGenerator struct{}
func (*TargetTransformerGenerator) GetName ¶ added in v1.1.0
func (g *TargetTransformerGenerator) GetName() string
func (*TargetTransformerGenerator) NewTransformer ¶ added in v1.1.0
func (g *TargetTransformerGenerator) NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger, scheme *runtime.Scheme) (Transformer, error)
Transformer is in charge of excluding namespace manifests
type Transformer ¶
type Transformer interface { TransformConfig(ctx context.Context) error TransformManifests(ctx context.Context, 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.