Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failed deployments warning in k8s #2417

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/playground/src/components/k8s_deployment_table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
</template>

<script lang="ts" setup>
import { capitalize, onMounted, ref } from "vue";
import { onMounted, ref } from "vue";

import { getNodeHealthColor, NodeHealth } from "@/utils/get_nodes";

Expand Down Expand Up @@ -173,11 +173,7 @@ async function loadDeployments() {
});

const clusters = mergeLoadedDeployments(chunk1, chunk2, chunk3);
failedDeployments.value = [
...(Array.isArray((chunk1 as any).failedDeployments) ? (chunk1 as any).failedDeployments : []),
...(Array.isArray((chunk2 as any).failedDeployments) ? (chunk2 as any).failedDeployments : []),
...(Array.isArray((chunk3 as any).failedDeployments) ? (chunk3 as any).failedDeployments : []),
];
failedDeployments.value = clusters.failedDeployments;

count.value = clusters.count;
items.value = clusters.items.map((item: any) => {
Expand Down
1 change: 0 additions & 1 deletion packages/playground/src/utils/load_deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ export async function loadK8s(grid: GridClient) {
await migrateModule(grid.k8s);

const clusters = await grid.k8s.list();
const failedK8s: string[] = [];

const projectName = grid.clientOptions.projectName;
const grids = (await Promise.all(
Expand Down
Loading