Skip to content

Commit

Permalink
fix(kubernetes): do not override location and replicas in new Sca…
Browse files Browse the repository at this point in the history
…le Manifest stage
  • Loading branch information
maggieneterval committed Feb 8, 2019
1 parent ed74abf commit 6c54b61
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IController, IScope } from 'angular';
import { defaults } from 'lodash';

import { IManifestSelector } from 'kubernetes/v2/manifest/selector/IManifestSelector';
import { Application } from '@spinnaker/core';
Expand All @@ -14,12 +15,12 @@ export class KubernetesV2ScaleManifestConfigCtrl implements IController {
location: '',
account: '',
};
Object.assign(this.$scope.stage, defaultSelection);
defaults(this.$scope.stage, defaultSelection);
const defaultOptions: any = {
replicas: null,
app: this.application.name,
};
Object.assign(this.$scope.stage, defaultOptions);
defaults(this.$scope.stage, defaultOptions);
this.$scope.stage.cloudProvider = 'kubernetes';
}
}
Expand Down

0 comments on commit 6c54b61

Please sign in to comment.