server

package
v2.16.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package server implements the gRPC server for the upgrade agent.

The server is responsible for using kubeadm to upgrade the Kubernetes release of a Constellation node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	upgradeproto.UnimplementedUpdateServer
	// contains filtered or unexported fields
}

Server is the upgrade-agent server.

func New

func New(log *slog.Logger, fileHandler file.Handler) (*Server, error)

New creates a new upgrade-agent server.

func (*Server) ExecuteUpdate

ExecuteUpdate installs & verifies the provided kubeadm, then executes `kubeadm upgrade plan` & `kubeadm upgrade apply {wanted_Kubernetes_Version}` to upgrade to the specified version.

func (*Server) Run

func (s *Server) Run(protocol string, sockAddr string) error

Run starts the upgrade-agent server on the given port, using the provided protocol and socket address.

func (*Server) Stop

func (s *Server) Stop()

Stop stops the upgrade-agent server gracefully.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL