We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8770bfd commit 60e0394Copy full SHA for 60e0394
scripts/create-k8s.sh
@@ -582,8 +582,24 @@ nodeGroups:
582
amiFamily: $AMI_FAMILY
583
volumeSize: 20
584
volumeType: gp3
585
+EOF
586
+
587
+ # Only add SSH configuration if we're not in CI and SSH keys exist
588
+ if [[ -z "$GITHUB_ACTIONS" && (-f ~/.ssh/id_rsa.pub || -f ~/.ssh/id_ed25519.pub) ]]; then
589
+ cat >> "$CLUSTER_CONFIG" << EOF
590
ssh:
591
allow: true
592
593
+ print_info "SSH access enabled for nodes"
594
+ else
595
596
+ ssh:
597
+ allow: false
598
599
+ print_info "SSH access disabled (CI environment or no SSH keys found)"
600
+ fi
601
602
603
labels:
604
role: worker
605
tags:
0 commit comments