forked from kubash/kubash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding some istio options * Update rpmpackstrap * istioValues * centos8 * parse_opts * centos8script * basename * Accomodate 8 * ceph-common * extraupdate * Removing missing packages from centos8 * centos8 runtime * Error: Nothing to do * y * apply * xenial * Adding crio method to pax * rook * exitnormal * detect
- Loading branch information
Showing
16 changed files
with
960 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -eux | ||
if [ $# -ne 1 ]; then | ||
# Print usage | ||
echo 'Error! wrong number of arguments' | ||
echo 'usage:' | ||
echo "$0 kube_version" | ||
exit 1 | ||
fi | ||
THIS_OS=centos8 | ||
KUBE_VERSION=$1 | ||
if [[ -e pax/${THIS_OS}${KUBE_VERSION} ]]; then | ||
echo 'directory already exists! exiting softly' | ||
exit 0 | ||
fi | ||
cp -av templates/${THIS_OS}-kube.tpl pax/${THIS_OS}${KUBE_VERSION} | ||
cd pax/${THIS_OS}${KUBE_VERSION} | ||
if [[ -e $KUBASH_DIR/.packer_cache_path ]]; then | ||
PACKER_CACHE_PATH=$(cat $KUBASH_DIR/.packer_cache_path) | ||
ln -s $PACKER_CACHE_PATH ./packer_cache | ||
fi | ||
mv ${THIS_OS}REPLACEME_KUBE_VERSION.json ${THIS_OS}${KUBE_VERSION}.json | ||
sed -i "s/REPLACEME_KUBE_VERSION/${KUBE_VERSION}/g" ${THIS_OS}${KUBE_VERSION}.json | ||
|
Oops, something went wrong.