Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GitLab
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
391
Issues
391
List
Boards
Labels
Service Desk
Milestones
Merge Requests
27
Merge Requests
27
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GitLab.org
charts
GitLab
Commits
15f2f627
Commit
15f2f627
authored
Apr 15, 2019
by
Ian Baum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI image doesn't have jq. We don't need it anyway
parent
1083faf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
.gitlab-ci.yml
.gitlab-ci.yml
+1
-19
No files found.
.gitlab-ci.yml
View file @
15f2f627
...
...
@@ -626,26 +626,8 @@ check_docs_internal_links:
echo "${name}"
}
function unicorn_ready() {
release=$(release_name)
unicorn=$(kubectl -n ${KUBE_NAMESPACE} get deployment -l app=unicorn,release=${release} -o json)
unicorn_status=$(echo ${unicorn} | jq 'has("items")')
if [ "${unicorn_status}" = "false" ]
then
return 1
fi
status=$(echo "${unicorn})" | jq '.["items"][0]["status"]')
replicas=$(echo "${status}" | jq -r '.["replicas"]')
ready_replicas=$(echo "${status}" | jq -r '.["readyReplicas"]')
if [ "${replicas}" = "${ready_replicas}" ]
then
return 0
fi
return 1
}
function wait_for_unicorn() {
while !
unicorn_ready
while !
kubectl -n ${KUBE_NAMESPACE} rollout-status deployment/$(release_name)-unicorn
do
echo "Waiting for unicorn to be ready"
sleep 5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment