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
25454d6c
Verified
Commit
25454d6c
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Fix copy of main rabbitmq secrets to geosphere-test namespace
parent
6c1a5534
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci_geosphere-test/gitlab-ci.yaml
+0
-5
0 additions, 5 deletions
ci_geosphere-test/gitlab-ci.yaml
ci_geosphere/gitlab-ci.yaml
+4
-0
4 additions, 0 deletions
ci_geosphere/gitlab-ci.yaml
helpers/deploy_rabbitmq.sh
+1
-1
1 addition, 1 deletion
helpers/deploy_rabbitmq.sh
with
5 additions
and
6 deletions
ci_geosphere-test/gitlab-ci.yaml
+
0
−
5
View file @
25454d6c
...
@@ -40,11 +40,6 @@ gstest deploy rabbit:
...
@@ -40,11 +40,6 @@ gstest deploy rabbit:
stage
:
deploy rabbit
stage
:
deploy rabbit
script
:
script
:
-
./helpers/deploy_rabbitmq.sh ci_geosphere-test
-
./helpers/deploy_rabbitmq.sh ci_geosphere-test
-
cp ${kubekorner_k3s_config} .
-
kubeconfig=$(basename ${kubekorner_k3s_config})
# FIXME: This may never run. This should be put on the production side
-
|-
kubectl get secret --kubeconfig "${kubeconfig}" geosphere-rabbit-rabbitmq --namespace=geosphere -oyaml | grep -v '^\s*namespace:\s' | grep -v "helm" | sed 's/ name: .*/ name: geosphere-rabbit-rabbitmq-production/' | kubectl apply --kubeconfig "${kubeconfig}" --namespace=geosphere-test -f -
# this job doesn't actually need any artifacts from previous jobs
# this job doesn't actually need any artifacts from previous jobs
dependencies
:
[]
dependencies
:
[]
rules
:
rules
:
...
...
This diff is collapsed.
Click to expand it.
ci_geosphere/gitlab-ci.yaml
+
4
−
0
View file @
25454d6c
...
@@ -57,6 +57,10 @@ gs deploy rabbit:
...
@@ -57,6 +57,10 @@ gs deploy rabbit:
stage
:
deploy rabbit
stage
:
deploy rabbit
script
:
script
:
-
./helpers/deploy_rabbitmq.sh ci_geosphere
-
./helpers/deploy_rabbitmq.sh ci_geosphere
-
cp ${kubekorner_k3s_config} .
-
kubeconfig=$(basename ${kubekorner_k3s_config})
-
|-
kubectl get secret --kubeconfig "${kubeconfig}" geosphere-rabbit-rabbitmq --namespace=geosphere -oyaml | grep -v '^\s*namespace:\s' | grep -v "helm" | sed 's/ name: .*/ name: geosphere-rabbit-rabbitmq-production/' | kubectl apply --kubeconfig "${kubeconfig}" --namespace=geosphere-test -f -
# this job doesn't actually need any artifacts from previous jobs
# this job doesn't actually need any artifacts from previous jobs
dependencies
:
[]
dependencies
:
[]
rules
:
rules
:
...
...
This diff is collapsed.
Click to expand it.
helpers/deploy_rabbitmq.sh
+
1
−
1
View file @
25454d6c
...
@@ -32,7 +32,7 @@ if [[ "$sec_info" != "" ]]; then
...
@@ -32,7 +32,7 @@ if [[ "$sec_info" != "" ]]; then
ec
=
$(
kubectl
--kubeconfig
$kubeconfig
get secret
--namespace
$ns
$auth_sec
-o
jsonpath
=
"{.data.rabbitmq-erlang-cookie}"
|
base64
-d
)
;
ec
=
$(
kubectl
--kubeconfig
$kubeconfig
get secret
--namespace
$ns
$auth_sec
-o
jsonpath
=
"{.data.rabbitmq-erlang-cookie}"
|
base64
-d
)
;
EXTRA_ARGS
=
"--set auth.password=
$pw
--set auth.erlangCookie=
$ec
"
;
EXTRA_ARGS
=
"--set auth.password=
$pw
--set auth.erlangCookie=
$ec
"
;
fi
fi
echo
$EXTRA_ARGS
echo
"Adding extra arguments:
$EXTRA_ARGS
"
# install third-party rabbitmq server
# install third-party rabbitmq server
helm repo add bitnami
"https://charts.bitnami.com/bitnami"
helm repo add bitnami
"https://charts.bitnami.com/bitnami"
helm upgrade
-v
2
--install
--kubeconfig
$kubeconfig
-f
${
values_base
}
/values-geosphere-rabbit.yaml
$EXTRA_ARGS
--namespace
$ns
geosphere-rabbit bitnami/rabbitmq
helm upgrade
-v
2
--install
--kubeconfig
$kubeconfig
-f
${
values_base
}
/values-geosphere-rabbit.yaml
$EXTRA_ARGS
--namespace
$ns
geosphere-rabbit bitnami/rabbitmq
...
...
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