From 07b9e4ce73e44dd370a98c3d3cc1d2cc08ce9469 Mon Sep 17 00:00:00 2001 From: Sreejith Punnapuzha Date: Tue, 6 Apr 2021 10:38:55 -0500 Subject: [PATCH] Fix ssh key replacement Correct the user for ssh in replacement Signed-off-by: Sreejith Punnapuzha Change-Id: I48a04a8d9be1c05fe36b78c27c4fec2cfc7f4daa (cherry picked from commit c58a4177f8097113c514d7f7128d348508ff35ab) --- .../function/k8scontrol/replacements/generated-secrets.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/function/k8scontrol/replacements/generated-secrets.yaml b/manifests/function/k8scontrol/replacements/generated-secrets.yaml index cd1eba013..767e5206c 100644 --- a/manifests/function/k8scontrol/replacements/generated-secrets.yaml +++ b/manifests/function/k8scontrol/replacements/generated-secrets.yaml @@ -17,4 +17,4 @@ replacements: kind: KubeadmControlPlane name: cluster-controlplane fieldrefs: - - "spec.kubeadmConfigSpec.users[name=ubuntu].sshAuthorizedKeys[0]%REPLACE_HOST_SSH_KEY%" + - "spec.kubeadmConfigSpec.users[name=deployer].sshAuthorizedKeys[0]%REPLACE_HOST_SSH_KEY%"