some script fixing for DNS generator

This commit is contained in:
kjeld Schouten-Lebbing 2021-08-15 13:30:39 +02:00
parent 0eb32e8db9
commit 8c1da57d86
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
1 changed files with 5 additions and 4 deletions

View File

@ -33,13 +33,14 @@ function process (form) {
function generatesvc(name, app, service) {
var svcname ""
if (name == app) {
let svcname = name ;
svcname = name ;
} else {
let svcname = name + "-" + app ;
svcname = name + "-" + app ;
}
if (service) {
let svcname = svcname + "-" + service ;
svcname = svcname + "-" + service ;
}
let svcdns = svcname + "." + "ix-" + name + ".svc.cluster.local" ;
return svcdns;
@ -54,7 +55,7 @@ function generatesvc(name, app, service) {
<div class="input-container ic1">
<input required id="name" class="input" type="text" placeholder=" " />
<div class="cut"></div>
<label for="name" class="placeholder">Name:</label>
<label for="name" class="placeholder">Name</label>
</div>
<div class="input-container ic2">
<input required id="app" class="input" type="text" placeholder=" " />