-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy pathform-deployment.vue
231 lines (218 loc) · 6.81 KB
/
form-deployment.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<template>
<div>
<v-row>
<v-col cols="12" sm="12" md="12" lg="12" xl="12">
<h2>
Connecting repositories
</h2>
<!--
<p class="text-justify">
Define the available pod sizes for the applications.
</p>
-->
<v-alert
type="info"
variant="tonal"
style="margin-bottom: 20px; margin-top: 20px;"
text="Configuration changes won't take effect until the Kubero UI container is restarted manually.">
</v-alert>
</v-col>
</v-row>
<v-divider class="ma-5"></v-divider>
<h4 class="text-uppercase">Webhook Endpoint</h4>
<v-row>
<v-col
cols="12"
md="8"
>
<v-text-field
v-model="settings.settings.kubero.webhook_url"
label="URL"
required
></v-text-field>
</v-col>
</v-row>
<v-row>
<v-col
cols="12"
md="8"
>
<v-text-field
v-model="settings.secrets.KUBERO_WEBHOOK_SECRET"
label="Secret"
required
:append-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
:type="show ? 'text' : 'password'"
@click:append="show = !show"
></v-text-field>
</v-col>
</v-row>
<v-divider class="ma-5"></v-divider>
<h4 class="text-uppercase">Github</h4>
<v-row>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GITHUB_BASEURL"
label="github Base Url"
required
></v-text-field>
</v-col>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GITHUB_PERSONAL_ACCESS_TOKEN"
label="github personal access token"
required
:append-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
:type="show ? 'text' : 'password'"
@click:append="show = !show"
></v-text-field>
</v-col>
<v-col
cols="12"
md="6"
>Instructions on how to get a Personal access token from <a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token" target="_blank">Github</a>
</v-col>
</v-row>
<h4 class="text-uppercase">Gitea</h4>
<v-row>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GITEA_BASEURL"
label="Gitea Base URL"
required
></v-text-field>
</v-col>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GITEA_PERSONAL_ACCESS_TOKEN"
label="Gitea Personal Access Token"
required
:append-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
:type="show ? 'text' : 'password'"
@click:append="show = !show"
></v-text-field>
</v-col>
<v-col
cols="12"
md="6"
>Instructions on how to get a Personal access token for <a href="https://www.jetbrains.com/help/youtrack/cloud/integration-with-gitea.html#enable-youtrack-integration-gitea" target="_blank">Gitea</a>
</v-col>
</v-row>
<h4 class="text-uppercase">Gogs</h4>
<v-row>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GOGS_BASEURL"
label="Gogs Base URL"
required
></v-text-field>
</v-col>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GOGS_PERSONAL_ACCESS_TOKEN"
label="Gogs Personal Access Token"
required
:append-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
:type="show ? 'text' : 'password'"
@click:append="show = !show"
></v-text-field>
</v-col>
</v-row>
<h4 class="text-uppercase">Gitlab</h4>
<v-row>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GITLAB_BASEURL"
label="Gitlab Base URL"
required
></v-text-field>
</v-col>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.GITLAB_PERSONAL_ACCESS_TOKEN"
label="Gitlab Personal Access Token"
required
:append-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
:type="show ? 'text' : 'password'"
@click:append="show = !show"
></v-text-field>
</v-col>
</v-row>
<h4 class="text-uppercase">Bitbucket</h4>
<v-row>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.BITBUCKET_USERNAME"
label="Bitbucket Username"
required
></v-text-field>
</v-col>
<v-col
cols="12"
md="3"
>
<v-text-field
v-model="settings.secrets.BITBUCKET_APP_PASSWORD"
label="Bitbucket App Password"
required
:append-icon="show ? 'mdi-eye' : 'mdi-eye-off'"
:type="show ? 'text' : 'password'"
@click:append="show = !show"
></v-text-field>
</v-col>
</v-row>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { Secrets } from './form.vue'
interface Settings {
settings: any,
secrets: Secrets
}
export default defineComponent({
name: 'FormDeployment',
props: {
settings: {
type: Object as () => Settings,
required: true
},
},
components: {
},
data() {
return {
show: false,
}
},
methods: {
}
})
</script>