Skip to content

Commit 71e6a79

Browse files
committed
Belt and braces
1 parent 7e8a474 commit 71e6a79

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/arch.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ set_arch() {
1717
elif [[ $(uname -m) == "arm64" ]]; then
1818
export __mokarch=arm64
1919
fi
20+
else
21+
printf 'ERROR: Unknown OS type: %s\n' "${__mokostype}" >"${STDERR}"
22+
exit "${ERROR}"
2023
fi
2124
}
2225

src/buildimage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ build image options:
4343
Flags:
4444
--get-prebuilt-image - Instead of building a 'node' image
4545
locally, download it from a container registry instead.
46-
--k8sver VERSION - The Kubernetes version, e.g. "1.32.0" or "1.32.1".
47-
A previous version cannot be built from scratch. This option
46+
--k8sver VERSION - The Kubernetes version, e.g. "1.32.0"
47+
A previous version cannot be built from scratch hence this option
4848
must be used with '--get-prebuilt-image'. To build a previous
4949
version of kubernetes it must be built with a previous version
5050
of mok.

src/createcluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ create cluster [flags] options:
137137
--with-lb - Add a haproxy load balancer. The software will be installed
138138
and set up to reverse proxy to the master node(s), unless
139139
--skiplbsetup is used.
140-
--k8sver VERSION - The Kubernetes version, e.g. "1.32.0" or "1.32.1".
140+
--k8sver VERSION - The Kubernetes version, e.g. "1.32.0".
141141
A previous version will need to be downloaded first with:
142142
mok build image --get-prebuilt-image --k8sver VERSION
143143
--masters NUM - The number of master containers to create.

src/main.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ MA_program_args() {
1717
# MA_arg_1 getter outputs the first argument sent by the user.
1818
# Used by _CU_podman_checks so it doesn't check for a podman machine
1919
# if we're running 'machine' commands
20+
# FIXME: The command might not be the first argument. It could be '-p'
2021
MA_arg_1() {
2122
printf '%s' "${_MA[arg_1]}"
2223
}

0 commit comments

Comments
 (0)