Skip to content

Commit 471de1f

Browse files
authored
Merge pull request #532 from kubero-dev/feature/improve-standallone-startup
Feature/improve standallone startup
2 parents dc9377e + 0f7f4f9 commit 471de1f

File tree

14 files changed

+1034
-29
lines changed

14 files changed

+1034
-29
lines changed

client/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@mdi/font": "7.0.96",
14+
"@wdns/vue-code-block": "^2.3.3",
1415
"apexcharts": "^3.49.0",
1516
"axios": "^1.7.4",
1617
"chart.js": "^4.4.1",
@@ -28,7 +29,8 @@
2829
"vue3-apexcharts": "^1.5.2",
2930
"vue3-cookies": "^1.0.6",
3031
"vuetify": "^3.4.0",
31-
"xterm": "^5.3.0"
32+
"xterm": "^5.3.0",
33+
"yaml": "^2.6.1"
3234
},
3335
"devDependencies": {
3436
"@babel/types": "^7.21.4",

client/src/components/pipelines/list.vue

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
<v-col class="text-right">
1111
<v-btn
1212
elevation="2"
13+
:disabled="kubero.kubernetesVersion == 'unknown'"
1314
color="primary"
1415
:to="{ name: 'Pipeline Form', params: { pipeline: 'new' }}"
1516
>New Pipeline</v-btn>
1617
</v-col>
1718
</v-row>
1819

19-
<v-row v-if="pipelines && pipelines.length < 1" class="delay-visible-enter-active">
20+
<v-row v-if="(pipelines && pipelines.length < 1) && kubero.kubernetesVersion != 'unknown'" class="delay-visible-enter-active">
2021
<v-alert
2122
color="info"
2223
icon="mdi-star-outline"
@@ -43,6 +44,22 @@
4344
>Create your first pipeline</v-btn>
4445
</v-col>
4546
</v-row>
47+
<v-row v-if="kubero.kubernetesVersion == 'unknown'">
48+
<v-alert
49+
type="error"
50+
prominent
51+
title="Kubernetes Connection Error"
52+
variant="tonal"
53+
>
54+
<p>Kubero can't reach your kubernetes cluster. Please proceed with the setup to continue.</p>
55+
56+
<v-btn
57+
color="success"
58+
class="mt-4"
59+
:to="{ name: 'Setup', params: { step: '1' }}"
60+
>Start Setup</v-btn>
61+
</v-alert>
62+
</v-row>
4663

4764
<v-row v-for="item in pipelines" :key="item.name" :id="item.name">
4865
<v-col cols="12">
@@ -113,6 +130,7 @@ import axios from "axios";
113130
import { ref, defineComponent } from 'vue'
114131
import Breadcrumbs from "../breadcrumbs.vue";
115132
import { useKuberoStore } from '../../stores/kubero'
133+
import { mapState } from 'pinia'
116134
import Swal from 'sweetalert2';
117135
118136
type Pipeline = {
@@ -172,6 +190,9 @@ export default defineComponent({
172190
}
173191
],
174192
}},
193+
computed: {
194+
...mapState(useKuberoStore, ['kubero']),
195+
},
175196
methods: {
176197
async loadPipelinesList() {
177198
const self = this;

0 commit comments

Comments
 (0)