Skip to content

Commit 91f5538

Browse files
committed
add default ENV vars and TTL for Environments
1 parent 7e3bee8 commit 91f5538

File tree

2 files changed

+216
-88
lines changed

2 files changed

+216
-88
lines changed

client/src/components/apps/form.vue

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@
172172
row
173173
label="Strategy"
174174
>
175-
<v-radio
176-
label="GitOps"
177-
value="git"
178-
></v-radio>
179175
<v-radio
180176
label="Container Image"
181177
value="docker"
182178
></v-radio>
179+
<v-radio
180+
label="From Source"
181+
value="git"
182+
></v-radio>
183183
<!--
184184
<v-radio
185185
label="Build"
@@ -783,58 +783,58 @@
783783
<v-expansion-panel-title class="text-uppercase text-caption-2 font-weight-medium" color="cardBackground">Environment Variables</v-expansion-panel-title>
784784
<v-expansion-panel-text color="cardBackground">
785785
<v-row v-for="(envvar, index) in envvars" :key="index">
786-
<v-col
787-
cols="12"
788-
md="5"
789-
>
790-
<v-text-field
791-
v-model="envvar.name"
792-
label="name"
793-
:counter="60"
794-
></v-text-field>
795-
</v-col>
796-
<v-col
797-
cols="12"
798-
md="6"
799-
>
800-
<v-text-field
801-
v-model="envvar.value"
802-
label="value"
803-
></v-text-field>
804-
</v-col>
805-
<v-col
806-
cols="12"
807-
md="1"
808-
>
809-
<v-btn
810-
elevation="2"
811-
icon
812-
small
813-
@click="removeEnvLine(envvar.name)"
786+
<v-col
787+
cols="12"
788+
md="5"
814789
>
815-
<v-icon dark >
816-
mdi-minus
817-
</v-icon>
818-
</v-btn>
819-
</v-col>
820-
</v-row>
790+
<v-text-field
791+
v-model="envvar.name"
792+
label="name"
793+
:counter="60"
794+
></v-text-field>
795+
</v-col>
796+
<v-col
797+
cols="12"
798+
md="6"
799+
>
800+
<v-text-field
801+
v-model="envvar.value"
802+
label="value"
803+
></v-text-field>
804+
</v-col>
805+
<v-col
806+
cols="12"
807+
md="1"
808+
>
809+
<v-btn
810+
elevation="2"
811+
icon
812+
small
813+
@click="removeEnvLine(envvar.name)"
814+
>
815+
<v-icon dark >
816+
mdi-minus
817+
</v-icon>
818+
</v-btn>
819+
</v-col>
820+
</v-row>
821821

822-
<v-row>
823-
<v-col
824-
cols="12"
825-
>
826-
<v-btn
827-
elevation="2"
828-
icon
829-
small
830-
@click="addEnvLine()"
822+
<v-row>
823+
<v-col
824+
cols="12"
831825
>
832-
<v-icon dark >
833-
mdi-plus
834-
</v-icon>
835-
</v-btn>
836-
</v-col>
837-
</v-row>
826+
<v-btn
827+
elevation="2"
828+
icon
829+
small
830+
@click="addEnvLine()"
831+
>
832+
<v-icon dark >
833+
mdi-plus
834+
</v-icon>
835+
</v-btn>
836+
</v-col>
837+
</v-row>
838838

839839
<v-row>
840840
<v-file-input prepend-icon="mdi-file" label="Drop or select .env file" show-size v-model="envFile" @change="handleFileInput"></v-file-input>
@@ -1291,7 +1291,7 @@ type GitRepo = {
12911291
visibility: string,
12921292
}
12931293
1294-
type EnvVar = {
1294+
export type EnvVar = {
12951295
name: string,
12961296
value: string,
12971297
}
@@ -1420,7 +1420,7 @@ export default defineComponent({
14201420
},
14211421
} as Buildpack,
14221422
imageTag: '',
1423-
deploymentstrategy: "git",
1423+
deploymentstrategy: "docker",
14241424
buildstrategy: "plain",
14251425
pipelineData: {
14261426
domain: '',
@@ -1431,7 +1431,7 @@ export default defineComponent({
14311431
repository: {} as GitRepo,
14321432
},
14331433
buildstrategy: 'plain',
1434-
deploymentstrategy: 'git',
1434+
deploymentstrategy: 'docker',
14351435
},
14361436
appname: '',
14371437
resourceVersion: '',

0 commit comments

Comments
 (0)