Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-deploy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cspp_geo
geosphere
geosphere-deploy
Commits
5c09eea6
Verified
Commit
5c09eea6
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Fix bash syntax in MinIO deployment
parent
755c7508
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
with
5 additions
and
5 deletions
.gitlab-ci.yml
+
5
−
5
View file @
5c09eea6
...
@@ -146,17 +146,17 @@ deploy_prod_minio:
...
@@ -146,17 +146,17 @@ deploy_prod_minio:
-
kubeconfig=$(basename $kubekorner_k3s_config)
-
kubeconfig=$(basename $kubekorner_k3s_config)
# get password from any previous installation
# get password from any previous installation
-
auth_sec="geosphere-minio-minio"
-
auth_sec="geosphere-minio-minio"
-
sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace
geosphere-test geosphere-minio-minio
|| echo "")
-
sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace
$ns $auth_sec
|| echo "")
-
echo $sec_info
-
echo
"
$sec_info
"
# if we've installed this once then reuse the existing secret
# if we've installed this once then reuse the existing secret
# otherwise force the chart to generate random values for accessKey and secretKey
# otherwise force the chart to generate random values for accessKey and secretKey
# by setting them to false
# by setting them to false
-
if [ "$sec_info" != "" ]; then
-
if [ "$sec_info" != "" ]; then
ak=$(kubectl --kubeconfig $kubeconfig get secret --namespace $ns
$auth_sec -o jsonpath="{.data.accessKey}" | base64 -d);
ak=$(kubectl --kubeconfig $kubeconfig get secret --namespace
"
$ns
" "
$auth_sec
"
-o jsonpath="{.data.accessKey}" | base64 -d);
sk=$(kubectl --kubeconfig $kubeconfig get secret --namespace $ns
$auth_sec -o jsonpath="{.data.secretKey}" | base64 -d);
sk=$(kubectl --kubeconfig $kubeconfig get secret --namespace
"
$ns
" "
$auth_sec
"
-o jsonpath="{.data.secretKey}" | base64 -d);
EXTRA_ARGS="--set existingSecret=$auth_sec --set accessKey=$ak --set secretKey=$sk";
EXTRA_ARGS="--set existingSecret=$auth_sec --set accessKey=$ak --set secretKey=$sk";
else
else
EXTRA_ARGS="--set accessKey=false --set secretKey=false"
EXTRA_ARGS="--set accessKey=false --set secretKey=false"
;
fi
fi
-
echo $EXTRA_ARGS
-
echo $EXTRA_ARGS
-
helm upgrade -v 2 --install --kubeconfig $kubeconfig -f production/values-geosphere-minio.yaml $EXTRA_ARGS --namespace $ns geosphere-minio stable/minio
-
helm upgrade -v 2 --install --kubeconfig $kubeconfig -f production/values-geosphere-minio.yaml $EXTRA_ARGS --namespace $ns geosphere-minio stable/minio
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment