Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #77 from TheNewNormal/v0.4.3
Browse files Browse the repository at this point in the history
v0.4.3
  • Loading branch information
rimusz authored Jul 13, 2016
2 parents ff22b78 + ff9516a commit 734c6ed
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kube-Cluster/Kube-Cluster-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.2</string>
<string>0.4.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>161</string>
<string>163</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
27 changes: 27 additions & 0 deletions src/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@ function pause(){
}


function check_iso_offline_setting() {
# check if offline setting is present in setting files

# master
check=$(cat ~/kube-cluster/settings/k8smaster-01.toml | grep "offline" )
if [[ "${check}" = "" ]]
then
echo ' offline = "true"' >> ~/kube-cluster/settings/k8smaster-01.toml
fi

# node 1
check=$(cat ~/kube-cluster/settings/k8snode-01.toml | grep "offline" )
if [[ "${check}" = "" ]]
then
echo ' offline = "true"' >> ~/kube-cluster/settings/k8snode-01.toml
fi

# node 2
check=$(cat ~/kube-cluster/settings/k8snode-02.toml | grep "offline" )
if [[ "${check}" = "" ]]
then
echo ' offline = "true"' >> ~/kube-cluster/settings/k8snode-02.toml
fi

}


function check_corectld_server() {
# check corectld server
#
Expand Down
2 changes: 2 additions & 0 deletions src/settings/k8smaster-01.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
cpus = 1
memory = 1024
local = "true"
offline = "true"

2 changes: 2 additions & 0 deletions src/settings/k8snode-01.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
cpus = 2
memory = 2048
local = "true"
offline = "true"

2 changes: 2 additions & 0 deletions src/settings/k8snode-02.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
cpus = 2
memory = 2048
local = "true"
offline = "true"

3 changes: 3 additions & 0 deletions src/up.command
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source "${DIR}"/functions.sh

# check if offline setting is present in setting files
check_iso_offline_setting

# check corectld server
check_corectld_server

Expand Down

0 comments on commit 734c6ed

Please sign in to comment.