mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Add key generation.
This commit is contained in:
@@ -357,6 +357,11 @@ func (s *APIServer) Run(_ []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
var installSSH master.InstallSSHKey
|
||||
instances, supported := cloud.Instances()
|
||||
if supported {
|
||||
installSSH = instances.AddSSHKeyToAllInstances
|
||||
}
|
||||
config := &master.Config{
|
||||
EtcdHelper: helper,
|
||||
EventTTL: s.EventTTL,
|
||||
@@ -384,6 +389,7 @@ func (s *APIServer) Run(_ []string) error {
|
||||
MinRequestTimeout: s.MinRequestTimeout,
|
||||
SSHUser: s.SSHUser,
|
||||
SSHKeyfile: s.SSHKeyfile,
|
||||
InstallSSHKey: installSSH,
|
||||
}
|
||||
m := master.New(config)
|
||||
|
||||
|
Reference in New Issue
Block a user