Skip to content

Commit

Permalink
fix(spec): add deploy block to serviceconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ Higgins committed Oct 13, 2022
1 parent 4e7003d commit 491850d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/dependency-manager/config/resource-config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { ComponentInstanceMetadata } from '../spec/component-spec';
import { Dictionary } from '../utils/dictionary';

export interface DeployModuleConfig {
path: string;
inputs: Dictionary<string | null>;
}

export interface DeployConfig {
strategy: string;
modules: Dictionary<DeployModuleConfig>;
}

export interface BuildConfig {
context?: string;
args?: Dictionary<string>;
Expand All @@ -30,7 +20,6 @@ export interface ResourceConfig {
build?: BuildConfig;
cpu?: number | string; // TODO:290:number
memory?: string;
deploy?: DeployConfig;
depends_on: string[];
labels: Map<string, string>;
reserved_name?: string;
Expand Down
2 changes: 2 additions & 0 deletions src/dependency-manager/config/service-config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { DeploySpec } from '../spec/service-spec';
import { Dictionary } from '../utils/dictionary';
import { LivenessProbeConfig, VolumeConfig } from './common-config';
import { ResourceConfig } from './resource-config';
Expand Down Expand Up @@ -31,4 +32,5 @@ export interface ServiceConfig extends ResourceConfig {
volumes: Dictionary<VolumeConfig>;
replicas: number | string; // TODO:290:number
scaling?: ScalingConfig;
deploy?: DeploySpec;
}
1 change: 1 addition & 0 deletions src/dependency-manager/spec/transform/service-transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ export const transformServiceSpec = (key: string, spec: ServiceSpec, metadata: C
volumes: transformDictionary(transformVolumeSpec, spec.volumes),
replicas: spec.replicas || 1,
scaling: spec.scaling,
deploy: spec.deploy,
};
};

0 comments on commit 491850d

Please sign in to comment.