Merge pull request #3660 from loganhz/hpa

Support StatefulSet in HPA UI
This commit is contained in:
Westly Wright 2019-12-23 09:47:09 -07:00 committed by GitHub
commit 44da6fb6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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(),
}); });

View File

@ -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')
}; };

View File

@ -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