From 239829fe036b5a69756ecc92929dece4619d991c Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Mon, 14 Jan 2019 14:58:49 -0800 Subject: [PATCH] asset/ignition: remove SSH key from pointer config Now that the MachineConfigOperator is capable of managing SSH keys, there is no need to include them in the pointer Ignition Configs. In fact, it's desirable to remove them since these configs are not managed by the cluster. The SSH key will remain in the bootstrap config. --- pkg/asset/ignition/machine/node.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/asset/ignition/machine/node.go b/pkg/asset/ignition/machine/node.go index 3dee540c0c1..eb7b1f7911d 100644 --- a/pkg/asset/ignition/machine/node.go +++ b/pkg/asset/ignition/machine/node.go @@ -35,12 +35,5 @@ func pointerIgnitionConfig(installConfig *types.InstallConfig, rootCA []byte, ro }, }, }, - // XXX: Remove this once MCO supports injecting SSH keys. - Passwd: ignition.Passwd{ - Users: []ignition.PasswdUser{{ - Name: "core", - SSHAuthorizedKeys: []ignition.SSHAuthorizedKey{ignition.SSHAuthorizedKey(installConfig.SSHKey)}, - }}, - }, } }