Documentation ¶
Index ¶
- type HybridBotanist
- func (b *HybridBotanist) ComputeShootOperatingSystemConfig() error
- func (b *HybridBotanist) DeployCSIControllers() error
- func (b *HybridBotanist) DeployCloudControllerManager() error
- func (b *HybridBotanist) DeployCloudProviderConfig() error
- func (b *HybridBotanist) DeployETCD() error
- func (b *HybridBotanist) DeployETCDStorageClass(ctx context.Context) error
- func (b *HybridBotanist) DeployKubeAPIServer() error
- func (b *HybridBotanist) DeployKubeAPIServerService() error
- func (b *HybridBotanist) DeployKubeAddonManager() error
- func (b *HybridBotanist) DeployKubeControllerManager() error
- func (b *HybridBotanist) DeployKubeScheduler() error
- func (b *HybridBotanist) DeployLimitedNetworkPolicies(ctx context.Context) error
- func (b *HybridBotanist) DeployNetworkPolicies(ctx context.Context) error
- func (b *HybridBotanist) RefreshCSIControllersChecksums() error
- func (b *HybridBotanist) RefreshCloudProviderConfig() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HybridBotanist ¶
type HybridBotanist struct { *operation.Operation Botanist *botanist.Botanist SeedCloudBotanist cloudbotanist.CloudBotanist ShootCloudBotanist cloudbotanist.CloudBotanist }
HybridBotanist is a struct which contains the "normal" Botanist as well as the CloudBotanist. It is used to execute the work for which input from both is required or functionalities from both must be used.
func New ¶
func New(o *operation.Operation, b *botanist.Botanist, seedCB, shootCB cloudbotanist.CloudBotanist) (*HybridBotanist, error)
New takes an operation object <o>, a Botanist object <b>, and two CloudBotanist objects <seedCB> and <shootCB>, and creates a new HybridBotanist object.
func (*HybridBotanist) ComputeShootOperatingSystemConfig ¶
func (b *HybridBotanist) ComputeShootOperatingSystemConfig() error
ComputeShootOperatingSystemConfig generates the shoot operating system configuration. Both, the downloader and original configuration will be generated and stored in the shoot specific cloud config map for later usage.
func (*HybridBotanist) DeployCSIControllers ¶
func (b *HybridBotanist) DeployCSIControllers() error
DeployCSIControllers deploy CSI controllers into the Shoot namespace in the Seed cluster. They include CSI plugin controller service (Provider specific), CSI external attacher, CSI external provisioner and CSI snapshotter.
func (*HybridBotanist) DeployCloudControllerManager ¶
func (b *HybridBotanist) DeployCloudControllerManager() error
DeployCloudControllerManager asks the Cloud Botanist to provide the cloud specific configuration values for the cloud-controller-manager deployment.
func (*HybridBotanist) DeployCloudProviderConfig ¶
func (b *HybridBotanist) DeployCloudProviderConfig() error
DeployCloudProviderConfig asks the Cloud Botanist to provide the cloud specific values for the cloud provider configuration. It will create a ConfigMap for it and store it in the Seed cluster.
func (*HybridBotanist) DeployETCD ¶
func (b *HybridBotanist) DeployETCD() error
DeployETCD deploys two etcd clusters via StatefulSets. The first etcd cluster (called 'main') is used for all the data the Shoot Kubernetes cluster needs to store, whereas the second etcd luster (called 'events') is only used to store the events data. The objectstore is also set up to store the backups.
func (*HybridBotanist) DeployETCDStorageClass ¶
func (b *HybridBotanist) DeployETCDStorageClass(ctx context.Context) error
DeployETCDStorageClass create the high iops storageclass required for volume used by etcd pods in seed cluster.
func (*HybridBotanist) DeployKubeAPIServer ¶
func (b *HybridBotanist) DeployKubeAPIServer() error
DeployKubeAPIServer asks the Cloud Botanist to provide the cloud specific configuration values for the kube-apiserver deployment.
func (*HybridBotanist) DeployKubeAPIServerService ¶
func (b *HybridBotanist) DeployKubeAPIServerService() error
DeployKubeAPIServerService asks the Cloud Botanist to provide the cloud specific configuration values for the kube-apiserver service.
func (*HybridBotanist) DeployKubeAddonManager ¶
func (b *HybridBotanist) DeployKubeAddonManager() error
DeployKubeAddonManager deploys the Kubernetes Addon Manager which will use labeled Kubernetes resources in order to ensure that they exist in a cluster/reconcile them in case somebody changed something.
func (*HybridBotanist) DeployKubeControllerManager ¶
func (b *HybridBotanist) DeployKubeControllerManager() error
DeployKubeControllerManager asks the Cloud Botanist to provide the cloud specific configuration values for the kube-controller-manager deployment.
func (*HybridBotanist) DeployKubeScheduler ¶
func (b *HybridBotanist) DeployKubeScheduler() error
DeployKubeScheduler asks the Cloud Botanist to provide the cloud specific configuration values for the kube-scheduler deployment.
func (*HybridBotanist) DeployLimitedNetworkPolicies ¶
func (b *HybridBotanist) DeployLimitedNetworkPolicies(ctx context.Context) error
DeployLimitedNetworkPolicies creates a network policies in a Shoot cluster's namespace that DOES NOT deny all traffic and allow certain components to use annotations to declare their desire to transmit/receive traffic to/from other Pods/IP addresses. This is needed until migration to the new policies is complete.
func (*HybridBotanist) DeployNetworkPolicies ¶
func (b *HybridBotanist) DeployNetworkPolicies(ctx context.Context) error
DeployNetworkPolicies creates a network policies in a Shoot cluster's namespace that deny all traffic and allow certain components to use annotations to declare their desire to transmit/receive traffic to/from other Pods/IP addresses.
func (*HybridBotanist) RefreshCSIControllersChecksums ¶
func (b *HybridBotanist) RefreshCSIControllersChecksums() error
RefreshCSIControllersChecksums updates the cloud provider checksum in the kube-controller-manager pod spec template.
func (*HybridBotanist) RefreshCloudProviderConfig ¶
func (b *HybridBotanist) RefreshCloudProviderConfig() error
RefreshCloudProviderConfig asks the Cloud Botanist to refresh the cloud provider config in case it stores the cloud provider credentials. The Cloud Botanist is expected to return the complete updated cloud config.