Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
53f8fecd
Commit
53f8fecd
authored
Mar 31, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read track from deployment and visualise canary deployments
parent
81883a09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
changelogs/unreleased-ee/visualise-canary-deployments.yml
changelogs/unreleased-ee/visualise-canary-deployments.yml
+4
-0
lib/gitlab/kubernetes/deployment.rb
lib/gitlab/kubernetes/deployment.rb
+19
-1
No files found.
changelogs/unreleased-ee/visualise-canary-deployments.yml
0 → 100644
View file @
53f8fecd
---
title
:
Visualise Canary Deployments
merge_request
:
author
:
lib/gitlab/kubernetes/deployment.rb
View file @
53f8fecd
...
...
@@ -13,6 +13,18 @@ module Gitlab
metadata
[
'labels'
]
end
def
track
labels
.
fetch
(
'track'
,
'stable'
)
end
def
stable?
track
.
nil?
||
track
==
'stable'
end
def
canary?
!
stable?
end
def
outdated?
observed_generation
<
generation
end
...
...
@@ -52,7 +64,13 @@ module Gitlab
end
def
deployment_instance
(
n
,
name
,
status
)
{
status:
status
,
tooltip:
"
#{
name
}
(pod
#{
n
}
)
#{
status
.
capitalize
}
"
}
{
status:
status
,
tooltip:
"
#{
name
}
(pod
#{
n
}
)
#{
status
.
capitalize
}
"
,
track:
track
,
canary:
canary?
,
stable:
stable?
}
end
def
metadata
...
...
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