apps: rework portBindings

ports is REST API input . Map of env var to the host port
portBinding is the database structure. Map of env var to host port, count, type etc

also, rename portCount -> count in various places to keep things consistent
This commit is contained in:
Girish Ramakrishnan
2024-07-16 22:21:36 +02:00
parent eb314ef507
commit aeddaa4566
12 changed files with 151 additions and 147 deletions

View File

@@ -132,7 +132,7 @@ const app = {
fqdn: domain.domain + '.' + 'applocation',
manifest,
containerId: 'someid',
portBindings: null,
portBindings: {},
accessRestriction: null,
memoryLimit: 0,
mailboxDomain: domain.domain,
@@ -153,7 +153,7 @@ const proxyApp = {
fqdn: domain.domain + '.' + 'proxylocation',
manifest: proxyAppManifest,
containerId: '',
portBindings: null,
portBindings: {},
accessRestriction: null,
memoryLimit: 0,
mailboxDomain: domain.domain,