some script fixing for DNS generator
This commit is contained in:
parent
0eb32e8db9
commit
8c1da57d86
|
@ -33,13 +33,14 @@ function process (form) {
|
||||||
|
|
||||||
|
|
||||||
function generatesvc(name, app, service) {
|
function generatesvc(name, app, service) {
|
||||||
|
var svcname ""
|
||||||
if (name == app) {
|
if (name == app) {
|
||||||
let svcname = name ;
|
svcname = name ;
|
||||||
} else {
|
} else {
|
||||||
let svcname = name + "-" + app ;
|
svcname = name + "-" + app ;
|
||||||
}
|
}
|
||||||
if (service) {
|
if (service) {
|
||||||
let svcname = svcname + "-" + service ;
|
svcname = svcname + "-" + service ;
|
||||||
}
|
}
|
||||||
let svcdns = svcname + "." + "ix-" + name + ".svc.cluster.local" ;
|
let svcdns = svcname + "." + "ix-" + name + ".svc.cluster.local" ;
|
||||||
return svcdns;
|
return svcdns;
|
||||||
|
@ -54,7 +55,7 @@ function generatesvc(name, app, service) {
|
||||||
<div class="input-container ic1">
|
<div class="input-container ic1">
|
||||||
<input required id="name" class="input" type="text" placeholder=" " />
|
<input required id="name" class="input" type="text" placeholder=" " />
|
||||||
<div class="cut"></div>
|
<div class="cut"></div>
|
||||||
<label for="name" class="placeholder">Name:</label>
|
<label for="name" class="placeholder">Name</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-container ic2">
|
<div class="input-container ic2">
|
||||||
<input required id="app" class="input" type="text" placeholder=" " />
|
<input required id="app" class="input" type="text" placeholder=" " />
|
||||||
|
|
Loading…
Reference in New Issue