fix(templates): add host file entry [EE-6461] (#10839)

pull/10888/head
Chaim Lev-Ari 11 months ago committed by GitHub
parent d2ccb10972
commit 2b73116284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,6 +134,8 @@ export interface AppTemplate {
*/
labels?: Pair[];
hosts?: string[];
/**
* Whether the container should be started in privileged mode.
* @example true

@ -48,6 +48,8 @@ export class TemplateViewModel {
RestartPolicy!: string;
Hosts!: string[];
Labels!: Pair[];
Env!: Array<TemplateEnv & { type: EnvVarType; value: string }>;
@ -112,6 +114,7 @@ function setTemplatesV2(this: TemplateViewModel, template: AppTemplate) {
? template.restart_policy
: 'always';
this.Labels = template.labels ? template.labels : [];
this.Hosts = template.hosts ? template.hosts : [];
this.Env = templateEnv(template);
this.Volumes = templateVolumes(template);
this.Ports = templatePorts(template);

Loading…
Cancel
Save