Documentation
¶
Index ¶
- Constants
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- func IsWrongType(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 IngressControllerValues
- type NetExporter
- type Resource
- func (r *Resource) ApplyCreateChange(ctx context.Context, obj, createChange interface{}) error
- func (r *Resource) ApplyDeleteChange(ctx context.Context, obj, deleteChange interface{}) error
- func (r *Resource) ApplyUpdateChange(ctx context.Context, obj, updateChange interface{}) error
- func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) (interface{}, error)
- func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) (interface{}, error)
- func (r *Resource) Name() string
- func (r *Resource) NewDeletePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*controller.Patch, error)
- func (r *Resource) NewUpdatePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*controller.Patch, error)
Constants ¶
const (
Name = "configmapv21"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
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 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 ¶
type CoreDNSValues struct { CalicoAddress string CalicoPrefixLength string ClusterIPRange string DNSIP string }
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"`
}
type IngressControllerGlobalController ¶
type IngressControllerGlobalController struct {
UseProxyProtocol bool `json:"useProxyProtocol"`
}
type IngressControllerValues ¶
IngressControllerValues provides values for generating the Ingress Controller configmap.
type NetExporter ¶
type NetExporter struct {
Namespace string `json:"namespace"`
}
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) ApplyCreateChange ¶
func (*Resource) ApplyDeleteChange ¶
ApplyDeleteChange is executed upon update events in case newDeleteChangeForUpdatePatch figured out there are ConfigMap types to be deleted.
func (*Resource) ApplyUpdateChange ¶
func (*Resource) GetCurrentState ¶
func (*Resource) GetDesiredState ¶
func (*Resource) NewDeletePatch ¶
func (r *Resource) NewDeletePatch(ctx context.Context, obj, currentState, desiredState interface{}) (*controller.Patch, error)
NewDeletePatch is a no-op because ConfigMap types in the tenant cluster are deleted with the tenant cluster itself upon a delete event.