Skip to content

Commit 538b37c

Browse files
committed
Release v1.1.1
1 parent 57402a3 commit 538b37c

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v1.1.1
4+
- Исправил баг с возможностью вводить четное число в кол-во CP
5+
36
## v1.1.0
47
- Добавлен автосейв cluster.yaml с параметрами кластера (только в интерактивном режиме)
58
- Команды ручной инициализации теперь сохраняются в config/commands.md

Makefile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ help:
55
@echo " build-linux-arm64 - Build for Linux"
66
@echo " build-darwin-amd64 - Build for macOS"
77
@echo " build-darwin-arm64 - Build for macOS"
8-
@echo " build-windows-amd64 - Build for Windows"
9-
@echo " build-windows-arm64 - Build for Windows"
108
@echo " build-all - Build for all platforms"
119
@echo " build-all-linux - Build for Linux only"
1210

@@ -26,12 +24,6 @@ build-darwin-arm64:
2624
GOOS=darwin GOARCH=arm64 go build -o distrib/talostpl-darwin-arm64 main.go
2725
chmod +x distrib/talostpl-darwin-arm64
2826

29-
build-windows:
30-
GOOS=windows GOARCH=amd64 go build -o distrib/talostpl-windows-amd64.exe main.go
31-
32-
build-windows-arm64:
33-
GOOS=windows GOARCH=arm64 go build -o distrib/talostpl-windows-arm64.exe main.go
34-
3527
build-all-linux:
3628
make build-linux-amd64
3729
make build-linux-arm64
@@ -40,11 +32,6 @@ build-all-darwin:
4032
make build-darwin-amd64
4133
make build-darwin-arm64
4234

43-
build-all-windows:
44-
make build-windows-amd64
45-
make build-windows-arm64
46-
4735
build-all:
4836
make build-all-linux
4937
make build-all-darwin
50-
make build-all-windows

main.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
image string = "factory.talos.dev/metal-installer/956b9107edd250304169d2e7a765cdd4e0c31f9097036e2e113b042e6c01bb98:v1.10.4"
2121
k8sVersion string = "1.33.2"
2222
configDir string = "config"
23-
version = "v1.1.0"
23+
version = "v1.1.1"
2424
)
2525

2626
const (
@@ -804,8 +804,17 @@ func generateCmd() *cobra.Command {
804804
ans.ClusterName = askNumbered("Enter cluster name [talos-demo]: ", "talos-demo")
805805
ans.K8sVersion = askNumbered("Enter Kubernetes version ["+k8sVersion+"]: ", k8sVersion)
806806
ans.Image = askNumbered("Enter Talos installer image ["+image+"]: ", image)
807-
ans.Iface = askNumbered("Enter network interface name ens18 or eth0 may be? [ens18]: ", "ens18")
808-
ans.CPCount = mustAtoi(askNumbered("Enter number of control planes (odd, max 7) [1]: ", "1"))
807+
ans.Iface = askNumbered("Enter network interface name ens18 (KVM, Proxmox) or eth0 (Nebula) may be? [ens18]: ", "ens18")
808+
var cpCount int
809+
for {
810+
cpCount = mustAtoi(askNumbered("Enter number of control planes (odd, max 7) [1]: ", "1"))
811+
if cpCount < 1 || cpCount > 7 || cpCount%2 == 0 {
812+
fmt.Printf("%sEnter an odd number between 1 and 7.%s\n", colorRed, colorReset)
813+
continue
814+
}
815+
break
816+
}
817+
ans.CPCount = cpCount
809818
ans.WorkerCount = mustAtoi(askNumbered("Enter number of worker nodes (max 15, min 0) [3]: ", "3"))
810819
ans.Gateway = askNumbered("Enter default gateway: ", "")
811820
ans.Netmask = askNumbered("Enter network mask [24]: ", "24")

0 commit comments

Comments
 (0)