mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 14:32:17 -04:00
coordinator-core: add multi coordinator Kubernetes integration (#39)
Signed-off-by: Benedict Schlueter <bs@edgeless.systems>
This commit is contained in:
parent
0ac9617dac
commit
86178df205
19 changed files with 359 additions and 154 deletions
|
@ -400,10 +400,11 @@ func dialGRPC(ctx context.Context, dialer Dialer, target string) (*grpc.ClientCo
|
|||
}
|
||||
|
||||
type stubVPNAPI struct {
|
||||
peers []peer.Peer
|
||||
getUpdateErr error
|
||||
joinArgs kubeadm.BootstrapTokenDiscovery
|
||||
getJoinArgsErr error
|
||||
peers []peer.Peer
|
||||
joinArgs kubeadm.BootstrapTokenDiscovery
|
||||
getUpdateErr error
|
||||
getJoinArgsErr error
|
||||
getK8SCertKeyErr error
|
||||
vpnproto.UnimplementedAPIServer
|
||||
}
|
||||
|
||||
|
@ -418,3 +419,13 @@ func (a *stubVPNAPI) GetK8SJoinArgs(ctx context.Context, in *vpnproto.GetK8SJoin
|
|||
DiscoveryTokenCaCertHash: a.joinArgs.CACertHashes[0],
|
||||
}, a.getJoinArgsErr
|
||||
}
|
||||
|
||||
func (a *stubVPNAPI) GetK8SCertificateKey(ctx context.Context, in *vpnproto.GetK8SCertificateKeyRequest) (*vpnproto.GetK8SCertificateKeyResponse, error) {
|
||||
return &vpnproto.GetK8SCertificateKeyResponse{CertificateKey: "dummyCertKey"}, a.getK8SCertKeyErr
|
||||
}
|
||||
|
||||
func (a *stubVPNAPI) newServer() *grpc.Server {
|
||||
server := grpc.NewServer()
|
||||
vpnproto.RegisterAPIServer(server, a)
|
||||
return server
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue