Skip to content

Commit 4e6c271

Browse files
Fix url in generated kubeconfig file
1 parent 369722b commit 4e6c271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/thin_entrypoint/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (o *Options) createKubeConfig(prevCAHash, prevSATokenHash []byte) ([]byte,
225225
return nil, nil, fmt.Errorf("template parse error: %v", err)
226226
}
227227
templateData := map[string]string{
228-
"KubeConfigHost": fmt.Sprintf("%s://[%s]:%s", kubeProtocol, kubeHost, kubePort),
228+
"KubeConfigHost": fmt.Sprintf("%s://%s:%s", kubeProtocol, kubeHost, kubePort),
229229
"KubeServerTLS": tlsConfig,
230230
"KubeServiceAccountToken": string(saTokenByte),
231231
}

0 commit comments

Comments
 (0)