mirror of https://github.com/rancher/ui.git
Fix host label fields (rancher/rancher#1461), s/project/stack label (rancher/rancher#1483)
This commit is contained in:
parent
6e83c47b92
commit
d93dcb0c45
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"ignore_dirs": ["tmp"]
|
||||
"ignore_dirs": ["tmp"],
|
||||
"fsevents_latency": 0.1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,11 @@ export default Ember.Mixin.create({
|
|||
},
|
||||
|
||||
addSystemLabel: function(key, value, type) {
|
||||
if ( !key )
|
||||
{
|
||||
key = C.LABEL.SCHED_HOST_LABEL;
|
||||
}
|
||||
|
||||
if ( !type )
|
||||
{
|
||||
type = ((key||'').indexOf(C.LABEL.SCHED_AFFINITY) === 0 ? 'affinity' : 'system');
|
||||
|
|
|
|||
|
|
@ -70,8 +70,8 @@ var C = {
|
|||
|
||||
LABEL: {
|
||||
SYSTEM_PREFIX: 'io.rancher.',
|
||||
SERVICE_NAME: 'io.rancher.project_service.name',
|
||||
PROJECT_NAME: 'io.rancher.project.name',
|
||||
SERVICE_NAME: 'io.rancher.stack_service.name',
|
||||
PROJECT_NAME: 'io.rancher.stack.name',
|
||||
SCHED_GLOBAL: 'io.rancher.scheduler.global',
|
||||
SCHED_AFFINITY: 'io.rancher.scheduler.affinity:',
|
||||
SCHED_CONTAINER: 'io.rancher.scheduler.affinity:container',
|
||||
|
|
|
|||
Loading…
Reference in New Issue