@spinnaker/cloudfoundry 0.0.163 → 0.0.167
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 +35 -0
- package/dist/cf.module.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pipeline/stages/cloneServerGroup/{CloudfoundryCloneServerGroupStageConfig.d.ts → CloudFoundryCloneServerGroupStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/cloneServerGroup/{cloudfoundryCloneServerGroupStage.module.d.ts → cloudFoundryCloneServerGroupStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/createServiceBindings/CloudFoundryCreateServiceBindingsStageConfigForm.d.ts +2 -2
- package/dist/pipeline/stages/{deleteServiceKey/CloudfoundryDeleteServiceKeyStageConfig.d.ts → createServiceKey/CloudFoundryCreateServiceKeyStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/createServiceKey/{cloudfoundryCreateServiceKeyStage.module.d.ts → cloudFoundryCreateServiceKeyStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/deleteServiceBindings/CloudFoundryDeleteServiceBindingsStageConfigForm.d.ts +2 -2
- package/dist/pipeline/stages/{createServiceKey/CloudfoundryCreateServiceKeyStageConfig.d.ts → deleteServiceKey/CloudFoundryDeleteServiceKeyStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/deleteServiceKey/{cloudfoundryDeleteServiceKeyStage.module.d.ts → cloudFoundryDeleteServiceKeyStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/deployService/{CloudfoundryDeployServiceStageConfig.d.ts → CloudFoundryDeployServiceStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/deployService/CreateServiceInstanceDirectInput.d.ts +3 -3
- package/dist/pipeline/stages/deployService/ICloudFoundryServiceManifestSource.d.ts +2 -2
- package/dist/pipeline/stages/deployService/{cloudfoundryDeployServiceStage.module.d.ts → cloudFoundryDeployServiceStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/destroyAsg/{cloudfoundryDestroyAsgStage.module.d.ts → cloudFoundryDestroyAsgStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/destroyService/{CloudfoundryDestroyServiceStageConfig.d.ts → CloudFoundryDestroyServiceStageConfig.d.ts} +0 -0
- package/dist/pipeline/stages/destroyService/CloudFoundryDestroyServiceStageConfigForm.d.ts +2 -2
- package/dist/pipeline/stages/destroyService/{cloudfoundryDestroyServiceStage.module.d.ts → cloudFoundryDestroyServiceStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/disableAsg/{cloudfoundryDisableAsgStage.module.d.ts → cloudFoundryDisableAsgStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/enableAsg/{cloudfoundryEnableAsgStage.module.d.ts → cloudFoundryEnableAsgStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/mapLoadBalancers/{cloudfoundryMapLoadBalancersStage.module.d.ts → cloudFoundryMapLoadBalancersStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/resizeAsg/{CloudfoundryResizeAsgStageConfig.d.ts → CloudFoundryResizeAsgStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/resizeAsg/{cloudfoundryResizeAsgStage.module.d.ts → cloudFoundryResizeAsgStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/rollbackCluster/{CloudfoundryRollbackClusterStageConfig.d.ts → CloudFoundryRollbackClusterStageConfig.d.ts} +4 -4
- package/dist/pipeline/stages/rollbackCluster/{cloudfoundryRollbackClusterStage.module.d.ts → cloudFoundryRollbackClusterStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/runJob/{CloudfoundryRunJobStageConfig.d.ts → CloudFoundryRunJobStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/runJob/{cloudfoundryRunJob.module.d.ts → cloudFoundryRunJob.module.d.ts} +0 -0
- package/dist/pipeline/stages/shareService/{CloudfoundryShareServiceExecutionDetails.d.ts → CloudFoundryShareServiceExecutionDetails.d.ts} +2 -2
- package/dist/pipeline/stages/shareService/{CloudfoundryShareServiceStageConfig.d.ts → CloudFoundryShareServiceStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/shareService/{cloudfoundryShareServiceStage.module.d.ts → cloudFoundryShareServiceStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/unmapLoadBalancers/{cloudfoundryUnmapLoadBalancersStage.module.d.ts → cloudFoundryUnmapLoadBalancersStage.module.d.ts} +0 -0
- package/dist/pipeline/stages/unshareService/{CloudfoundryUnshareServiceExecutionDetails.d.ts → CloudFoundryUnshareServiceExecutionDetails.d.ts} +2 -2
- package/dist/pipeline/stages/unshareService/{CloudfoundryUnshareServiceStageConfig.d.ts → CloudFoundryUnshareServiceStageConfig.d.ts} +2 -2
- package/dist/pipeline/stages/unshareService/{cloudfoundryUnshareServiceStage.module.d.ts → cloudFoundryUnshareServiceStage.module.d.ts} +0 -0
- package/dist/presentation/pipeline/stages/{CloudfoundryAsgStageConfig.d.ts → CloudFoundryAsgStageConfig.d.ts} +2 -2
- package/dist/presentation/pipeline/stages/{CloudfoundryLoadBalancersExecutionDetails.d.ts → CloudFoundryLoadBalancersExecutionDetails.d.ts} +2 -2
- package/dist/presentation/pipeline/stages/{CloudfoundryLoadBalancersStageConfig.d.ts → CloudFoundryLoadBalancersStageConfig.d.ts} +4 -4
- package/dist/presentation/pipeline/stages/{CloudfoundryServiceExecutionDetails.d.ts → CloudFoundryServiceExecutionDetails.d.ts} +2 -2
- package/dist/presentation/pipeline/stages/{CloudfoundryServiceKeyExecutionDetails.d.ts → CloudFoundryServiceKeyExecutionDetails.d.ts} +2 -2
- package/dist/presentation/pipeline/stages/index.d.ts +5 -5
- package/package.json +3 -3
- package/src/cf.module.ts +15 -15
- package/src/common/applicationName.validator.ts +1 -1
- package/src/pipeline/stages/cloneServerGroup/{CloudfoundryCloneServerGroupStageConfig.tsx → CloudFoundryCloneServerGroupStageConfig.tsx} +3 -3
- package/src/pipeline/stages/cloneServerGroup/{cloudfoundryCloneServerGroupStage.module.ts → cloudFoundryCloneServerGroupStage.module.ts} +2 -2
- package/src/pipeline/stages/createServiceBindings/CloudFoundryCreateServiceBindingsStageConfigForm.tsx +2 -2
- package/src/pipeline/stages/createServiceKey/{CloudfoundryCreateServiceKeyStageConfig.tsx → CloudFoundryCreateServiceKeyStageConfig.tsx} +3 -3
- package/src/pipeline/stages/createServiceKey/{cloudfoundryCreateServiceKeyStage.module.ts → cloudFoundryCreateServiceKeyStage.module.ts} +4 -4
- package/src/pipeline/stages/deleteServiceBindings/CloudFoundryDeleteServiceBindingsStageConfigForm.tsx +2 -2
- package/src/pipeline/stages/deleteServiceKey/{CloudfoundryDeleteServiceKeyStageConfig.tsx → CloudFoundryDeleteServiceKeyStageConfig.tsx} +3 -3
- package/src/pipeline/stages/deleteServiceKey/{cloudfoundryDeleteServiceKeyStage.module.ts → cloudFoundryDeleteServiceKeyStage.module.ts} +4 -4
- package/src/pipeline/stages/deployService/{CloudfoundryDeployServiceStageConfig.tsx → CloudFoundryDeployServiceStageConfig.tsx} +3 -3
- package/src/pipeline/stages/deployService/CreateServiceInstanceDirectInput.tsx +3 -3
- package/src/pipeline/stages/deployService/ICloudFoundryServiceManifestSource.ts +2 -2
- package/src/pipeline/stages/deployService/{cloudfoundryDeployServiceStage.module.ts → cloudFoundryDeployServiceStage.module.ts} +4 -4
- package/src/pipeline/stages/destroyAsg/{cloudfoundryDestroyAsgStage.module.ts → cloudFoundryDestroyAsgStage.module.ts} +2 -2
- package/src/pipeline/stages/destroyService/{CloudfoundryDestroyServiceStageConfig.tsx → CloudFoundryDestroyServiceStageConfig.tsx} +0 -0
- package/src/pipeline/stages/destroyService/CloudFoundryDestroyServiceStageConfigForm.tsx +2 -2
- package/src/pipeline/stages/destroyService/{cloudfoundryDestroyServiceStage.module.ts → cloudFoundryDestroyServiceStage.module.ts} +3 -3
- package/src/pipeline/stages/disableAsg/{cloudfoundryDisableAsgStage.module.ts → cloudFoundryDisableAsgStage.module.ts} +2 -2
- package/src/pipeline/stages/enableAsg/{cloudfoundryEnableAsgStage.module.ts → cloudFoundryEnableAsgStage.module.ts} +2 -2
- package/src/pipeline/stages/mapLoadBalancers/{cloudfoundryMapLoadBalancersStage.module.ts → cloudFoundryMapLoadBalancersStage.module.ts} +3 -3
- package/src/pipeline/stages/resizeAsg/{CloudfoundryResizeAsgStageConfig.tsx → CloudFoundryResizeAsgStageConfig.tsx} +3 -3
- package/src/pipeline/stages/resizeAsg/{cloudfoundryResizeAsgStage.module.ts → cloudFoundryResizeAsgStage.module.ts} +2 -2
- package/src/pipeline/stages/rollbackCluster/{CloudfoundryRollbackClusterStageConfig.tsx → CloudFoundryRollbackClusterStageConfig.tsx} +6 -6
- package/src/pipeline/stages/rollbackCluster/{cloudfoundryRollbackClusterStage.module.ts → cloudFoundryRollbackClusterStage.module.ts} +2 -2
- package/src/pipeline/stages/runJob/{CloudfoundryRunJobStageConfig.tsx → CloudFoundryRunJobStageConfig.tsx} +3 -3
- package/src/pipeline/stages/runJob/{cloudfoundryRunJob.module.ts → cloudFoundryRunJob.module.ts} +2 -2
- package/src/pipeline/stages/shareService/{CloudfoundryShareServiceExecutionDetails.tsx → CloudFoundryShareServiceExecutionDetails.tsx} +2 -2
- package/src/pipeline/stages/shareService/{CloudfoundryShareServiceStageConfig.tsx → CloudFoundryShareServiceStageConfig.tsx} +3 -3
- package/src/pipeline/stages/shareService/{cloudfoundryShareServiceStage.module.ts → cloudFoundryShareServiceStage.module.ts} +4 -4
- package/src/pipeline/stages/unmapLoadBalancers/{cloudfoundryUnmapLoadBalancersStage.module.ts → cloudFoundryUnmapLoadBalancersStage.module.ts} +3 -3
- package/src/pipeline/stages/unshareService/{CloudfoundryUnshareServiceExecutionDetails.tsx → CloudFoundryUnshareServiceExecutionDetails.tsx} +2 -2
- package/src/pipeline/stages/unshareService/{CloudfoundryUnshareServiceStageConfig.tsx → CloudFoundryUnshareServiceStageConfig.tsx} +3 -3
- package/src/pipeline/stages/unshareService/{cloudfoundryUnshareServiceStage.module.ts → cloudFoundryUnshareServiceStage.module.ts} +4 -4
- package/src/presentation/pipeline/stages/{CloudfoundryAsgStageConfig.tsx → CloudFoundryAsgStageConfig.tsx} +2 -2
- package/src/presentation/pipeline/stages/{CloudfoundryLoadBalancersExecutionDetails.tsx → CloudFoundryLoadBalancersExecutionDetails.tsx} +2 -2
- package/src/presentation/pipeline/stages/{CloudfoundryLoadBalancersStageConfig.tsx → CloudFoundryLoadBalancersStageConfig.tsx} +6 -6
- package/src/presentation/pipeline/stages/{CloudfoundryServiceExecutionDetails.tsx → CloudFoundryServiceExecutionDetails.tsx} +2 -2
- package/src/presentation/pipeline/stages/{CloudfoundryServiceKeyExecutionDetails.tsx → CloudFoundryServiceKeyExecutionDetails.tsx} +2 -2
- package/src/presentation/pipeline/stages/index.ts +5 -5
|
@@ -6,14 +6,14 @@ import { takeUntil } from 'rxjs/operators';
|
|
|
6
6
|
import type { IService, IServicePlan } from '@spinnaker/core';
|
|
7
7
|
import { ReactSelectInput, ServicesReader, StageConfigField, TextAreaInput, TextInput } from '@spinnaker/core';
|
|
8
8
|
|
|
9
|
-
import type {
|
|
9
|
+
import type { ICloudFoundryServiceManifestDirectSource } from './ICloudFoundryServiceManifestSource';
|
|
10
10
|
import { ServiceTagsInput } from './ServiceTagsInput';
|
|
11
11
|
|
|
12
12
|
interface ICreateServiceInstanceDirectInputProps {
|
|
13
13
|
credentials: string;
|
|
14
14
|
region: string;
|
|
15
|
-
service:
|
|
16
|
-
onServiceChanged: (_:
|
|
15
|
+
service: ICloudFoundryServiceManifestDirectSource;
|
|
16
|
+
onServiceChanged: (_: ICloudFoundryServiceManifestDirectSource) => void;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
interface ICreateServiceInstanceDirectInputState {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IArtifact } from '@spinnaker/core';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
3
|
+
export interface ICloudFoundryServiceManifestDirectSource {
|
|
4
4
|
parameters?: string;
|
|
5
5
|
service: string;
|
|
6
6
|
serviceInstanceName: string;
|
|
@@ -23,5 +23,5 @@ export interface ICloudFoundryServiceUserProvidedSource {
|
|
|
23
23
|
export interface ICloudFoundryServiceManifestSource {
|
|
24
24
|
artifact?: IArtifact;
|
|
25
25
|
artifactId?: string;
|
|
26
|
-
direct?:
|
|
26
|
+
direct?: ICloudFoundryServiceManifestDirectSource | ICloudFoundryServiceUserProvidedSource;
|
|
27
27
|
}
|
|
@@ -4,9 +4,9 @@ import { get, upperFirst } from 'lodash';
|
|
|
4
4
|
import type { IPipeline, IStage, IStageOrTriggerValidator, ITrigger, IValidatorConfig } from '@spinnaker/core';
|
|
5
5
|
import { ExecutionDetailsTasks, PipelineConfigValidator, Registry } from '@spinnaker/core';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { CloudFoundryDeployServiceStageConfig } from './CloudFoundryDeployServiceStageConfig';
|
|
8
8
|
import type { ICloudFoundryServiceManifestSource } from './ICloudFoundryServiceManifestSource';
|
|
9
|
-
import {
|
|
9
|
+
import { CloudFoundryServiceExecutionDetails } from '../../../presentation';
|
|
10
10
|
|
|
11
11
|
interface IServiceFieldValidatorConfig extends IValidatorConfig {
|
|
12
12
|
manifestSource: string;
|
|
@@ -91,11 +91,11 @@ PipelineConfigValidator.registerValidator(
|
|
|
91
91
|
Registry.pipeline.registerStage({
|
|
92
92
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
93
93
|
cloudProvider: 'cloudfoundry',
|
|
94
|
-
component:
|
|
94
|
+
component: CloudFoundryDeployServiceStageConfig,
|
|
95
95
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
96
96
|
supportsCustomTimeout: true,
|
|
97
97
|
description: 'Deploys services using Open Service Broker and deploys user-provided services',
|
|
98
|
-
executionDetailsSections: [
|
|
98
|
+
executionDetailsSections: [CloudFoundryServiceExecutionDetails, ExecutionDetailsTasks],
|
|
99
99
|
key: 'deployService',
|
|
100
100
|
label: 'Deploy Service',
|
|
101
101
|
validators: [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { Registry } from '@spinnaker/core';
|
|
3
|
-
import {
|
|
3
|
+
import { CloudFoundryAsgStageConfig } from '../../../presentation';
|
|
4
4
|
|
|
5
5
|
Registry.pipeline.registerStage({
|
|
6
6
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
7
7
|
cloudProvider: 'cloudfoundry',
|
|
8
|
-
component:
|
|
8
|
+
component: CloudFoundryAsgStageConfig,
|
|
9
9
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
10
10
|
key: 'destroyServerGroup',
|
|
11
11
|
provides: 'destroyServerGroup',
|
|
File without changes
|
|
@@ -7,7 +7,7 @@ import { takeUntil } from 'rxjs/operators';
|
|
|
7
7
|
import type { Application, IAccount, IFormikStageConfigInjectedProps, IRegion } from '@spinnaker/core';
|
|
8
8
|
import { AccountService, StageConfigField } from '@spinnaker/core';
|
|
9
9
|
|
|
10
|
-
export interface
|
|
10
|
+
export interface ICloudFoundryDestroyServiceStageConfigState {
|
|
11
11
|
accounts: IAccount[];
|
|
12
12
|
regions: string[];
|
|
13
13
|
application: Application;
|
|
@@ -15,7 +15,7 @@ export interface ICloudfoundryDestroyServiceStageConfigState {
|
|
|
15
15
|
|
|
16
16
|
export class CloudFoundryDestroyServiceStageConfigForm extends React.Component<
|
|
17
17
|
IFormikStageConfigInjectedProps,
|
|
18
|
-
|
|
18
|
+
ICloudFoundryDestroyServiceStageConfigState
|
|
19
19
|
> {
|
|
20
20
|
private destroy$ = new Subject();
|
|
21
21
|
|
|
@@ -4,8 +4,8 @@ import { ExecutionDetailsTasks, Registry } from '@spinnaker/core';
|
|
|
4
4
|
import {
|
|
5
5
|
CloudFoundryDestroyServiceStageConfig,
|
|
6
6
|
validateCloudFoundryDestroyServiceStage,
|
|
7
|
-
} from './
|
|
8
|
-
import {
|
|
7
|
+
} from './CloudFoundryDestroyServiceStageConfig';
|
|
8
|
+
import { CloudFoundryServiceExecutionDetails } from '../../../presentation';
|
|
9
9
|
|
|
10
10
|
Registry.pipeline.registerStage({
|
|
11
11
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
@@ -13,7 +13,7 @@ Registry.pipeline.registerStage({
|
|
|
13
13
|
cloudProvider: 'cloudfoundry',
|
|
14
14
|
component: CloudFoundryDestroyServiceStageConfig,
|
|
15
15
|
supportsCustomTimeout: true,
|
|
16
|
-
executionDetailsSections: [
|
|
16
|
+
executionDetailsSections: [CloudFoundryServiceExecutionDetails, ExecutionDetailsTasks],
|
|
17
17
|
key: 'destroyService',
|
|
18
18
|
provides: 'destroyService',
|
|
19
19
|
validateFn: validateCloudFoundryDestroyServiceStage,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { Registry } from '@spinnaker/core';
|
|
3
|
-
import {
|
|
3
|
+
import { CloudFoundryAsgStageConfig } from '../../../presentation';
|
|
4
4
|
|
|
5
5
|
Registry.pipeline.registerStage({
|
|
6
6
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
7
7
|
cloudProvider: 'cloudfoundry',
|
|
8
|
-
component:
|
|
8
|
+
component: CloudFoundryAsgStageConfig,
|
|
9
9
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
10
10
|
key: 'disableServerGroup',
|
|
11
11
|
provides: 'disableServerGroup',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { Registry } from '@spinnaker/core';
|
|
3
|
-
import {
|
|
3
|
+
import { CloudFoundryAsgStageConfig } from '../../../presentation';
|
|
4
4
|
|
|
5
5
|
Registry.pipeline.registerStage({
|
|
6
6
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
7
7
|
cloudProvider: 'cloudfoundry',
|
|
8
|
-
component:
|
|
8
|
+
component: CloudFoundryAsgStageConfig,
|
|
9
9
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
10
10
|
key: 'enableServerGroup',
|
|
11
11
|
provides: 'enableServerGroup',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { ExecutionDetailsTasks, Registry } from '@spinnaker/core';
|
|
3
|
-
import {
|
|
3
|
+
import { CloudFoundryLoadBalancersExecutionDetails, CloudFoundryLoadBalancersStageConfig } from '../../../presentation';
|
|
4
4
|
|
|
5
5
|
Registry.pipeline.registerStage({
|
|
6
6
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
7
7
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
8
8
|
cloudProvider: 'cloudfoundry',
|
|
9
|
-
component:
|
|
9
|
+
component: CloudFoundryLoadBalancersStageConfig,
|
|
10
10
|
description: 'Map a load balancer',
|
|
11
|
-
executionDetailsSections: [
|
|
11
|
+
executionDetailsSections: [CloudFoundryLoadBalancersExecutionDetails, ExecutionDetailsTasks],
|
|
12
12
|
key: 'mapLoadBalancers',
|
|
13
13
|
label: 'Map Load Balancer',
|
|
14
14
|
validators: [
|
|
@@ -6,13 +6,13 @@ import type { IAccount, IStageConfigProps } from '@spinnaker/core';
|
|
|
6
6
|
import { AccountService, NgReact, StageConfigField, StageConstants } from '@spinnaker/core';
|
|
7
7
|
import { AccountRegionClusterSelector } from '../../../presentation';
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface ICloudFoundryResizeAsgStageConfigState {
|
|
10
10
|
accounts: IAccount[];
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export class
|
|
13
|
+
export class CloudFoundryResizeAsgStageConfig extends React.Component<
|
|
14
14
|
IStageConfigProps,
|
|
15
|
-
|
|
15
|
+
ICloudFoundryResizeAsgStageConfigState
|
|
16
16
|
> {
|
|
17
17
|
private destroy$ = new Subject();
|
|
18
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { Registry } from '@spinnaker/core';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { CloudFoundryResizeAsgStageConfig } from './CloudFoundryResizeAsgStageConfig';
|
|
5
5
|
import type { IInstanceFieldSizeValidationConfig } from '../../config/validation/instanceSize.validator';
|
|
6
6
|
|
|
7
7
|
const diskValidator: IInstanceFieldSizeValidationConfig = {
|
|
@@ -31,7 +31,7 @@ const memoryValidator: IInstanceFieldSizeValidationConfig = {
|
|
|
31
31
|
Registry.pipeline.registerStage({
|
|
32
32
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
33
33
|
cloudProvider: 'cloudfoundry',
|
|
34
|
-
component:
|
|
34
|
+
component: CloudFoundryResizeAsgStageConfig,
|
|
35
35
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
36
36
|
key: 'resizeServerGroup',
|
|
37
37
|
provides: 'resizeServerGroup',
|
|
@@ -6,21 +6,21 @@ import type { IAccount, IPipeline, IStageConfigProps } from '@spinnaker/core';
|
|
|
6
6
|
import { AccountService, StageConfigField } from '@spinnaker/core';
|
|
7
7
|
import { AccountRegionClusterSelector } from '../../../presentation';
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface ICloudFoundryRollbackClusterStageProps extends IStageConfigProps {
|
|
10
10
|
pipeline: IPipeline;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export interface
|
|
13
|
+
export interface ICloudFoundryRollbackClusterStageConfigState {
|
|
14
14
|
accounts: IAccount[];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export class
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
export class CloudFoundryRollbackClusterStageConfig extends React.Component<
|
|
18
|
+
ICloudFoundryRollbackClusterStageProps,
|
|
19
|
+
ICloudFoundryRollbackClusterStageConfigState
|
|
20
20
|
> {
|
|
21
21
|
private destroy$ = new Subject();
|
|
22
22
|
|
|
23
|
-
constructor(props:
|
|
23
|
+
constructor(props: ICloudFoundryRollbackClusterStageProps) {
|
|
24
24
|
super(props);
|
|
25
25
|
|
|
26
26
|
this.props.updateStageField({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { Registry } from '@spinnaker/core';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { CloudFoundryRollbackClusterStageConfig } from './CloudFoundryRollbackClusterStageConfig';
|
|
5
5
|
|
|
6
6
|
Registry.pipeline.registerStage({
|
|
7
7
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
@@ -9,7 +9,7 @@ Registry.pipeline.registerStage({
|
|
|
9
9
|
provides: 'rollbackCluster',
|
|
10
10
|
key: 'rollbackCluster',
|
|
11
11
|
cloudProvider: 'cloudfoundry',
|
|
12
|
-
component:
|
|
12
|
+
component: CloudFoundryRollbackClusterStageConfig,
|
|
13
13
|
controller: 'cfRollbackClusterStageCtrl',
|
|
14
14
|
validators: [
|
|
15
15
|
{ type: 'requiredField', preventSave: true, fieldName: 'cluster' },
|
|
@@ -6,14 +6,14 @@ import type { IAccount, IStageConfigProps } from '@spinnaker/core';
|
|
|
6
6
|
import { AccountService, NgReact, SpelText, StageConfigField, StageConstants, TextInput } from '@spinnaker/core';
|
|
7
7
|
import { AccountRegionClusterSelector } from '../../../presentation';
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface ICloudFoundryRunTaskStageConfigState {
|
|
10
10
|
accounts: IAccount[];
|
|
11
11
|
region: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export class
|
|
14
|
+
export class CloudFoundryRunJobStageConfig extends React.Component<
|
|
15
15
|
IStageConfigProps,
|
|
16
|
-
|
|
16
|
+
ICloudFoundryRunTaskStageConfigState
|
|
17
17
|
> {
|
|
18
18
|
private destroy$ = new Subject();
|
|
19
19
|
|
package/src/pipeline/stages/runJob/{cloudfoundryRunJob.module.ts → cloudFoundryRunJob.module.ts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { ExecutionDetailsTasks, Registry } from '@spinnaker/core';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { CloudFoundryRunJobStageConfig } from './CloudFoundryRunJobStageConfig';
|
|
5
5
|
import { RunJobExecutionDetails } from './RunJobExecutionDetails';
|
|
6
6
|
|
|
7
7
|
Registry.pipeline.registerStage({
|
|
8
8
|
accountExtractor: (stage: IStage) => stage.context.credentials,
|
|
9
|
-
component:
|
|
9
|
+
component: CloudFoundryRunJobStageConfig,
|
|
10
10
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
11
11
|
cloudProvider: 'cloudfoundry',
|
|
12
12
|
key: 'runJob',
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import type { IExecutionDetailsSectionProps } from '@spinnaker/core';
|
|
5
5
|
import { AccountTag, ExecutionDetailsSection, StageExecutionLogs, StageFailureMessage } from '@spinnaker/core';
|
|
6
6
|
|
|
7
|
-
export function
|
|
7
|
+
export function CloudFoundryShareServiceExecutionDetails(props: IExecutionDetailsSectionProps) {
|
|
8
8
|
const { stage } = props;
|
|
9
9
|
const { context } = stage;
|
|
10
10
|
const account = get(context, 'service.account', undefined);
|
|
@@ -47,6 +47,6 @@ export function CloudfoundryShareServiceExecutionDetails(props: IExecutionDetail
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
// eslint-disable-next-line
|
|
50
|
-
export namespace
|
|
50
|
+
export namespace CloudFoundryShareServiceExecutionDetails {
|
|
51
51
|
export const title = 'cloudfoundryShareServiceConfig';
|
|
52
52
|
}
|
|
@@ -7,15 +7,15 @@ import { takeUntil } from 'rxjs/operators';
|
|
|
7
7
|
import type { IAccount, IRegion, IStageConfigProps } from '@spinnaker/core';
|
|
8
8
|
import { AccountService, ReactSelectInput, StageConfigField, TextInput } from '@spinnaker/core';
|
|
9
9
|
|
|
10
|
-
interface
|
|
10
|
+
interface ICloudFoundryShareServiceStageConfigState {
|
|
11
11
|
accounts: IAccount[];
|
|
12
12
|
regions: string[];
|
|
13
13
|
shareToRegionsList: string[];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export class
|
|
16
|
+
export class CloudFoundryShareServiceStageConfig extends React.Component<
|
|
17
17
|
IStageConfigProps,
|
|
18
|
-
|
|
18
|
+
ICloudFoundryShareServiceStageConfigState
|
|
19
19
|
> {
|
|
20
20
|
private destroy$ = new Subject();
|
|
21
21
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { ExecutionDetailsTasks, Registry } from '@spinnaker/core';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { CloudFoundryShareServiceExecutionDetails } from './CloudFoundryShareServiceExecutionDetails';
|
|
5
|
+
import { CloudFoundryShareServiceStageConfig } from './CloudFoundryShareServiceStageConfig';
|
|
6
6
|
|
|
7
7
|
Registry.pipeline.registerStage({
|
|
8
8
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
@@ -10,8 +10,8 @@ Registry.pipeline.registerStage({
|
|
|
10
10
|
provides: 'shareService',
|
|
11
11
|
key: 'shareService',
|
|
12
12
|
cloudProvider: 'cloudfoundry',
|
|
13
|
-
component:
|
|
14
|
-
executionDetailsSections: [
|
|
13
|
+
component: CloudFoundryShareServiceStageConfig,
|
|
14
|
+
executionDetailsSections: [CloudFoundryShareServiceExecutionDetails, ExecutionDetailsTasks],
|
|
15
15
|
supportsCustomTimeout: true,
|
|
16
16
|
validators: [
|
|
17
17
|
{ type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { ExecutionDetailsTasks, Registry } from '@spinnaker/core';
|
|
3
|
-
import {
|
|
3
|
+
import { CloudFoundryLoadBalancersExecutionDetails, CloudFoundryLoadBalancersStageConfig } from '../../../presentation';
|
|
4
4
|
|
|
5
5
|
Registry.pipeline.registerStage({
|
|
6
6
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
7
7
|
configAccountExtractor: (stage: IStage) => [stage.credentials],
|
|
8
8
|
cloudProvider: 'cloudfoundry',
|
|
9
|
-
component:
|
|
9
|
+
component: CloudFoundryLoadBalancersStageConfig,
|
|
10
10
|
description: 'Unmap a load balancer',
|
|
11
|
-
executionDetailsSections: [
|
|
11
|
+
executionDetailsSections: [CloudFoundryLoadBalancersExecutionDetails, ExecutionDetailsTasks],
|
|
12
12
|
key: 'unmapLoadBalancers',
|
|
13
13
|
label: 'Unmap Load Balancer',
|
|
14
14
|
validators: [
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import type { IExecutionDetailsSectionProps } from '@spinnaker/core';
|
|
5
5
|
import { AccountTag, ExecutionDetailsSection, StageExecutionLogs, StageFailureMessage } from '@spinnaker/core';
|
|
6
6
|
|
|
7
|
-
export function
|
|
7
|
+
export function CloudFoundryUnshareServiceExecutionDetails(props: IExecutionDetailsSectionProps) {
|
|
8
8
|
const { stage } = props;
|
|
9
9
|
const { context } = stage;
|
|
10
10
|
const account = get(context, 'service.account', undefined);
|
|
@@ -41,6 +41,6 @@ export function CloudfoundryUnshareServiceExecutionDetails(props: IExecutionDeta
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// eslint-disable-next-line
|
|
44
|
-
export namespace
|
|
44
|
+
export namespace CloudFoundryUnshareServiceExecutionDetails {
|
|
45
45
|
export const title = 'cloudfoundryUnshareServiceConfig';
|
|
46
46
|
}
|
|
@@ -7,14 +7,14 @@ import { takeUntil } from 'rxjs/operators';
|
|
|
7
7
|
import type { IAccount, IRegion, IStageConfigProps } from '@spinnaker/core';
|
|
8
8
|
import { AccountService, ReactSelectInput, StageConfigField, TextInput } from '@spinnaker/core';
|
|
9
9
|
|
|
10
|
-
interface
|
|
10
|
+
interface ICloudFoundryShareServiceStageConfigState {
|
|
11
11
|
accounts: IAccount[];
|
|
12
12
|
regions: string[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class CloudFoundryUnshareServiceStageConfig extends React.Component<
|
|
16
16
|
IStageConfigProps,
|
|
17
|
-
|
|
17
|
+
ICloudFoundryShareServiceStageConfigState
|
|
18
18
|
> {
|
|
19
19
|
private destroy$ = new Subject();
|
|
20
20
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IStage } from '@spinnaker/core';
|
|
2
2
|
import { ExecutionDetailsTasks, Registry } from '@spinnaker/core';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { CloudFoundryUnshareServiceExecutionDetails } from './CloudFoundryUnshareServiceExecutionDetails';
|
|
5
|
+
import { CloudFoundryUnshareServiceStageConfig } from './CloudFoundryUnshareServiceStageConfig';
|
|
6
6
|
|
|
7
7
|
Registry.pipeline.registerStage({
|
|
8
8
|
accountExtractor: (stage: IStage) => [stage.context.credentials],
|
|
@@ -10,9 +10,9 @@ Registry.pipeline.registerStage({
|
|
|
10
10
|
provides: 'unshareService',
|
|
11
11
|
key: 'unshareService',
|
|
12
12
|
cloudProvider: 'cloudfoundry',
|
|
13
|
-
component:
|
|
13
|
+
component: CloudFoundryUnshareServiceStageConfig,
|
|
14
14
|
controller: 'cfUnshareServiceStageCtrl',
|
|
15
|
-
executionDetailsSections: [
|
|
15
|
+
executionDetailsSections: [CloudFoundryUnshareServiceExecutionDetails, ExecutionDetailsTasks],
|
|
16
16
|
supportsCustomTimeout: true,
|
|
17
17
|
validators: [
|
|
18
18
|
{ type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },
|
|
@@ -7,11 +7,11 @@ import { AccountService, NgReact, StageConfigField, StageConstants } from '@spin
|
|
|
7
7
|
|
|
8
8
|
import { AccountRegionClusterSelector } from '../../widgets/accountRegionClusterSelector';
|
|
9
9
|
|
|
10
|
-
export interface
|
|
10
|
+
export interface ICloudFoundryAsgStageConfigState {
|
|
11
11
|
accounts: IAccount[];
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export class
|
|
14
|
+
export class CloudFoundryAsgStageConfig extends React.Component<IStageConfigProps, ICloudFoundryAsgStageConfigState> {
|
|
15
15
|
private destroy$ = new Subject();
|
|
16
16
|
|
|
17
17
|
constructor(props: IStageConfigProps) {
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import type { IExecutionDetailsSectionProps } from '@spinnaker/core';
|
|
5
5
|
import { AccountTag, ExecutionDetailsSection, StageExecutionLogs, StageFailureMessage } from '@spinnaker/core';
|
|
6
6
|
|
|
7
|
-
export function
|
|
7
|
+
export function CloudFoundryLoadBalancersExecutionDetails(props: IExecutionDetailsSectionProps) {
|
|
8
8
|
const { stage } = props;
|
|
9
9
|
const { context } = stage;
|
|
10
10
|
const account = get(context, 'credentials', undefined);
|
|
@@ -48,6 +48,6 @@ export function CloudfoundryLoadBalancersExecutionDetails(props: IExecutionDetai
|
|
|
48
48
|
|
|
49
49
|
// TODO: refactor this to not use namespace
|
|
50
50
|
// eslint-disable-next-line
|
|
51
|
-
export namespace
|
|
51
|
+
export namespace CloudFoundryLoadBalancersExecutionDetails {
|
|
52
52
|
export const title = 'cloudfoundryLoadBalancersConfig';
|
|
53
53
|
}
|
|
@@ -9,7 +9,7 @@ import { AccountService, NgReact, SpinFormik, StageConfigField, StageConstants }
|
|
|
9
9
|
import { Routes } from '../../forms/serverGroup';
|
|
10
10
|
import { AccountRegionClusterSelector } from '../../widgets/accountRegionClusterSelector';
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
interface ICloudFoundryLoadBalancerStageConfigProps extends IStageConfigProps {
|
|
13
13
|
pipeline: IPipeline;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -17,21 +17,21 @@ interface ICloudFoundryLoadBalancersValues {
|
|
|
17
17
|
routes: string[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
interface
|
|
20
|
+
interface ICloudFoundryLoadBalancersStageConfigState {
|
|
21
21
|
accounts: IAccount[];
|
|
22
22
|
application: Application;
|
|
23
23
|
initialValues: ICloudFoundryLoadBalancersValues;
|
|
24
24
|
pipeline: IPipeline;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export class
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
export class CloudFoundryLoadBalancersStageConfig extends React.Component<
|
|
28
|
+
ICloudFoundryLoadBalancerStageConfigProps,
|
|
29
|
+
ICloudFoundryLoadBalancersStageConfigState
|
|
30
30
|
> {
|
|
31
31
|
private destroy$ = new Subject();
|
|
32
32
|
private formikRef = React.createRef<Formik<ICloudFoundryLoadBalancersValues>>();
|
|
33
33
|
|
|
34
|
-
constructor(props:
|
|
34
|
+
constructor(props: ICloudFoundryLoadBalancerStageConfigProps) {
|
|
35
35
|
super(props);
|
|
36
36
|
const { loadBalancerNames } = props.stage;
|
|
37
37
|
const routes = loadBalancerNames && loadBalancerNames.length ? loadBalancerNames : [''];
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import type { IExecutionDetailsSectionProps } from '@spinnaker/core';
|
|
5
5
|
import { AccountTag, ExecutionDetailsSection, StageExecutionLogs, StageFailureMessage } from '@spinnaker/core';
|
|
6
6
|
|
|
7
|
-
export function
|
|
7
|
+
export function CloudFoundryServiceExecutionDetails(props: IExecutionDetailsSectionProps) {
|
|
8
8
|
const { stage } = props;
|
|
9
9
|
const { context } = stage;
|
|
10
10
|
const account = get(context, 'service.account', undefined);
|
|
@@ -41,6 +41,6 @@ export function CloudfoundryServiceExecutionDetails(props: IExecutionDetailsSect
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// eslint-disable-next-line
|
|
44
|
-
export namespace
|
|
44
|
+
export namespace CloudFoundryServiceExecutionDetails {
|
|
45
45
|
export const title = 'cloudfoundryServiceConfig';
|
|
46
46
|
}
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import type { IExecutionDetailsSectionProps } from '@spinnaker/core';
|
|
5
5
|
import { AccountTag, ExecutionDetailsSection, StageExecutionLogs, StageFailureMessage } from '@spinnaker/core';
|
|
6
6
|
|
|
7
|
-
export function
|
|
7
|
+
export function CloudFoundryServiceKeyExecutionDetails(props: IExecutionDetailsSectionProps) {
|
|
8
8
|
const { stage } = props;
|
|
9
9
|
const { context } = stage;
|
|
10
10
|
const account = get(context, 'service.account', undefined);
|
|
@@ -47,6 +47,6 @@ export function CloudfoundryServiceKeyExecutionDetails(props: IExecutionDetailsS
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
// eslint-disable-next-line
|
|
50
|
-
export namespace
|
|
50
|
+
export namespace CloudFoundryServiceKeyExecutionDetails {
|
|
51
51
|
export const title = 'cloudfoundryServiceKeyConfig';
|
|
52
52
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
1
|
+
export * from './CloudFoundryAsgStageConfig';
|
|
2
|
+
export * from './CloudFoundryLoadBalancersExecutionDetails';
|
|
3
|
+
export * from './CloudFoundryLoadBalancersStageConfig';
|
|
4
|
+
export * from './CloudFoundryServiceExecutionDetails';
|
|
5
|
+
export * from './CloudFoundryServiceKeyExecutionDetails';
|