Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInitializer ¶
type ClusterInitializer interface { // InitCluster initializes a new Kubernetes cluster. InitCluster( ctx context.Context, cloudServiceAccountURI string, k8sVersion string, measurementSalt []byte, enforcedPcrs []uint32, enforceIDKeyDigest bool, idKeyDigest []byte, azureCVM bool, helmDeployments []byte, conformanceMode bool, kubernetesComponents versions.ComponentVersions, log *logger.Logger, ) ([]byte, error) }
ClusterInitializer has the ability to initialize a cluster.
type IssuerWrapper ¶
IssuerWrapper adds VM type context to an issuer to distinguish between confidential and trusted launch VMs.
func NewIssuerWrapper ¶
NewIssuerWrapper creates a new issuer with VM type context.
func (*IssuerWrapper) IDKeyDigest ¶
func (i *IssuerWrapper) IDKeyDigest() []byte
IDKeyDigest returns the ID key digest.
func (*IssuerWrapper) VMType ¶
func (i *IssuerWrapper) VMType() vmtype.VMType
VMType returns the VM type.
type MetadataAPI ¶ added in v2.3.0
type MetadataAPI interface { // InitSecretHash returns the initSecretHash of the instance. InitSecretHash(ctx context.Context) ([]byte, error) }
MetadataAPI provides information about the instances.
type Server ¶
type Server struct { initproto.UnimplementedAPIServer // contains filtered or unexported fields }
Server is the initialization server, which is started on each node. The server handles initialization calls from the CLI and initializes the Kubernetes cluster.
func New ¶
func New(ctx context.Context, lock locker, kube ClusterInitializer, issuerWrapper IssuerWrapper, fh file.Handler, metadata MetadataAPI, log *logger.Logger) (*Server, error)
New creates a new initialization server.
func (*Server) Init ¶
func (s *Server) Init(ctx context.Context, req *initproto.InitRequest) (*initproto.InitResponse, error)
Init initializes the cluster.
Click to show internal directories.
Click to hide internal directories.