Documentation
¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsInvalidExecution(err error) bool
- func IsNotFound(err error) bool
- type CertExporter
- type ClusterAutoscaler
- type ClusterAutoscalerCluster
- type ClusterConfig
- type Config
- type ConfigMapSpec
- type ConfigMapValues
- type CoreDNS
- type CoreDNSCluster
- type CoreDNSClusterCalico
- type CoreDNSClusterKubernetes
- type CoreDNSClusterKubernetesAPI
- type CoreDNSClusterKubernetesDNS
- type CoreDNSValues
- type DefaultConfigMap
- type ExporterValues
- type Image
- type IngressController
- type IngressControllerController
- type IngressControllerControllerService
- type IngressControllerGlobal
- type IngressControllerGlobalController
- type IngressControllerGlobalMigration
- type IngressControllerValues
- type Interface
- type NetExporter
- type Service
- func (s *Service) ApplyCreateChange(ctx context.Context, clusterConfig ClusterConfig, ...) error
- func (s *Service) ApplyDeleteChange(ctx context.Context, clusterConfig ClusterConfig, ...) error
- func (s *Service) ApplyUpdateChange(ctx context.Context, clusterConfig ClusterConfig, ...) error
- func (s *Service) GetCurrentState(ctx context.Context, clusterConfig ClusterConfig) ([]*corev1.ConfigMap, error)
- func (s *Service) GetDesiredState(ctx context.Context, clusterConfig ClusterConfig, ...) ([]*corev1.ConfigMap, error)
- func (s *Service) NewDeletePatch(ctx context.Context, currentState, desiredState []*corev1.ConfigMap) (*controller.Patch, error)
- func (s *Service) NewUpdatePatch(ctx context.Context, currentState, desiredState []*corev1.ConfigMap) (*controller.Patch, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidExecution ¶
IsInvalidExecution asserts invalidExecutionError.
Types ¶
type CertExporter ¶
type CertExporter struct {
Namespace string `json:"namespace"`
}
type ClusterAutoscaler ¶
type ClusterAutoscaler struct {
Cluster ClusterAutoscalerCluster `json:"cluster"`
Image Image `json:"image"`
}
type ClusterAutoscalerCluster ¶
type ClusterAutoscalerCluster struct {
ID string `json:"id"`
}
type ClusterConfig ¶
ClusterConfig is used by the configmap resources to provide config to calculate the current state.
type Config ¶
type Config struct {
Logger micrologger.Logger
Tenant tenantcluster.Interface
Provider string
}
Config represents the configuration used to create a new configmap service.
type ConfigMapSpec ¶
type ConfigMapSpec struct {
App string
Labels map[string]string
Name string
Namespace string
ReleaseName string
Type string
ValuesJSON string
}
ConfigMapSpec is used to generate the desired state.
type ConfigMapValues ¶
type ConfigMapValues struct {
ClusterID string
CoreDNS CoreDNSValues
IngressController IngressControllerValues
Organization string
RegistryDomain string
WorkerCount int
}
ConfigMapValues is used by the configmap resources to provide data to the configmap service.
type CoreDNS ¶
type CoreDNS struct {
Cluster CoreDNSCluster `json:"cluster"`
Image Image `json:"image"`
}
type CoreDNSCluster ¶
type CoreDNSCluster struct {
Calico CoreDNSClusterCalico `json:"calico"`
Kubernetes CoreDNSClusterKubernetes `json:"kubernetes"`
}
type CoreDNSClusterCalico ¶
type CoreDNSClusterCalico struct {
CIDR string `json:"CIDR"`
}
type CoreDNSClusterKubernetes ¶
type CoreDNSClusterKubernetes struct {
API CoreDNSClusterKubernetesAPI `json:"API"`
DNS CoreDNSClusterKubernetesDNS `json:"DNS"`
}
type CoreDNSClusterKubernetesAPI ¶
type CoreDNSClusterKubernetesAPI struct {
ClusterIPRange string `json:"clusterIPRange"`
}
type CoreDNSClusterKubernetesDNS ¶
type CoreDNSClusterKubernetesDNS struct {
IP string `json:"IP"`
}
type CoreDNSValues ¶
CoreDNSValues provides values for generating the CoreDNS configmap.
type DefaultConfigMap ¶
type DefaultConfigMap struct {
Image Image `json:"image"`
}
type ExporterValues ¶
type ExporterValues struct {
Namespace string `json:"namespace"`
}
type IngressController ¶
type IngressController struct {
Controller IngressControllerController `json:"controller"`
Global IngressControllerGlobal `json:"global"`
Image Image `json:"image"`
}
type IngressControllerController ¶
type IngressControllerController struct {
Replicas int `json:"replicas"`
Service IngressControllerControllerService `json:"service"`
}
type IngressControllerControllerService ¶
type IngressControllerControllerService struct {
Enabled bool `json:"enabled"`
}
type IngressControllerGlobal ¶
type IngressControllerGlobal struct {
Controller IngressControllerGlobalController `json:"controller"`
Migration IngressControllerGlobalMigration `json:"migration"`
}
type IngressControllerGlobalMigration ¶
type IngressControllerGlobalMigration struct {
Enabled bool `json:"enabled"`
}
type IngressControllerValues ¶
type IngressControllerValues struct {
ControllerServiceEnabled bool
MigrationEnabled bool
UseProxyProtocol bool
}
IngressControllerValues provides values for generating the Ingress Controller configmap.
type Interface ¶
type Interface interface {
ApplyCreateChange(ctx context.Context, clusterConfig ClusterConfig, configMapsToCreate []*corev1.ConfigMap) error
ApplyDeleteChange(ctx context.Context, clusterConfig ClusterConfig, configMapsToDelete []*corev1.ConfigMap) error
ApplyUpdateChange(ctx context.Context, clusterConfig ClusterConfig, configMapsToUpdate []*corev1.ConfigMap) error
GetCurrentState(ctx context.Context, configMapConfig ClusterConfig) ([]*corev1.ConfigMap, error)
GetDesiredState(ctx context.Context, configMapConfig ClusterConfig, configMapValues ConfigMapValues, providerChartSpecs []key.ChartSpec) ([]*corev1.ConfigMap, error)
NewDeletePatch(ctx context.Context, currentState, desiredState []*corev1.ConfigMap) (*controller.Patch, error)
NewUpdatePatch(ctx context.Context, currentState, desiredState []*corev1.ConfigMap) (*controller.Patch, error)
}
type NetExporter ¶
type NetExporter struct {
Namespace string `json:"namespace"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides shared functionality for managing configmaps.
func (*Service) ApplyCreateChange ¶
func (*Service) ApplyDeleteChange ¶
func (*Service) ApplyUpdateChange ¶
func (*Service) GetCurrentState ¶
func (*Service) GetDesiredState ¶
func (s *Service) GetDesiredState(ctx context.Context, clusterConfig ClusterConfig, configMapValues ConfigMapValues, providerChartSpecs []key.ChartSpec) ([]*corev1.ConfigMap, error)
func (*Service) NewDeletePatch ¶
func (s *Service) NewDeletePatch(ctx context.Context, currentState, desiredState []*corev1.ConfigMap) (*controller.Patch, error)
NewDeletePatch is a no-op because configmaps in the tenant cluster are deleted with the tenant cluster resources.