mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-12 16:47:25 -05:00
Cloud providers: Extend CCM with ExtraArgs / ConfigMaps / Secrets / Volumes / VolumeMounts and provide CloudServiceAccountURI
This commit is contained in:
parent
bf726ebd87
commit
2158377f9f
17 changed files with 366 additions and 102 deletions
|
|
@ -66,7 +66,7 @@ func (a *API) ActivateAsCoordinator(in *pubproto.ActivateAsCoordinatorRequest, s
|
|||
return status.Errorf(codes.Internal, "%v", err)
|
||||
}
|
||||
|
||||
kubeconfig, err := a.core.InitCluster(in.AutoscalingNodeGroups)
|
||||
kubeconfig, err := a.core.InitCluster(in.AutoscalingNodeGroups, in.CloudServiceAccountUri)
|
||||
if err != nil {
|
||||
return status.Errorf(codes.Internal, "%v", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,6 @@ type Core interface {
|
|||
AddPeer(peer.Peer) error
|
||||
UpdatePeers([]peer.Peer) error
|
||||
|
||||
InitCluster(autoscalingNodeGroups []string) ([]byte, error)
|
||||
InitCluster(autoscalingNodeGroups []string, cloudServiceAccountURI string) ([]byte, error)
|
||||
JoinCluster(kubeadm.BootstrapTokenDiscovery) error
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ func (c *fakeCore) UpdatePeers(peers []peer.Peer) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (c *fakeCore) InitCluster(autoscalingNodeGroups []string) ([]byte, error) {
|
||||
func (c *fakeCore) InitCluster(autoscalingNodeGroups []string, cloudServiceAccountURI string) ([]byte, error) {
|
||||
c.autoscalingNodeGroups = autoscalingNodeGroups
|
||||
return c.kubeconfig, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue