@spinnaker/cloudrun 0.0.0-main-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +94 -0
- package/LICENSE.txt +203 -0
- package/dist/cloudrun.module.d.ts +4 -0
- package/dist/cloudrun.settings.d.ts +7 -0
- package/dist/common/cloudrunHealth.d.ts +3 -0
- package/dist/common/componentUrlDetails.component.d.ts +1 -0
- package/dist/common/conditionalDescriptionListItem.component.d.ts +1 -0
- package/dist/common/domain/ICloudrunInstance.d.ts +20 -0
- package/dist/common/domain/ICloudrunLoadBalancer.d.ts +18 -0
- package/dist/common/domain/index.d.ts +2 -0
- package/dist/common/loadBalancerMessage.component.d.ts +1 -0
- package/dist/help/cloudrun.help.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2598 -0
- package/dist/index.js.map +1 -0
- package/dist/instance/details/details.controller.d.ts +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/infrastructure.types.d.ts +18 -0
- package/dist/loadBalancer/configure/wizard/allocationConfigurationRow.component.d.ts +1 -0
- package/dist/loadBalancer/configure/wizard/basicSettings.component.d.ts +1 -0
- package/dist/loadBalancer/configure/wizard/stageAllocationConfigurationRow.component.d.ts +1 -0
- package/dist/loadBalancer/configure/wizard/wizard.controller.d.ts +2 -0
- package/dist/loadBalancer/details/details.controller.d.ts +1 -0
- package/dist/loadBalancer/index.d.ts +3 -0
- package/dist/loadBalancer/loadBalancerTransformer.d.ts +38 -0
- package/dist/manifest/ManifestSource.d.ts +4 -0
- package/dist/manifest/index.d.ts +2 -0
- package/dist/manifest/manifest.service.d.ts +25 -0
- package/dist/manifest/manifestCommandBuilder.service.d.ts +30 -0
- package/dist/manifest/wizard/BasicSettings.d.ts +17 -0
- package/dist/pipeline/pipeline.module.d.ts +1 -0
- package/dist/pipeline/stages/deployManifest/DeployStageConfig.d.ts +15 -0
- package/dist/pipeline/stages/deployManifest/DeployStageForm.d.ts +23 -0
- package/dist/pipeline/stages/deployManifest/ManifestBindArtifactsSelector.d.ts +17 -0
- package/dist/pipeline/stages/deployManifest/deploy.validator.d.ts +2 -0
- package/dist/pipeline/stages/deployManifest/deployStage.d.ts +1 -0
- package/dist/pipeline/stages/deployManifest/manifestStatus/DeployStatus.d.ts +22 -0
- package/dist/pipeline/stages/deployManifest/manifestStatus/DeployStatusPills.d.ts +8 -0
- package/dist/pipeline/stages/deployManifest/manifestStatus/ManifestDetailsLink.d.ts +20 -0
- package/dist/pipeline/stages/deployManifest/manifestStatus/ManifestEvents.d.ts +9 -0
- package/dist/pipeline/stages/deployManifest/manifestStatus/ManifestStatus.d.ts +8 -0
- package/dist/pipeline/stages/deployManifest/serverGroupNamePreview.d.ts +9 -0
- package/dist/pipeline/stages/editLoadBalancer/cloudrunEditLoadBalancerStage.d.ts +1 -0
- package/dist/pipeline/stages/editLoadBalancer/loadBalancerChoice.modal.controller.d.ts +1 -0
- package/dist/rolloutStrategy/redblack.strategy.d.ts +2 -0
- package/dist/serverGroup/configure/serverGroupCommandBuilder.service.d.ts +74 -0
- package/dist/serverGroup/configure/wizard/BasicSettings.d.ts +29 -0
- package/dist/serverGroup/configure/wizard/ConfigFiles.d.ts +15 -0
- package/dist/serverGroup/configure/wizard/serverGroupWizard.d.ts +25 -0
- package/dist/serverGroup/details/details.controller.d.ts +1 -0
- package/dist/serverGroup/index.d.ts +3 -0
- package/dist/serverGroup/serverGroupTransformer.service.d.ts +31 -0
- package/package.json +58 -0
- package/src/cloudrun.module.ts +73 -0
- package/src/cloudrun.settings.ts +14 -0
- package/src/common/cloudrunHealth.ts +3 -0
- package/src/common/componentUrlDetails.component.ts +22 -0
- package/src/common/conditionalDescriptionListItem.component.ts +37 -0
- package/src/common/domain/ICloudrunInstance.ts +21 -0
- package/src/common/domain/ICloudrunLoadBalancer.ts +18 -0
- package/src/common/domain/index.ts +2 -0
- package/src/common/loadBalancerMessage.component.html +11 -0
- package/src/common/loadBalancerMessage.component.ts +13 -0
- package/src/help/cloudrun.help.ts +99 -0
- package/src/index.ts +3 -0
- package/src/instance/details/details.controller.ts +84 -0
- package/src/instance/details/details.html +68 -0
- package/src/interfaces/index.ts +1 -0
- package/src/interfaces/infrastructure.types.ts +23 -0
- package/src/loadBalancer/configure/wizard/allocationConfigurationRow.component.ts +70 -0
- package/src/loadBalancer/configure/wizard/basicSettings.component.html +44 -0
- package/src/loadBalancer/configure/wizard/basicSettings.component.ts +86 -0
- package/src/loadBalancer/configure/wizard/stageAllocationConfigurationRow.component.html +45 -0
- package/src/loadBalancer/configure/wizard/stageAllocationConfigurationRow.component.ts +84 -0
- package/src/loadBalancer/configure/wizard/wizard.controller.ts +157 -0
- package/src/loadBalancer/configure/wizard/wizard.html +39 -0
- package/src/loadBalancer/configure/wizard/wizard.less +9 -0
- package/src/loadBalancer/details/details.controller.ts +140 -0
- package/src/loadBalancer/details/details.html +89 -0
- package/src/loadBalancer/index.ts +3 -0
- package/src/loadBalancer/loadBalancerTransformer.ts +168 -0
- package/src/logo/cloudrun.icon.svg +27 -0
- package/src/logo/cloudrun.logo.less +6 -0
- package/src/logo/cloudrun.logo.png +0 -0
- package/src/manifest/ManifestSource.ts +4 -0
- package/src/manifest/index.ts +2 -0
- package/src/manifest/manifest.service.ts +89 -0
- package/src/manifest/manifestCommandBuilder.service.ts +116 -0
- package/src/manifest/wizard/BasicSettings.tsx +57 -0
- package/src/pipeline/pipeline.module.ts +6 -0
- package/src/pipeline/stages/deployManifest/DeployStageConfig.tsx +73 -0
- package/src/pipeline/stages/deployManifest/DeployStageForm.tsx +185 -0
- package/src/pipeline/stages/deployManifest/ManifestBindArtifactsSelector.tsx +69 -0
- package/src/pipeline/stages/deployManifest/deploy.validator.ts +38 -0
- package/src/pipeline/stages/deployManifest/deployStage.ts +28 -0
- package/src/pipeline/stages/deployManifest/manifestStatus/DeployStatus.tsx +108 -0
- package/src/pipeline/stages/deployManifest/manifestStatus/DeployStatusPills.tsx +47 -0
- package/src/pipeline/stages/deployManifest/manifestStatus/ManifestDetailsLink.tsx +92 -0
- package/src/pipeline/stages/deployManifest/manifestStatus/ManifestEvents.tsx +87 -0
- package/src/pipeline/stages/deployManifest/manifestStatus/ManifestStatus.less +24 -0
- package/src/pipeline/stages/deployManifest/manifestStatus/ManifestStatus.tsx +46 -0
- package/src/pipeline/stages/deployManifest/serverGroupNamePreview.tsx +28 -0
- package/src/pipeline/stages/editLoadBalancer/cloudrunEditLoadBalancerStage.ts +74 -0
- package/src/pipeline/stages/editLoadBalancer/editLoadBalancerExecutionDetails.html +33 -0
- package/src/pipeline/stages/editLoadBalancer/editLoadBalancerStage.html +51 -0
- package/src/pipeline/stages/editLoadBalancer/loadBalancerChoice.modal.controller.ts +65 -0
- package/src/pipeline/stages/editLoadBalancer/loadBalancerChoice.modal.html +53 -0
- package/src/rolloutStrategy/redblack.strategy.ts +7 -0
- package/src/serverGroup/configure/serverGroupCommandBuilder.service.ts +254 -0
- package/src/serverGroup/configure/wizard/BasicSettings.tsx +160 -0
- package/src/serverGroup/configure/wizard/ConfigFiles.tsx +75 -0
- package/src/serverGroup/configure/wizard/serverGroupWizard.tsx +150 -0
- package/src/serverGroup/details/details.controller.ts +134 -0
- package/src/serverGroup/details/details.html +94 -0
- package/src/serverGroup/index.ts +3 -0
- package/src/serverGroup/serverGroupTransformer.service.ts +61 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { IController, IScope } from 'angular';
|
|
2
|
+
import { module } from 'angular';
|
|
3
|
+
import type { Application, ILoadBalancer, IServerGroup, ServerGroupWriter } from '@spinnaker/core';
|
|
4
|
+
import { ConfirmationModalService, SERVER_GROUP_WRITER, ServerGroupReader } from '@spinnaker/core';
|
|
5
|
+
import { CloudrunHealth } from '../../common/cloudrunHealth';
|
|
6
|
+
import type { ICloudrunServerGroup } from '../../interfaces';
|
|
7
|
+
|
|
8
|
+
interface IServerGroupFromStateParams {
|
|
9
|
+
accountId: string;
|
|
10
|
+
region: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class CloudrunServerGroupDetailsController implements IController {
|
|
15
|
+
public state = { loading: true };
|
|
16
|
+
public serverGroup: ICloudrunServerGroup;
|
|
17
|
+
|
|
18
|
+
public static $inject = ['$state', '$scope', 'serverGroup', 'app', 'serverGroupWriter'];
|
|
19
|
+
constructor(
|
|
20
|
+
private $state: any,
|
|
21
|
+
private $scope: IScope,
|
|
22
|
+
serverGroup: IServerGroupFromStateParams,
|
|
23
|
+
public app: Application,
|
|
24
|
+
private serverGroupWriter: ServerGroupWriter,
|
|
25
|
+
) {
|
|
26
|
+
this.extractServerGroup(serverGroup)
|
|
27
|
+
.then(() => {
|
|
28
|
+
if (!this.$scope.$$destroyed) {
|
|
29
|
+
this.app.getDataSource('serverGroups').onRefresh(this.$scope, () => this.extractServerGroup(serverGroup));
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
.catch(() => this.autoClose());
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// destroy existing server group
|
|
36
|
+
public canDestroyServerGroup(): boolean {
|
|
37
|
+
if (this.serverGroup) {
|
|
38
|
+
const isCurrentRevision = this.serverGroup.tags.isLatest;
|
|
39
|
+
if (isCurrentRevision) {
|
|
40
|
+
return false;
|
|
41
|
+
} else if (this.serverGroup.disabled) {
|
|
42
|
+
return true;
|
|
43
|
+
} else {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public destroyServerGroup(): void {
|
|
52
|
+
const stateParams = {
|
|
53
|
+
name: this.serverGroup.name,
|
|
54
|
+
accountId: this.serverGroup.account,
|
|
55
|
+
region: this.serverGroup.region,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const taskMonitor = {
|
|
59
|
+
application: this.app,
|
|
60
|
+
title: 'Destroying ' + this.serverGroup.name,
|
|
61
|
+
onTaskComplete: () => {
|
|
62
|
+
if (this.$state.includes('**.serverGroup', stateParams)) {
|
|
63
|
+
this.$state.go('^');
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const submitMethod = (params: any) => this.serverGroupWriter.destroyServerGroup(this.serverGroup, this.app, params);
|
|
69
|
+
|
|
70
|
+
const confirmationModalParams = {
|
|
71
|
+
header: 'Really destroy ' + this.serverGroup.name + '?',
|
|
72
|
+
buttonText: 'Destroy ' + this.serverGroup.name,
|
|
73
|
+
account: this.serverGroup.account,
|
|
74
|
+
taskMonitorConfig: taskMonitor,
|
|
75
|
+
submitMethod,
|
|
76
|
+
askForReason: true,
|
|
77
|
+
platformHealthOnlyShowOverride: this.app.attributes.platformHealthOnlyShowOverride,
|
|
78
|
+
platformHealthType: CloudrunHealth.PLATFORM,
|
|
79
|
+
|
|
80
|
+
interestingHealthProviderNames: [] as string[],
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
if (this.app.attributes.platformHealthOnlyShowOverride && this.app.attributes.platformHealthOnly) {
|
|
84
|
+
confirmationModalParams.interestingHealthProviderNames = [CloudrunHealth.PLATFORM];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
ConfirmationModalService.confirm(confirmationModalParams);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
private autoClose(): void {
|
|
91
|
+
if (this.$scope.$$destroyed) {
|
|
92
|
+
return;
|
|
93
|
+
} else {
|
|
94
|
+
this.$state.params.allowModalToStayOpen = true;
|
|
95
|
+
this.$state.go('^', null, { location: 'replace' });
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private extractServerGroup({ name, accountId, region }: IServerGroupFromStateParams): PromiseLike<void> {
|
|
100
|
+
return ServerGroupReader.getServerGroup(this.app.name, accountId, region, name).then(
|
|
101
|
+
(serverGroupDetails: IServerGroup) => {
|
|
102
|
+
let fromApp = this.app.getDataSource('serverGroups').data.find((toCheck: IServerGroup) => {
|
|
103
|
+
return toCheck.name === name && toCheck.account === accountId && toCheck.region === region;
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
if (!fromApp) {
|
|
107
|
+
this.app.getDataSource('loadBalancers').data.some((loadBalancer: ILoadBalancer) => {
|
|
108
|
+
if (loadBalancer.account === accountId) {
|
|
109
|
+
return loadBalancer.serverGroups.some((toCheck: IServerGroup) => {
|
|
110
|
+
let result = false;
|
|
111
|
+
if (toCheck.name === name) {
|
|
112
|
+
fromApp = toCheck;
|
|
113
|
+
result = true;
|
|
114
|
+
}
|
|
115
|
+
return result;
|
|
116
|
+
});
|
|
117
|
+
} else {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
this.serverGroup = { ...serverGroupDetails, ...fromApp };
|
|
124
|
+
this.state.loading = false;
|
|
125
|
+
},
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export const CLOUDRUN_SERVER_GROUP_DETAILS_CTRL = 'spinnaker.cloudrun.serverGroup.details.controller';
|
|
130
|
+
|
|
131
|
+
module(CLOUDRUN_SERVER_GROUP_DETAILS_CTRL, [SERVER_GROUP_WRITER]).controller(
|
|
132
|
+
'cloudrunV2ServerGroupDetailsCtrl',
|
|
133
|
+
CloudrunServerGroupDetailsController,
|
|
134
|
+
);
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<div class="details-panel" ng-class="{disabled: ctrl.serverGroup.isDisabled || ctrl.serverGroup.disabled}">
|
|
2
|
+
<div class="header" ng-if="ctrl.state.loading">
|
|
3
|
+
<div class="close-button">
|
|
4
|
+
<a class="btn btn-link" ui-sref="^">
|
|
5
|
+
<span class="glyphicon glyphicon-remove"></span>
|
|
6
|
+
</a>
|
|
7
|
+
</div>
|
|
8
|
+
<h4 class="text-center">
|
|
9
|
+
<span us-spinner="{radius:20, width:6, length: 12}"></span>
|
|
10
|
+
</h4>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div class="header" ng-if="!ctrl.state.loading">
|
|
14
|
+
<div class="close-button">
|
|
15
|
+
<a class="btn btn-link" ui-sref="^">
|
|
16
|
+
<span class="glyphicon glyphicon-remove"></span>
|
|
17
|
+
</a>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="header-text horizontal middle">
|
|
20
|
+
<cloud-provider-logo provider="ctrl.serverGroup.type" height="'36px'" width="'36px'"></cloud-provider-logo>
|
|
21
|
+
<h3 class="horizontal middle space-between flex-1" select-on-dbl-click>{{ctrl.serverGroup.name}}</h3>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="actions">
|
|
24
|
+
<div class="dropdown" uib-dropdown dropdown-append-to-body>
|
|
25
|
+
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" uib-dropdown-toggle>
|
|
26
|
+
Server Group Actions <span class="caret"></span>
|
|
27
|
+
</button>
|
|
28
|
+
<ul class="dropdown-menu" uib-dropdown-menu role="menu">
|
|
29
|
+
<li
|
|
30
|
+
ng-if="ctrl.serverGroup.tags.isLatest"
|
|
31
|
+
uib-tooltip="You cannot destroy the latest server group (revision) .
|
|
32
|
+
You may be able to delete this server group's load balancer."
|
|
33
|
+
class="disabled"
|
|
34
|
+
>
|
|
35
|
+
<a href>Destroy</a>
|
|
36
|
+
</li>
|
|
37
|
+
<li ng-if="ctrl.canDestroyServerGroup() && !ctrl.serverGroup.tags.isLatest">
|
|
38
|
+
<a href ng-click="ctrl.destroyServerGroup()">Destroy</a>
|
|
39
|
+
</li>
|
|
40
|
+
<li
|
|
41
|
+
ng-if="(!ctrl.canDestroyServerGroup() && !ctrl.serverGroup.tags.isLatest)"
|
|
42
|
+
uib-tooltip="You cannot destroy this server group while it is receiving traffic.
|
|
43
|
+
You may be able to delete this server group's load balancer."
|
|
44
|
+
class="disabled"
|
|
45
|
+
>
|
|
46
|
+
<a href>Destroy</a>
|
|
47
|
+
</li>
|
|
48
|
+
</ul>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="content" ng-if="!ctrl.state.loading">
|
|
53
|
+
<div class="band band-info" ng-if="ctrl.serverGroup.isDisabled || ctrl.serverGroup.disabled">Disabled</div>
|
|
54
|
+
<server-group-running-tasks-details
|
|
55
|
+
server-group="ctrl.serverGroup"
|
|
56
|
+
application="ctrl.app"
|
|
57
|
+
></server-group-running-tasks-details>
|
|
58
|
+
<collapsible-section heading="Server Group Information" expanded="true">
|
|
59
|
+
<dl class="dl-horizontal dl-narrow">
|
|
60
|
+
<dt>Created</dt>
|
|
61
|
+
<dd>{{ctrl.serverGroup.createdTime | timestamp}}</dd>
|
|
62
|
+
<dt>In</dt>
|
|
63
|
+
<dd><account-tag account="ctrl.serverGroup.account"></account-tag></dd>
|
|
64
|
+
<dt>Region</dt>
|
|
65
|
+
<dd>{{ctrl.serverGroup.region}}</dd>
|
|
66
|
+
</dl>
|
|
67
|
+
</collapsible-section>
|
|
68
|
+
|
|
69
|
+
<collapsible-section heading="Size" expanded="true">
|
|
70
|
+
<dl class="dl-horizontal dl-narrow" ng-if="ctrl.serverGroup.capacity.min === ctrl.serverGroup.capacity.max">
|
|
71
|
+
<dt>Min/Max</dt>
|
|
72
|
+
<dd>{{ctrl.serverGroup.capacity.min}}</dd>
|
|
73
|
+
<dt>Current</dt>
|
|
74
|
+
<dd>{{ctrl.serverGroup.instances.length}}</dd>
|
|
75
|
+
</dl>
|
|
76
|
+
<dl class="dl-horizontal dl-narrow" ng-if="ctrl.serverGroup.capacity.min !== ctrl.serverGroup.capacity.max">
|
|
77
|
+
<dt>Min</dt>
|
|
78
|
+
<dd>{{ctrl.serverGroup.capacity.min}}</dd>
|
|
79
|
+
<dt>Max</dt>
|
|
80
|
+
<dd>{{ctrl.serverGroup.capacity.max}}</dd>
|
|
81
|
+
<dt>Current</dt>
|
|
82
|
+
<dd>{{ctrl.serverGroup.instances.length}}</dd>
|
|
83
|
+
</dl>
|
|
84
|
+
</collapsible-section>
|
|
85
|
+
<collapsible-section heading="Health" expanded="true">
|
|
86
|
+
<dl class="dl-horizontal dl-narrow" ng-if="ctrl.serverGroup">
|
|
87
|
+
<dt>Instances</dt>
|
|
88
|
+
<dd>
|
|
89
|
+
<health-counts container="ctrl.serverGroup.instanceCounts" class="pull-left"></health-counts>
|
|
90
|
+
</dd>
|
|
91
|
+
</dl>
|
|
92
|
+
</collapsible-section>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { module } from 'angular';
|
|
2
|
+
import type { IServerGroup } from '@spinnaker/core';
|
|
3
|
+
|
|
4
|
+
import type { ICloudrunServerGroupCommand } from '../serverGroup/configure/serverGroupCommandBuilder.service';
|
|
5
|
+
|
|
6
|
+
export class CloudrunV2ServerGroupTransformer {
|
|
7
|
+
public static $inject = ['$q'];
|
|
8
|
+
constructor(private $q: ng.IQService) {}
|
|
9
|
+
|
|
10
|
+
public normalizeServerGroup(serverGroup: IServerGroup): PromiseLike<IServerGroup> {
|
|
11
|
+
return this.$q.resolve(serverGroup);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public convertServerGroupCommandToDeployConfiguration(command: ICloudrunServerGroupCommand): any {
|
|
15
|
+
return new CloudrunDeployDescription(command);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CloudrunDeployDescription {
|
|
20
|
+
public cloudProvider = 'cloudrun';
|
|
21
|
+
public provider = 'cloudrun';
|
|
22
|
+
public credentials: string;
|
|
23
|
+
public account: string;
|
|
24
|
+
public application: string;
|
|
25
|
+
public stack?: string;
|
|
26
|
+
public freeFormDetails?: string;
|
|
27
|
+
public configFiles: string[];
|
|
28
|
+
public region: string;
|
|
29
|
+
public strategy?: string;
|
|
30
|
+
public type?: string;
|
|
31
|
+
public fromArtifact: boolean;
|
|
32
|
+
public configArtifacts: string[];
|
|
33
|
+
public strategyApplication?: string;
|
|
34
|
+
public strategyPipeline?: string;
|
|
35
|
+
public gitCredentialType: string;
|
|
36
|
+
public interestingHealthProviderNames: string[];
|
|
37
|
+
public sourceType: string;
|
|
38
|
+
|
|
39
|
+
constructor(command: ICloudrunServerGroupCommand) {
|
|
40
|
+
this.credentials = command.credentials;
|
|
41
|
+
this.account = command.credentials;
|
|
42
|
+
this.application = command.application;
|
|
43
|
+
this.stack = command.stack;
|
|
44
|
+
this.freeFormDetails = command.freeFormDetails;
|
|
45
|
+
this.region = command.region;
|
|
46
|
+
this.strategy = command.strategy;
|
|
47
|
+
this.type = command.type;
|
|
48
|
+
this.fromArtifact = command.fromArtifact;
|
|
49
|
+
this.gitCredentialType = command.gitCredentialType;
|
|
50
|
+
this.configFiles = command.configFiles;
|
|
51
|
+
this.sourceType = command.sourceType;
|
|
52
|
+
this.interestingHealthProviderNames = command.interestingHealthProviderNames || [];
|
|
53
|
+
this.configArtifacts = [];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const CLOUDRUN_SERVER_GROUP_TRANSFORMER = 'spinnaker.cloudrun.serverGroup.transformer.service';
|
|
58
|
+
module(CLOUDRUN_SERVER_GROUP_TRANSFORMER, []).service(
|
|
59
|
+
'cloudrunV2ServerGroupTransformer',
|
|
60
|
+
CloudrunV2ServerGroupTransformer,
|
|
61
|
+
);
|