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;
|
||||
|
||||
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'),
|
||||
hpa: original.clone(),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default Route.extend({
|
|||
const clusterStore = get(this, 'clusterStore');
|
||||
|
||||
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')
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1718,7 +1718,7 @@ cruHpa:
|
|||
description:
|
||||
placeholder: e.g. My scaler
|
||||
prompt:
|
||||
deployment: Select a Deployment...
|
||||
deployment: Select a Workload...
|
||||
minReplicas:
|
||||
label: Min Replicas
|
||||
placeholder: e.g. 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue