Skip to content

Commit 9d6aa02

Browse files
committed
Revert "template frontproxy externalhostname on frontproxy targeting kubeconfigs"
This reverts commit 3b98e30. On-behalf-of: SAP <[email protected]> Signed-off-by: Simon Bein <[email protected]>
1 parent 6b44d71 commit 9d6aa02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/kubeconfig_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ func (r *KubeconfigReconciler) Reconcile(ctx context.Context, req ctrl.Request)
127127

128128
clientCertIssuer = resources.GetRootShardCAName(&rootShard, operatorv1alpha1.FrontProxyClientCA)
129129
serverCA = resources.GetRootShardCAName(&rootShard, operatorv1alpha1.ServerCA)
130-
serverURL = fmt.Sprintf("https://%s:6443", frontProxy.Spec.ExternalHostname)
131-
serverName = frontProxy.Spec.ExternalHostname
130+
serverURL = fmt.Sprintf("https://%s:6443", rootShard.Spec.External.Hostname)
131+
serverName = rootShard.Spec.External.Hostname
132132

133133
default:
134134
return ctrl.Result{}, fmt.Errorf("no valid target for kubeconfig found")

0 commit comments

Comments
 (0)