Skip to content

Commit

Permalink
Merge pull request #10 from labbsr0x/requirements_on_deploy
Browse files Browse the repository at this point in the history
Requirements on deploy interface
  • Loading branch information
KarineValenca authored Aug 24, 2020
2 parents edda434 + 1badf92 commit 74e28c1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export default {
production && terser()
],
watch: {
clearScreen: false
clearScreen: false,
chokidar: false
}
};

Expand Down
21 changes: 17 additions & 4 deletions src/deploy/Deploy.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
let oldName = null
let exportData = null
let text = ''
let requirements = ''
const unsubscribe = appName.subscribe(value => {
Expand All @@ -37,13 +38,13 @@
text = `
${basicName}:
generator:
deploy: false
deploy: false
service: ${fullApp._name.replace('/services', '')}
promster:
image: ${settings._dockerImage}
tag: ${settings._dockerTag}
prefix: ${envApp}
prefix: ${fullApp._name.replace('/services', '')}
deploy: true
scrapePaths: ${fullApp._scrapePath.join()}
scheme: ${fullApp._scheme}
Expand All @@ -52,6 +53,12 @@ ${basicName}:
enabled: true
hostname: ${basicName}-promster.ath.desenv.bb.com.br
`
requirements = `
- name: big-brother
version: 0.1.11
alias: ${basicName}
repository: https://chartmuseum.devops.nuvem.bb.com.br/bb/ath
`
} catch (err) {
console.log(`erro`, err)
}
Expand Down Expand Up @@ -82,11 +89,17 @@ ${basicName}:
</script>
<TitleList title="Deploy Prometheus" />
<div class="row">
<div>Values.yaml</div>
<div class="margins">
<Textfield textarea fullwidth input$aria-controls="helper-text-fullwidth-textarea" >
<Textarea bind:value={text} rows="14" id="input-manual-d" aria-controls="helper-text-manual-d" aria-describedby="helper-text-manual-d" />
<Textarea bind:value={text} rows="20" id="input-manual-d" aria-controls="helper-text-manual-d" aria-describedby="helper-text-manual-d" />
</Textfield>
</div>
<div>Requeriments.yaml</div>
<div class="margins">
<Textfield textarea fullwidth input$aria-controls="helper-text-fullwidth-textarea" >
<Textarea bind:value={requirements} rows="10" id="input-manual-d" />
</Textfield>
<HelperText id="helper-text-manual-d">Values text</HelperText>
</div>
</div>
<div class="row p-3">
Expand Down

0 comments on commit 74e28c1

Please sign in to comment.