mirror of https://github.com/rancher/ui.git
Merge pull request #3660 from loganhz/hpa
Support StatefulSet in HPA UI
This commit is contained in:
commit
44da6fb6be
|
|
@ -12,7 +12,7 @@ export default Route.extend({
|
||||||
const original = this.modelFor('authenticated.project.hpa.detail').hpa;
|
const original = this.modelFor('authenticated.project.hpa.detail').hpa;
|
||||||
|
|
||||||
return hash({
|
return hash({
|
||||||
deployments: store.findAll('deployment'),
|
deployments: store.findAll('workload').then((workloads) => workloads.filter((w) => w.type === 'statefulSet' || w.type === 'deployment')),
|
||||||
apiServices: clusterStore.findAll('apiService'),
|
apiServices: clusterStore.findAll('apiService'),
|
||||||
hpa: original.clone(),
|
hpa: original.clone(),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export default Route.extend({
|
||||||
const clusterStore = get(this, 'clusterStore');
|
const clusterStore = get(this, 'clusterStore');
|
||||||
|
|
||||||
const deps = {
|
const deps = {
|
||||||
deployments: store.findAll('deployment'),
|
deployments: store.findAll('workload').then((workloads) => workloads.filter((w) => w.type === 'statefulSet' || w.type === 'deployment')),
|
||||||
apiServices: clusterStore.findAll('apiService')
|
apiServices: clusterStore.findAll('apiService')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1718,7 +1718,7 @@ cruHpa:
|
||||||
description:
|
description:
|
||||||
placeholder: e.g. My scaler
|
placeholder: e.g. My scaler
|
||||||
prompt:
|
prompt:
|
||||||
deployment: Select a Deployment...
|
deployment: Select a Workload...
|
||||||
minReplicas:
|
minReplicas:
|
||||||
label: Min Replicas
|
label: Min Replicas
|
||||||
placeholder: e.g. 1
|
placeholder: e.g. 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue