Skip to content

Commit

Permalink
Update from review
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgrady committed Jul 26, 2024
1 parent 44ecef1 commit d786451
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
13 changes: 5 additions & 8 deletions deploy/scripts/install-combine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,13 @@ next-state () {
# Verify that the required network devices have been setup
# for Kubernetes cluster
wait-for-k8s-interfaces () {
date
echo "Waiting for k8s interfaces"
while ! ip link show flannel.1 > /dev/null 2>&1 ; do
sleep 1
done
while ! ip link show cni0 > /dev/null 2>&1 ; do
sleep 1
for interface in $@ ; do
while ! ip link show $interface > /dev/null 2>&1 ; do
sleep 1
done
done
echo "Interfaces ready"
date
}

#####
Expand Down Expand Up @@ -258,7 +255,7 @@ while [ "$STATE" != "Done" ] ; do
case $STATE in
Pre-reqs)
install-kubernetes
wait-for-k8s-interfaces
wait-for-k8s-interfaces flannel.1 cni0
next-state "Restart"
;;
Restart)
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/kube_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_kubectl_opts(self) -> List[str]:


def add_helm_opts(parser: argparse.ArgumentParser) -> None:
"""Add commandline arguments for Helm."""
"""Add command line arguments for Helm."""
parser.add_argument(
"--dry-run",
action="store_true",
Expand Down
5 changes: 2 additions & 3 deletions deploy/scripts/package_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
scripts_dir = Path(__file__).resolve().parent
ansible_dir = scripts_dir.parent / "ansible"
helm_dir = scripts_dir.parent / "helm"
config_dir = scripts_dir / "setup_files" / "combine_config.yaml"


def parse_args() -> argparse.Namespace:
Expand Down Expand Up @@ -173,8 +172,8 @@ def main() -> None:
# Clear the AWS variables so that they don't end up in the installer
os.environ["AWS_ACCESS_KEY_ID"] = ""
os.environ["AWS_SECRET_ACCESS_KEY"] = ""
os.environ["AWS_SECRET_ACCESS_KEY"] = ""
os.environ["AWS_SECRET_ACCESS_KEY"] = ""
os.environ["AWS_ACCOUNT"] = ""
os.environ["AWS_DEFAULT_REGION"] = ""

# Update helm repos
package_k3s(image_dir)
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/setup_files/cluster_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ clusters:
- nginx-ingress-controller
rancher:
- rancher-ui
cert-mgr:
cert-manager:
- cert-manager
ingress:
- nginx-ingress-controller
Expand Down
4 changes: 2 additions & 2 deletions installer/make-combine-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if [[ $NET_INSTALL == 0 ]] ; then
python -m pip install --upgrade pip pip-tools
python -m piptools sync requirements.txt

# Package the so that the Combine can be installed "offline"
# Package the Combine for "offline" installation
TEMP_DIR=/tmp/images-$$
pushd scripts
./package_images.py ${COMBINE_VERSION} ${TEMP_DIR}
Expand All @@ -66,7 +66,7 @@ if [[ $NET_INSTALL == 0 ]] ; then
tar czf ${TEMP_DIR}/venv.tar.gz venv
rm -rf venv
else
# Package the so that the Combine can be installed over the network
# Package the Combine for network installation
INSTALLER_NAME="combine-net-installer.run"
fi

Expand Down

0 comments on commit d786451

Please sign in to comment.