Documentation ¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- type ChartConfig
- func (c *ChartConfig) ApplyCreateChange(ctx context.Context, clusterConfig ClusterConfig, ...) error
- func (c *ChartConfig) ApplyDeleteChange(ctx context.Context, clusterConfig ClusterConfig, ...) error
- func (c *ChartConfig) ApplyUpdateChange(ctx context.Context, clusterConfig ClusterConfig, ...) error
- func (c *ChartConfig) GetCurrentState(ctx context.Context, clusterConfig ClusterConfig) ([]*v1alpha1.ChartConfig, error)
- func (c *ChartConfig) GetDesiredState(ctx context.Context, clusterConfig ClusterConfig, ...) ([]*v1alpha1.ChartConfig, error)
- func (c *ChartConfig) NewDeletePatch(ctx context.Context, currentState, desiredState []*v1alpha1.ChartConfig) (*controller.Patch, error)
- func (c *ChartConfig) NewUpdatePatch(ctx context.Context, currentState, desiredState []*v1alpha1.ChartConfig) (*controller.Patch, error)
- type ClusterConfig
- type Config
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type ChartConfig ¶
type ChartConfig struct {
// contains filtered or unexported fields
}
ChartConfig provides shared functionality for managing chartconfigs.
func (*ChartConfig) ApplyCreateChange ¶
func (c *ChartConfig) ApplyCreateChange(ctx context.Context, clusterConfig ClusterConfig, chartConfigsToCreate []*v1alpha1.ChartConfig) error
func (*ChartConfig) ApplyDeleteChange ¶
func (c *ChartConfig) ApplyDeleteChange(ctx context.Context, clusterConfig ClusterConfig, chartConfigsToDelete []*v1alpha1.ChartConfig) error
func (*ChartConfig) ApplyUpdateChange ¶
func (c *ChartConfig) ApplyUpdateChange(ctx context.Context, clusterConfig ClusterConfig, chartConfigsToUpdate []*v1alpha1.ChartConfig) error
func (*ChartConfig) GetCurrentState ¶
func (c *ChartConfig) GetCurrentState(ctx context.Context, clusterConfig ClusterConfig) ([]*v1alpha1.ChartConfig, error)
func (*ChartConfig) GetDesiredState ¶
func (c *ChartConfig) GetDesiredState(ctx context.Context, clusterConfig ClusterConfig, providerChartSpecs []key.ChartSpec) ([]*v1alpha1.ChartConfig, error)
func (*ChartConfig) NewDeletePatch ¶
func (c *ChartConfig) NewDeletePatch(ctx context.Context, currentState, desiredState []*v1alpha1.ChartConfig) (*controller.Patch, error)
NewDeletePatch is a no-op because chartconfig CRs in the tenant cluster are deleted with the tenant cluster resources.
func (*ChartConfig) NewUpdatePatch ¶
func (c *ChartConfig) NewUpdatePatch(ctx context.Context, currentState, desiredState []*v1alpha1.ChartConfig) (*controller.Patch, error)
type ClusterConfig ¶
ClusterConfig is used by the chartconfig service to provide config to connect to the tenant cluster.
type Config ¶
type Config struct { Logger micrologger.Logger Tenant tenantcluster.Interface ProjectName string }
Config represents the configuration used to create a new chartconfig service.
type Interface ¶
type Interface interface { ApplyCreateChange(ctx context.Context, clusterConfig ClusterConfig, chartConfigsToCreate []*v1alpha1.ChartConfig) error ApplyDeleteChange(ctx context.Context, clusterConfig ClusterConfig, chartConfigsToDelete []*v1alpha1.ChartConfig) error ApplyUpdateChange(ctx context.Context, clusterConfig ClusterConfig, chartConfigsToUpdate []*v1alpha1.ChartConfig) error GetCurrentState(ctx context.Context, clusterConfig ClusterConfig) ([]*v1alpha1.ChartConfig, error) GetDesiredState(ctx context.Context, clusterConfig ClusterConfig, providerChartSpecs []key.ChartSpec) ([]*v1alpha1.ChartConfig, error) NewUpdatePatch(ctx context.Context, currentState, desiredState []*v1alpha1.ChartConfig) (*controller.Patch, error) NewDeletePatch(ctx context.Context, currentState, desiredState []*v1alpha1.ChartConfig) (*controller.Patch, error) }
Click to show internal directories.
Click to hide internal directories.