mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-12 11:12:27 -04:00
bootstrapper: remove cilium restart fix
Tests concluded that restating the Cilium agent after the first boot is not needed anymore to regain connectivity for pods.
This commit is contained in:
parent
1972b635b4
commit
79f562374a
9 changed files with 4 additions and 207 deletions
|
@ -242,17 +242,6 @@ func (k *KubeWrapper) JoinCluster(ctx context.Context, args *kubeadm.BootstrapTo
|
|||
return fmt.Errorf("joining cluster: %v; %w ", string(joinConfigYAML), err)
|
||||
}
|
||||
|
||||
log.Infof("Waiting for Cilium to become healthy")
|
||||
if err := k.clusterUtil.WaitForCilium(context.Background(), log); err != nil {
|
||||
return fmt.Errorf("waiting for Cilium to become healthy: %w", err)
|
||||
}
|
||||
|
||||
log.Infof("Restarting Cilium")
|
||||
if err := k.clusterUtil.FixCilium(context.Background()); err != nil {
|
||||
log.With(zap.Error(err)).Errorf("FixCilium failed")
|
||||
// Continue and don't throw an error here - things might be okay.
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -307,22 +296,11 @@ func k8sCompliantHostname(in string) (string, error) {
|
|||
}
|
||||
|
||||
// StartKubelet starts the kubelet service.
|
||||
func (k *KubeWrapper) StartKubelet(log *logger.Logger) error {
|
||||
func (k *KubeWrapper) StartKubelet() error {
|
||||
if err := k.clusterUtil.StartKubelet(); err != nil {
|
||||
return fmt.Errorf("starting kubelet: %w", err)
|
||||
}
|
||||
|
||||
log.Infof("Waiting for Cilium to become healthy")
|
||||
if err := k.clusterUtil.WaitForCilium(context.Background(), log); err != nil {
|
||||
return fmt.Errorf("waiting for Cilium to become healthy: %w", err)
|
||||
}
|
||||
|
||||
log.Infof("Restarting Cilium")
|
||||
if err := k.clusterUtil.FixCilium(context.Background()); err != nil {
|
||||
log.With(zap.Error(err)).Errorf("FixCilium failed")
|
||||
// Continue and don't throw an error here - things might be okay.
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue