diff --git a/app/authenticated/project/hpa/detail/edit/route.js b/app/authenticated/project/hpa/detail/edit/route.js index eec025576..1e618de9f 100644 --- a/app/authenticated/project/hpa/detail/edit/route.js +++ b/app/authenticated/project/hpa/detail/edit/route.js @@ -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(), }); diff --git a/app/authenticated/project/hpa/new/route.js b/app/authenticated/project/hpa/new/route.js index 8d62c4ff1..dce1465a5 100644 --- a/app/authenticated/project/hpa/new/route.js +++ b/app/authenticated/project/hpa/new/route.js @@ -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') }; diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 623e1386b..3103021ed 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -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