format
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 37s
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Has been skipped

This commit is contained in:
2026-06-01 03:15:15 +02:00
parent e6d2b6154a
commit 8eb59643cf
+4 -3
View File
@@ -48,7 +48,8 @@ const worker2VmId = vmIdsOutput.apply((ids) => String(ids.worker2));
// SSH connection helper // SSH connection helper
function conn( function conn(
ip: pulumi.Input<string>): command.types.input.remote.ConnectionArgs { ip: pulumi.Input<string>,
): command.types.input.remote.ConnectionArgs {
return { host: ip, user: "ubuntu", privateKey: ciRunnerPrivateKey }; return { host: ip, user: "ubuntu", privateKey: ciRunnerPrivateKey };
} }
@@ -227,8 +228,8 @@ const getKubeconfig = new command.remote.Command(
{ dependsOn: [joinWorker1, joinWorker2] }, { dependsOn: [joinWorker1, joinWorker2] },
); );
export const kubeconfig = pulumi.secret( export const kubeconfig = pulumi.secret(
pulumi pulumi
.all([getKubeconfig.stdout, master1Ip]) .all([getKubeconfig.stdout, master1Ip])
.apply(([kc, ip]) => kc.replaceAll("127.0.0.1", ip as string).trim()), .apply(([kc, ip]) => kc.replaceAll("127.0.0.1", ip as string).trim()),
); );