From c58a4177f8097113c514d7f7128d348508ff35ab Mon Sep 17 00:00:00 2001
From: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
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 <Sreejith.Punnapuzha@outlook.com>
Change-Id: I48a04a8d9be1c05fe36b78c27c4fec2cfc7f4daa
---
 .../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%"