@spinnaker/cloudfoundry 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 +1085 -0
- package/LICENSE.txt +203 -0
- package/dist/cf.module.d.ts +24 -0
- package/dist/cf.settings.d.ts +7 -0
- package/dist/common/applicationName.validator.d.ts +1 -0
- package/dist/deploymentStrategy/CloudFoundryDeploymentStrategySelector.d.ts +21 -0
- package/dist/deploymentStrategy/strategies/redblack/redblack.strategy.d.ts +10 -0
- package/dist/deploymentStrategy/strategies/rollingredblack/AdditionalFields.d.ts +22 -0
- package/dist/domain/ICloudFoundryAccount.d.ts +7 -0
- package/dist/domain/ICloudFoundryApplication.d.ts +4 -0
- package/dist/domain/ICloudFoundryCluster.d.ts +5 -0
- package/dist/domain/ICloudFoundryDroplet.d.ts +19 -0
- package/dist/domain/ICloudFoundryInstance.d.ts +4 -0
- package/dist/domain/ICloudFoundryLoadBalancer.d.ts +25 -0
- package/dist/domain/ICloudFoundryServerGroup.d.ts +41 -0
- package/dist/domain/ICloudFoundrySpace.d.ts +9 -0
- package/dist/domain/index.d.ts +8 -0
- package/dist/help/cloudfoundry.help.d.ts +1 -0
- package/dist/image/image.reader.cf.d.ts +4 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5929 -0
- package/dist/index.js.map +1 -0
- package/dist/instance/details/CloudFoundryInstanceActions.d.ts +11 -0
- package/dist/instance/details/CloudFoundryInstanceDetails.d.ts +23 -0
- package/dist/instance/details/index.d.ts +1 -0
- package/dist/instance/details/sections/CloudFoundryInstanceDetailsSection.d.ts +9 -0
- package/dist/instance/details/sections/index.d.ts +1 -0
- package/dist/loadBalancer/configure/CloudFoundryMapLoadBalancerModal.d.ts +33 -0
- package/dist/loadBalancer/configure/loadBalancerDetails.d.ts +32 -0
- package/dist/loadBalancer/details/CloudFoundryLoadBalancerActions.d.ts +10 -0
- package/dist/loadBalancer/details/CloudFoundryLoadBalancerDetails.d.ts +26 -0
- package/dist/loadBalancer/details/index.d.ts +1 -0
- package/dist/loadBalancer/details/sections/CloudFoundryLoadBalancerDetailsSection.d.ts +9 -0
- package/dist/loadBalancer/details/sections/CloudFoundryLoadBalancerLinksSection.d.ts +9 -0
- package/dist/loadBalancer/details/sections/CloudFoundryLoadBalancerStatusSection.d.ts +9 -0
- package/dist/loadBalancer/details/sections/index.d.ts +3 -0
- package/dist/loadBalancer/index.d.ts +3 -0
- package/dist/loadBalancer/loadBalancer.transformer.d.ts +25 -0
- package/dist/pipeline/config/validation/cfTargetImpedance.validator.d.ts +9 -0
- package/dist/pipeline/config/validation/instanceSize.validator.d.ts +15 -0
- package/dist/pipeline/config/validation/requiredRoutes.validator.d.ts +4 -0
- package/dist/pipeline/stages/bakeCloudFoundryManifest/BakeCloudFoundryManifestConfig.d.ts +7 -0
- package/dist/pipeline/stages/bakeCloudFoundryManifest/BakeCloudFoundryManifestConfigForm.d.ts +13 -0
- package/dist/pipeline/stages/bakeCloudFoundryManifest/BakeCloudFoundryManifestDetailsTab.d.ts +6 -0
- package/dist/pipeline/stages/bakeCloudFoundryManifest/bakeCloudFoundryManifestStage.d.ts +1 -0
- package/dist/pipeline/stages/cloneServerGroup/CloudFoundryCloneServerGroupStageConfig.d.ts +11 -0
- package/dist/pipeline/stages/cloneServerGroup/cloudFoundryCloneServerGroupStage.module.d.ts +1 -0
- package/dist/pipeline/stages/createServiceBindings/CloudFoundryCreateServiceBindingsConfig.d.ts +9 -0
- package/dist/pipeline/stages/createServiceBindings/CloudFoundryCreateServiceBindingsStageConfigForm.d.ts +26 -0
- package/dist/pipeline/stages/createServiceBindings/cloudFoundryCreateServiceBindingsStage.d.ts +1 -0
- package/dist/pipeline/stages/createServiceKey/CloudFoundryCreateServiceKeyStageConfig.d.ts +19 -0
- package/dist/pipeline/stages/createServiceKey/cloudFoundryCreateServiceKeyStage.module.d.ts +1 -0
- package/dist/pipeline/stages/deleteServiceBindings/CloudFoundryDeleteServiceBindingsConfig.d.ts +10 -0
- package/dist/pipeline/stages/deleteServiceBindings/CloudFoundryDeleteServiceBindingsStageConfigForm.d.ts +20 -0
- package/dist/pipeline/stages/deleteServiceBindings/cloudFoundryDeleteServiceBindingsStage.d.ts +1 -0
- package/dist/pipeline/stages/deleteServiceKey/CloudFoundryDeleteServiceKeyStageConfig.d.ts +19 -0
- package/dist/pipeline/stages/deleteServiceKey/cloudFoundryDeleteServiceKeyStage.module.d.ts +1 -0
- package/dist/pipeline/stages/deployService/CloudFoundryDeployServiceStageConfig.d.ts +24 -0
- package/dist/pipeline/stages/deployService/CreateServiceInstanceDirectInput.d.ts +29 -0
- package/dist/pipeline/stages/deployService/CreateUserProvidedInput.d.ts +19 -0
- package/dist/pipeline/stages/deployService/ICloudFoundryServiceManifestSource.d.ts +24 -0
- package/dist/pipeline/stages/deployService/ServiceTagsInput.d.ts +17 -0
- package/dist/pipeline/stages/deployService/cloudFoundryDeployServiceStage.module.d.ts +1 -0
- package/dist/pipeline/stages/destroyAsg/cloudFoundryDestroyAsgStage.module.d.ts +1 -0
- package/dist/pipeline/stages/destroyService/CloudFoundryDestroyServiceStageConfig.d.ts +5 -0
- package/dist/pipeline/stages/destroyService/CloudFoundryDestroyServiceStageConfigForm.d.ts +19 -0
- package/dist/pipeline/stages/destroyService/cloudFoundryDestroyServiceStage.module.d.ts +1 -0
- package/dist/pipeline/stages/disableAsg/cloudFoundryDisableAsgStage.module.d.ts +1 -0
- package/dist/pipeline/stages/enableAsg/cloudFoundryEnableAsgStage.module.d.ts +1 -0
- package/dist/pipeline/stages/mapLoadBalancers/cloudFoundryMapLoadBalancersStage.module.d.ts +1 -0
- package/dist/pipeline/stages/resizeAsg/CloudFoundryResizeAsgStageConfig.d.ts +17 -0
- package/dist/pipeline/stages/resizeAsg/cloudFoundryResizeAsgStage.module.d.ts +1 -0
- package/dist/pipeline/stages/rollbackCluster/CloudFoundryRollbackClusterStageConfig.d.ts +17 -0
- package/dist/pipeline/stages/rollbackCluster/cloudFoundryRollbackClusterStage.module.d.ts +1 -0
- package/dist/pipeline/stages/runJob/CloudFoundryRunJobStageConfig.d.ts +14 -0
- package/dist/pipeline/stages/runJob/RunJobExecutionDetails.d.ts +6 -0
- package/dist/pipeline/stages/runJob/cloudFoundryRunJob.module.d.ts +1 -0
- package/dist/pipeline/stages/shareService/CloudFoundryShareServiceExecutionDetails.d.ts +6 -0
- package/dist/pipeline/stages/shareService/CloudFoundryShareServiceStageConfig.d.ts +21 -0
- package/dist/pipeline/stages/shareService/cloudFoundryShareServiceStage.module.d.ts +1 -0
- package/dist/pipeline/stages/unmapLoadBalancers/cloudFoundryUnmapLoadBalancersStage.module.d.ts +1 -0
- package/dist/pipeline/stages/unshareService/CloudFoundryUnshareServiceExecutionDetails.d.ts +6 -0
- package/dist/pipeline/stages/unshareService/CloudFoundryUnshareServiceStageConfig.d.ts +18 -0
- package/dist/pipeline/stages/unshareService/cloudFoundryUnshareServiceStage.module.d.ts +1 -0
- package/dist/presentation/forms/index.d.ts +2 -0
- package/dist/presentation/forms/inputs/FormikConfigField.d.ts +10 -0
- package/dist/presentation/forms/inputs/index.d.ts +1 -0
- package/dist/presentation/forms/serverGroup/Buildpacks.d.ts +8 -0
- package/dist/presentation/forms/serverGroup/EnvironmentVariables.d.ts +8 -0
- package/dist/presentation/forms/serverGroup/HealthCheck.d.ts +12 -0
- package/dist/presentation/forms/serverGroup/InstanceParameters.d.ts +12 -0
- package/dist/presentation/forms/serverGroup/Routes.d.ts +10 -0
- package/dist/presentation/forms/serverGroup/Services.d.ts +5 -0
- package/dist/presentation/forms/serverGroup/index.d.ts +6 -0
- package/dist/presentation/index.d.ts +3 -0
- package/dist/presentation/pipeline/index.d.ts +1 -0
- package/dist/presentation/pipeline/stages/CloudFoundryAsgStageConfig.d.ts +14 -0
- package/dist/presentation/pipeline/stages/CloudFoundryLoadBalancersExecutionDetails.d.ts +6 -0
- package/dist/presentation/pipeline/stages/CloudFoundryLoadBalancersStageConfig.d.ts +25 -0
- package/dist/presentation/pipeline/stages/CloudFoundryServiceExecutionDetails.d.ts +6 -0
- package/dist/presentation/pipeline/stages/CloudFoundryServiceKeyExecutionDetails.d.ts +6 -0
- package/dist/presentation/pipeline/stages/index.d.ts +5 -0
- package/dist/presentation/widgets/accountRegionClusterSelector/AccountRegionClusterSelector.d.ts +33 -0
- package/dist/presentation/widgets/accountRegionClusterSelector/FormikAccountRegionClusterSelector.d.ts +32 -0
- package/dist/presentation/widgets/accountRegionClusterSelector/index.d.ts +2 -0
- package/dist/presentation/widgets/index.d.ts +1 -0
- package/dist/presentation/widgets/recentLogs/CloudFoundryRecentLogs.d.ts +27 -0
- package/dist/routeDomains/index.d.ts +1 -0
- package/dist/routeDomains/routeDomainSelectField.d.ts +15 -0
- package/dist/serverGroup/configure/index.d.ts +4 -0
- package/dist/serverGroup/configure/serverGroupCommandBuilder.service.cf.d.ts +12 -0
- package/dist/serverGroup/configure/serverGroupCommandBuilderShim.service.cf.d.ts +14 -0
- package/dist/serverGroup/configure/serverGroupConfigurationModel.cf.d.ts +65 -0
- package/dist/serverGroup/configure/wizard/CreateServerGroupModal.d.ts +31 -0
- package/dist/serverGroup/configure/wizard/ServerGroupTemplateSelection.d.ts +16 -0
- package/dist/serverGroup/configure/wizard/sections/artifactSettings/ArtifactSettings.cf.d.ts +17 -0
- package/dist/serverGroup/configure/wizard/sections/artifactSettings/ConstantArtifactSettings.cf.d.ts +11 -0
- package/dist/serverGroup/configure/wizard/sections/basicSettings/BasicSettings.cf.d.ts +24 -0
- package/dist/serverGroup/configure/wizard/sections/cloneSettings/CloneSettings.cf.d.ts +21 -0
- package/dist/serverGroup/configure/wizard/sections/configurationSettings/ConfigurationSettings.cf.d.ts +22 -0
- package/dist/serverGroup/details/cfServerGroupDetailsGetter.d.ts +4 -0
- package/dist/serverGroup/details/cloudFoundryServerGroupActions.d.ts +24 -0
- package/dist/serverGroup/details/mapLoadBalancers/CloudFoundryMapLoadBalancersModal.d.ts +28 -0
- package/dist/serverGroup/details/mapLoadBalancers/CloudFoundryUnmapLoadBalancersModal.d.ts +28 -0
- package/dist/serverGroup/details/resize/CloudFoundryResizeServerGroupModal.d.ts +37 -0
- package/dist/serverGroup/details/rollback/CloudFoundryRollbackServerGroupModal.d.ts +36 -0
- package/dist/serverGroup/details/sections/ApplicationManagerSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/BoundServicesSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/BuildSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/EnvironmentVariablesSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/HealthCheckSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/ICloudFoundryServerGroupDetailsSectionProps.d.ts +5 -0
- package/dist/serverGroup/details/sections/MetricsSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/PackageSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/ServerGroupInformationSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/ServerGroupSizingSection.d.ts +6 -0
- package/dist/serverGroup/details/sections/index.d.ts +9 -0
- package/dist/serverGroup/index.d.ts +5 -0
- package/dist/serverGroup/serverGroup.transformer.d.ts +10 -0
- package/package.json +52 -0
- package/src/cf.module.ts +85 -0
- package/src/cf.settings.ts +14 -0
- package/src/common/applicationName.validator.ts +43 -0
- package/src/common/cloudFoundry.less +16 -0
- package/src/deploymentStrategy/CloudFoundryDeploymentStrategySelector.tsx +175 -0
- package/src/deploymentStrategy/strategies/redblack/redblack.strategy.ts +11 -0
- package/src/deploymentStrategy/strategies/rollingredblack/AdditionalFields.tsx +161 -0
- package/src/domain/ICloudFoundryAccount.ts +9 -0
- package/src/domain/ICloudFoundryApplication.ts +5 -0
- package/src/domain/ICloudFoundryCluster.ts +6 -0
- package/src/domain/ICloudFoundryDroplet.ts +22 -0
- package/src/domain/ICloudFoundryInstance.ts +5 -0
- package/src/domain/ICloudFoundryLoadBalancer.ts +29 -0
- package/src/domain/ICloudFoundryServerGroup.ts +47 -0
- package/src/domain/ICloudFoundrySpace.ts +10 -0
- package/src/domain/index.ts +8 -0
- package/src/help/cloudfoundry.help.ts +31 -0
- package/src/image/image.reader.cf.ts +17 -0
- package/src/index.ts +7 -0
- package/src/instance/details/CloudFoundryInstanceActions.tsx +59 -0
- package/src/instance/details/CloudFoundryInstanceDetails.tsx +154 -0
- package/src/instance/details/index.ts +1 -0
- package/src/instance/details/sections/CloudFoundryInstanceDetailsSection.tsx +49 -0
- package/src/instance/details/sections/index.ts +1 -0
- package/src/loadBalancer/configure/CloudFoundryMapLoadBalancerModal.tsx +210 -0
- package/src/loadBalancer/configure/loadBalancerDetails.tsx +228 -0
- package/src/loadBalancer/details/CloudFoundryLoadBalancerActions.tsx +61 -0
- package/src/loadBalancer/details/CloudFoundryLoadBalancerDetails.tsx +148 -0
- package/src/loadBalancer/details/index.ts +1 -0
- package/src/loadBalancer/details/sections/CloudFoundryLoadBalancerDetailsSection.tsx +63 -0
- package/src/loadBalancer/details/sections/CloudFoundryLoadBalancerLinksSection.tsx +34 -0
- package/src/loadBalancer/details/sections/CloudFoundryLoadBalancerStatusSection.tsx +27 -0
- package/src/loadBalancer/details/sections/index.ts +3 -0
- package/src/loadBalancer/index.ts +3 -0
- package/src/loadBalancer/loadBalancer.transformer.ts +144 -0
- package/src/logo/cf.icon.svg +12 -0
- package/src/logo/cf.logo.less +5 -0
- package/src/logo/cf.logo.svg +12 -0
- package/src/pipeline/config/validation/cfTargetImpedance.validator.ts +60 -0
- package/src/pipeline/config/validation/instanceSize.validator.ts +66 -0
- package/src/pipeline/config/validation/requiredRoutes.validator.ts +26 -0
- package/src/pipeline/stages/bakeCloudFoundryManifest/BakeCloudFoundryManifestConfig.tsx +62 -0
- package/src/pipeline/stages/bakeCloudFoundryManifest/BakeCloudFoundryManifestConfigForm.tsx +174 -0
- package/src/pipeline/stages/bakeCloudFoundryManifest/BakeCloudFoundryManifestDetailsTab.tsx +35 -0
- package/src/pipeline/stages/bakeCloudFoundryManifest/bakeCloudFoundryManifestConfig.spec.tsx +80 -0
- package/src/pipeline/stages/bakeCloudFoundryManifest/bakeCloudFoundryManifestStage.ts +35 -0
- package/src/pipeline/stages/cloneServerGroup/CloudFoundryCloneServerGroupStageConfig.tsx +113 -0
- package/src/pipeline/stages/cloneServerGroup/cloudFoundryCloneServerGroupStage.module.ts +14 -0
- package/src/pipeline/stages/createServiceBindings/CloudFoundryCreateServiceBindingsConfig.spec.tsx +35 -0
- package/src/pipeline/stages/createServiceBindings/CloudFoundryCreateServiceBindingsConfig.tsx +69 -0
- package/src/pipeline/stages/createServiceBindings/CloudFoundryCreateServiceBindingsStageConfigForm.tsx +230 -0
- package/src/pipeline/stages/createServiceBindings/cloudFoundryCreateServiceBindingsStage.ts +19 -0
- package/src/pipeline/stages/createServiceBindings/cloudFoundryCreateServiceBindingsStageForm.spec.tsx +50 -0
- package/src/pipeline/stages/createServiceKey/CloudFoundryCreateServiceKeyStageConfig.tsx +116 -0
- package/src/pipeline/stages/createServiceKey/cloudFoundryCreateServiceKeyStage.module.ts +21 -0
- package/src/pipeline/stages/deleteServiceBindings/CloudFoundryDeleteServiceBindingsConfig.tsx +69 -0
- package/src/pipeline/stages/deleteServiceBindings/CloudFoundryDeleteServiceBindingsStageConfigForm.tsx +158 -0
- package/src/pipeline/stages/deleteServiceBindings/cloudFoundryDeleteServiceBindingsStage.ts +19 -0
- package/src/pipeline/stages/deleteServiceBindings/cloudFoundryDeleteServiceBindingsStageForm.spec.tsx +49 -0
- package/src/pipeline/stages/deleteServiceKey/CloudFoundryDeleteServiceKeyStageConfig.tsx +116 -0
- package/src/pipeline/stages/deleteServiceKey/cloudFoundryDeleteServiceKeyStage.module.ts +22 -0
- package/src/pipeline/stages/deployService/CloudFoundryDeployServiceStageConfig.tsx +198 -0
- package/src/pipeline/stages/deployService/CreateServiceInstanceDirectInput.tsx +164 -0
- package/src/pipeline/stages/deployService/CreateUserProvidedInput.tsx +116 -0
- package/src/pipeline/stages/deployService/ICloudFoundryServiceManifestSource.ts +27 -0
- package/src/pipeline/stages/deployService/ServiceTagsInput.tsx +89 -0
- package/src/pipeline/stages/deployService/cloudFoundryDeployServiceStage.module.ts +153 -0
- package/src/pipeline/stages/deployService/cloudfoundryDeployServiceStage.less +12 -0
- package/src/pipeline/stages/destroyAsg/cloudFoundryDestroyAsgStage.module.ts +23 -0
- package/src/pipeline/stages/destroyService/CloudFoundryDestroyServiceStageConfig.tsx +46 -0
- package/src/pipeline/stages/destroyService/CloudFoundryDestroyServiceStageConfigForm.tsx +134 -0
- package/src/pipeline/stages/destroyService/cloudFoundryDestroyServiceStage.module.ts +20 -0
- package/src/pipeline/stages/disableAsg/cloudFoundryDisableAsgStage.module.ts +18 -0
- package/src/pipeline/stages/enableAsg/cloudFoundryEnableAsgStage.module.ts +18 -0
- package/src/pipeline/stages/mapLoadBalancers/cloudFoundryMapLoadBalancersStage.module.ts +21 -0
- package/src/pipeline/stages/resizeAsg/CloudFoundryResizeAsgStageConfig.tsx +148 -0
- package/src/pipeline/stages/resizeAsg/cloudFoundryResizeAsgStage.module.ts +52 -0
- package/src/pipeline/stages/rollbackCluster/CloudFoundryRollbackClusterStageConfig.tsx +90 -0
- package/src/pipeline/stages/rollbackCluster/cloudFoundryRollbackClusterStage.module.ts +19 -0
- package/src/pipeline/stages/runJob/CloudFoundryRunJobStageConfig.tsx +100 -0
- package/src/pipeline/stages/runJob/RunJobExecutionDetails.tsx +62 -0
- package/src/pipeline/stages/runJob/cloudFoundryRunJob.module.ts +24 -0
- package/src/pipeline/stages/shareService/CloudFoundryShareServiceExecutionDetails.tsx +52 -0
- package/src/pipeline/stages/shareService/CloudFoundryShareServiceStageConfig.tsx +141 -0
- package/src/pipeline/stages/shareService/cloudFoundryShareServiceStage.module.ts +21 -0
- package/src/pipeline/stages/unmapLoadBalancers/cloudFoundryUnmapLoadBalancersStage.module.ts +21 -0
- package/src/pipeline/stages/unshareService/CloudFoundryUnshareServiceExecutionDetails.tsx +46 -0
- package/src/pipeline/stages/unshareService/CloudFoundryUnshareServiceStageConfig.tsx +114 -0
- package/src/pipeline/stages/unshareService/cloudFoundryUnshareServiceStage.module.ts +21 -0
- package/src/presentation/forms/index.ts +2 -0
- package/src/presentation/forms/inputs/FormikConfigField.tsx +28 -0
- package/src/presentation/forms/inputs/index.ts +1 -0
- package/src/presentation/forms/serverGroup/Buildpacks.tsx +69 -0
- package/src/presentation/forms/serverGroup/EnvironmentVariables.tsx +94 -0
- package/src/presentation/forms/serverGroup/HealthCheck.tsx +57 -0
- package/src/presentation/forms/serverGroup/InstanceParameters.tsx +63 -0
- package/src/presentation/forms/serverGroup/Routes.tsx +74 -0
- package/src/presentation/forms/serverGroup/Services.tsx +62 -0
- package/src/presentation/forms/serverGroup/index.ts +6 -0
- package/src/presentation/index.ts +3 -0
- package/src/presentation/pipeline/index.ts +1 -0
- package/src/presentation/pipeline/stages/CloudFoundryAsgStageConfig.tsx +67 -0
- package/src/presentation/pipeline/stages/CloudFoundryLoadBalancersExecutionDetails.tsx +53 -0
- package/src/presentation/pipeline/stages/CloudFoundryLoadBalancersStageConfig.tsx +116 -0
- package/src/presentation/pipeline/stages/CloudFoundryServiceExecutionDetails.tsx +46 -0
- package/src/presentation/pipeline/stages/CloudFoundryServiceKeyExecutionDetails.tsx +52 -0
- package/src/presentation/pipeline/stages/index.ts +5 -0
- package/src/presentation/widgets/accountRegionClusterSelector/AccountRegionClusterSelector.spec.tsx +385 -0
- package/src/presentation/widgets/accountRegionClusterSelector/AccountRegionClusterSelector.tsx +231 -0
- package/src/presentation/widgets/accountRegionClusterSelector/FormikAccountRegionClusterSelector.tsx +164 -0
- package/src/presentation/widgets/accountRegionClusterSelector/index.ts +2 -0
- package/src/presentation/widgets/index.ts +1 -0
- package/src/presentation/widgets/recentLogs/CloudFoundryRecentLogs.tsx +112 -0
- package/src/routeDomains/index.ts +1 -0
- package/src/routeDomains/routeDomainSelectField.tsx +48 -0
- package/src/serverGroup/configure/index.ts +4 -0
- package/src/serverGroup/configure/serverGroupCommandBuilder.service.cf.ts +168 -0
- package/src/serverGroup/configure/serverGroupCommandBuilderShim.service.cf.ts +64 -0
- package/src/serverGroup/configure/serverGroupConfigurationModel.cf.ts +77 -0
- package/src/serverGroup/configure/wizard/CreateServerGroupModal.tsx +194 -0
- package/src/serverGroup/configure/wizard/ServerGroupTemplateSelection.tsx +55 -0
- package/src/serverGroup/configure/wizard/sections/artifactSettings/ArtifactSettings.cf.tsx +78 -0
- package/src/serverGroup/configure/wizard/sections/artifactSettings/ConstantArtifactSettings.cf.tsx +49 -0
- package/src/serverGroup/configure/wizard/sections/basicSettings/BasicSettings.cf.tsx +163 -0
- package/src/serverGroup/configure/wizard/sections/cloneSettings/CloneSettings.cf.tsx +101 -0
- package/src/serverGroup/configure/wizard/sections/configurationSettings/ConfigurationSettings.cf.tsx +230 -0
- package/src/serverGroup/configure/wizard/serverGroup.less +3 -0
- package/src/serverGroup/details/cfServerGroupDetailsGetter.ts +60 -0
- package/src/serverGroup/details/cloudFoundryServerGroupActions.tsx +365 -0
- package/src/serverGroup/details/mapLoadBalancers/CloudFoundryMapLoadBalancersModal.tsx +137 -0
- package/src/serverGroup/details/mapLoadBalancers/CloudFoundryUnmapLoadBalancersModal.tsx +137 -0
- package/src/serverGroup/details/resize/CloudFoundryResizeServerGroupModal.tsx +232 -0
- package/src/serverGroup/details/rollback/CloudFoundryRollbackServerGroupModal.tsx +179 -0
- package/src/serverGroup/details/sections/ApplicationManagerSection.tsx +28 -0
- package/src/serverGroup/details/sections/BoundServicesSection.tsx +39 -0
- package/src/serverGroup/details/sections/BuildSection.tsx +61 -0
- package/src/serverGroup/details/sections/EnvironmentVariablesSection.tsx +34 -0
- package/src/serverGroup/details/sections/HealthCheckSection.tsx +28 -0
- package/src/serverGroup/details/sections/ICloudFoundryServerGroupDetailsSectionProps.ts +6 -0
- package/src/serverGroup/details/sections/MetricsSection.tsx +28 -0
- package/src/serverGroup/details/sections/PackageSection.tsx +27 -0
- package/src/serverGroup/details/sections/ServerGroupInformationSection.tsx +58 -0
- package/src/serverGroup/details/sections/ServerGroupSizingSection.tsx +27 -0
- package/src/serverGroup/details/sections/index.ts +9 -0
- package/src/serverGroup/index.ts +5 -0
- package/src/serverGroup/serverGroup.transformer.ts +42 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
4
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
5
|
+
|
|
6
|
+
export class ApplicationManagerSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
7
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
8
|
+
super(props);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public render(): JSX.Element {
|
|
12
|
+
const { serverGroup } = this.props;
|
|
13
|
+
const { appsManagerUri } = serverGroup;
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
{appsManagerUri && (
|
|
17
|
+
<CollapsibleSection heading="Apps Manager" defaultExpanded={true}>
|
|
18
|
+
<div>
|
|
19
|
+
<a href={appsManagerUri} target="_blank">
|
|
20
|
+
Apps Manager
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
</CollapsibleSection>
|
|
24
|
+
)}
|
|
25
|
+
</>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { isEmpty } from 'lodash';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
5
|
+
|
|
6
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
7
|
+
import type { ICloudFoundryServiceInstance } from '../../../domain';
|
|
8
|
+
|
|
9
|
+
export class BoundServicesSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
10
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
11
|
+
super(props);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public render(): JSX.Element {
|
|
15
|
+
const { serverGroup } = this.props;
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
{!isEmpty(serverGroup.serviceInstances) && (
|
|
19
|
+
<CollapsibleSection heading="Bound Services" defaultExpanded={true}>
|
|
20
|
+
<dl className="dl-horizontal dl-narrow">
|
|
21
|
+
{serverGroup.serviceInstances.map(function (service: ICloudFoundryServiceInstance, index: number) {
|
|
22
|
+
return (
|
|
23
|
+
<div key={index}>
|
|
24
|
+
<dt>Name</dt>
|
|
25
|
+
<dd>{service.name}</dd>
|
|
26
|
+
<dt>Plan</dt>
|
|
27
|
+
<dd>{service.plan}</dd>
|
|
28
|
+
<dt>Tags</dt>
|
|
29
|
+
{service.tags && <dd>{service.tags.join(', ')}</dd>}
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
})}
|
|
33
|
+
</dl>
|
|
34
|
+
</CollapsibleSection>
|
|
35
|
+
)}
|
|
36
|
+
</>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
4
|
+
|
|
5
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
6
|
+
|
|
7
|
+
export class BuildSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
8
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
9
|
+
super(props);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public render(): JSX.Element {
|
|
13
|
+
const { serverGroup } = this.props;
|
|
14
|
+
return (
|
|
15
|
+
<CollapsibleSection heading="Build" defaultExpanded={true}>
|
|
16
|
+
<dl className="dl-horizontal dl-narrow">
|
|
17
|
+
{serverGroup.ciBuild && serverGroup.ciBuild.jobName && (
|
|
18
|
+
<div>
|
|
19
|
+
<dt>Job Name</dt>
|
|
20
|
+
<dd>{serverGroup.ciBuild.jobName}</dd>
|
|
21
|
+
</div>
|
|
22
|
+
)}
|
|
23
|
+
{serverGroup.ciBuild && serverGroup.ciBuild.jobNumber && (
|
|
24
|
+
<div>
|
|
25
|
+
<dt>Job Number</dt>
|
|
26
|
+
{serverGroup.ciBuild.jobUrl ? (
|
|
27
|
+
<dd>
|
|
28
|
+
<a target="_blank" href={serverGroup.ciBuild.jobUrl}>
|
|
29
|
+
{serverGroup.ciBuild.jobNumber}
|
|
30
|
+
</a>
|
|
31
|
+
</dd>
|
|
32
|
+
) : (
|
|
33
|
+
<dd>{serverGroup.ciBuild.jobNumber}</dd>
|
|
34
|
+
)}
|
|
35
|
+
</div>
|
|
36
|
+
)}
|
|
37
|
+
{serverGroup.appArtifact && serverGroup.appArtifact.name && (
|
|
38
|
+
<div>
|
|
39
|
+
<dt>Artifact Name</dt>
|
|
40
|
+
<dd>{serverGroup.appArtifact.name}</dd>
|
|
41
|
+
</div>
|
|
42
|
+
)}
|
|
43
|
+
{serverGroup.appArtifact && serverGroup.appArtifact.version && (
|
|
44
|
+
<div>
|
|
45
|
+
<dt>Version</dt>
|
|
46
|
+
{serverGroup.appArtifact.url ? (
|
|
47
|
+
<dd>
|
|
48
|
+
<a target="_blank" href={serverGroup.appArtifact.url}>
|
|
49
|
+
{serverGroup.appArtifact.version}
|
|
50
|
+
</a>
|
|
51
|
+
</dd>
|
|
52
|
+
) : (
|
|
53
|
+
<dd>{serverGroup.appArtifact.version}</dd>
|
|
54
|
+
)}
|
|
55
|
+
</div>
|
|
56
|
+
)}
|
|
57
|
+
</dl>
|
|
58
|
+
</CollapsibleSection>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isEmpty } from 'lodash';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
5
|
+
|
|
6
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
7
|
+
|
|
8
|
+
export class EnvironmentVariablesSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
9
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
10
|
+
super(props);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public render(): JSX.Element {
|
|
14
|
+
const { serverGroup } = this.props;
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
{!isEmpty(serverGroup.env) && (
|
|
18
|
+
<CollapsibleSection heading="Environment Variables" defaultExpanded={true}>
|
|
19
|
+
<dl className="dl-horizontal dl-narrow">
|
|
20
|
+
{Object.entries(serverGroup.env).map(([k, v], index) => {
|
|
21
|
+
return (
|
|
22
|
+
<div key={index}>
|
|
23
|
+
<dt>{k}</dt>
|
|
24
|
+
<dd>{v}</dd>
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
})}
|
|
28
|
+
</dl>
|
|
29
|
+
</CollapsibleSection>
|
|
30
|
+
)}
|
|
31
|
+
</>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
4
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
5
|
+
|
|
6
|
+
export class HealthCheckSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
7
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
8
|
+
super(props);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public render(): JSX.Element {
|
|
12
|
+
const { serverGroup } = this.props;
|
|
13
|
+
return (
|
|
14
|
+
<CollapsibleSection heading="Health Check" defaultExpanded={true}>
|
|
15
|
+
<dl className="dl-horizontal dl-narrow">
|
|
16
|
+
<dt>Type</dt>
|
|
17
|
+
<dd>{serverGroup.healthCheckType === undefined ? 'port' : serverGroup.healthCheckType}</dd>
|
|
18
|
+
{serverGroup.healthCheckType === 'http' && (
|
|
19
|
+
<div>
|
|
20
|
+
<dt>Endpoint</dt>
|
|
21
|
+
<dd>{serverGroup.healthCheckHttpEndpoint}</dd>
|
|
22
|
+
</div>
|
|
23
|
+
)}
|
|
24
|
+
</dl>
|
|
25
|
+
</CollapsibleSection>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IServerGroupDetailsSectionProps } from '@spinnaker/core';
|
|
2
|
+
import type { ICloudFoundryServerGroup } from '../../../domain';
|
|
3
|
+
|
|
4
|
+
export interface ICloudFoundryServerGroupDetailsSectionProps extends IServerGroupDetailsSectionProps {
|
|
5
|
+
serverGroup: ICloudFoundryServerGroup;
|
|
6
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
4
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
5
|
+
|
|
6
|
+
export class MetricsSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
7
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
8
|
+
super(props);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public render(): JSX.Element {
|
|
12
|
+
const { serverGroup } = this.props;
|
|
13
|
+
const { metricsUri } = serverGroup;
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
{metricsUri && (
|
|
17
|
+
<CollapsibleSection heading="Metrics" defaultExpanded={true}>
|
|
18
|
+
<div>
|
|
19
|
+
<a href={metricsUri} target="_blank">
|
|
20
|
+
Metrics
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
</CollapsibleSection>
|
|
24
|
+
)}
|
|
25
|
+
</>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
4
|
+
|
|
5
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
6
|
+
|
|
7
|
+
export class PackageSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
8
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
9
|
+
super(props);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public render(): JSX.Element {
|
|
13
|
+
const { serverGroup } = this.props;
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
{serverGroup.droplet && serverGroup.droplet.sourcePackage && (
|
|
17
|
+
<CollapsibleSection heading="Package" defaultExpanded={true}>
|
|
18
|
+
<dl className="dl-horizontal dl-narrow">
|
|
19
|
+
<dt>Checksum</dt>
|
|
20
|
+
<dd>{serverGroup.droplet.sourcePackage.checksum}</dd>
|
|
21
|
+
</dl>
|
|
22
|
+
</CollapsibleSection>
|
|
23
|
+
)}
|
|
24
|
+
</>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { AccountTag, CollapsibleSection, timestamp } from '@spinnaker/core';
|
|
4
|
+
|
|
5
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
6
|
+
import type { ICloudFoundryBuildpack } from '../../../domain';
|
|
7
|
+
|
|
8
|
+
export class ServerGroupInformationSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
9
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
10
|
+
super(props);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public render(): JSX.Element {
|
|
14
|
+
const { serverGroup } = this.props;
|
|
15
|
+
return (
|
|
16
|
+
<CollapsibleSection heading="Server Group Information" defaultExpanded={true}>
|
|
17
|
+
<dl className="dl-horizontal dl-narrow">
|
|
18
|
+
<dt>Created</dt>
|
|
19
|
+
{serverGroup.pipelineId ? (
|
|
20
|
+
<dd>
|
|
21
|
+
<a target="_blank" href={'/#/applications/' + serverGroup.app + '/executions/' + serverGroup.pipelineId}>
|
|
22
|
+
{timestamp(serverGroup.createdTime)}
|
|
23
|
+
</a>
|
|
24
|
+
</dd>
|
|
25
|
+
) : (
|
|
26
|
+
<dd>{timestamp(serverGroup.createdTime)}</dd>
|
|
27
|
+
)}
|
|
28
|
+
<dt>Account</dt>
|
|
29
|
+
<dd>
|
|
30
|
+
<AccountTag account={serverGroup.account} />
|
|
31
|
+
</dd>
|
|
32
|
+
<dt>Organization</dt>
|
|
33
|
+
<dd>{serverGroup.space.organization.name}</dd>
|
|
34
|
+
<dt>Space</dt>
|
|
35
|
+
<dd>{serverGroup.space.name}</dd>
|
|
36
|
+
{serverGroup.droplet && (
|
|
37
|
+
<div>
|
|
38
|
+
<dt>Rootfs</dt>
|
|
39
|
+
<dd>{serverGroup.droplet.stack}</dd>
|
|
40
|
+
<dt>Buildpack</dt>
|
|
41
|
+
{serverGroup.droplet.buildpacks ? (
|
|
42
|
+
serverGroup.droplet.buildpacks.map(function (buildpack: ICloudFoundryBuildpack, index: number) {
|
|
43
|
+
return (
|
|
44
|
+
<dd key={index}>
|
|
45
|
+
{buildpack.name} {buildpack.version}
|
|
46
|
+
</dd>
|
|
47
|
+
);
|
|
48
|
+
})
|
|
49
|
+
) : (
|
|
50
|
+
<dd>n/a</dd>
|
|
51
|
+
)}
|
|
52
|
+
</div>
|
|
53
|
+
)}
|
|
54
|
+
</dl>
|
|
55
|
+
</CollapsibleSection>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleSection } from '@spinnaker/core';
|
|
4
|
+
|
|
5
|
+
import type { ICloudFoundryServerGroupDetailsSectionProps } from './ICloudFoundryServerGroupDetailsSectionProps';
|
|
6
|
+
|
|
7
|
+
export class ServerGroupSizingSection extends React.Component<ICloudFoundryServerGroupDetailsSectionProps> {
|
|
8
|
+
constructor(props: ICloudFoundryServerGroupDetailsSectionProps) {
|
|
9
|
+
super(props);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public render(): JSX.Element {
|
|
13
|
+
const { serverGroup } = this.props;
|
|
14
|
+
return (
|
|
15
|
+
<CollapsibleSection heading="Server Group Sizing" defaultExpanded={true}>
|
|
16
|
+
<dl className="dl-horizontal dl-narrow">
|
|
17
|
+
<dt>Instances</dt>
|
|
18
|
+
<dd>{serverGroup.instances.length}</dd>
|
|
19
|
+
<dt>Disk (MB)</dt>
|
|
20
|
+
<dd>{serverGroup.diskQuota}</dd>
|
|
21
|
+
<dt>Memory (MB)</dt>
|
|
22
|
+
<dd>{serverGroup.memory}</dd>
|
|
23
|
+
</dl>
|
|
24
|
+
</CollapsibleSection>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './ServerGroupInformationSection';
|
|
2
|
+
export * from './ApplicationManagerSection';
|
|
3
|
+
export * from './MetricsSection';
|
|
4
|
+
export * from './ServerGroupSizingSection';
|
|
5
|
+
export * from './HealthCheckSection';
|
|
6
|
+
export * from './PackageSection';
|
|
7
|
+
export * from './BuildSection';
|
|
8
|
+
export * from './BoundServicesSection';
|
|
9
|
+
export * from './EnvironmentVariablesSection';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defaults } from 'lodash';
|
|
2
|
+
|
|
3
|
+
import type { ICloudFoundryEnvVar, ICloudFoundryServerGroup } from '../domain';
|
|
4
|
+
|
|
5
|
+
export class CloudFoundryServerGroupTransformer {
|
|
6
|
+
public static $inject = ['$q'];
|
|
7
|
+
public constructor(private $q: ng.IQService) {}
|
|
8
|
+
|
|
9
|
+
public normalizeServerGroupDetails(serverGroup: ICloudFoundryServerGroup): ICloudFoundryServerGroup {
|
|
10
|
+
return serverGroup;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public normalizeServerGroup(serverGroup: ICloudFoundryServerGroup): PromiseLike<ICloudFoundryServerGroup> {
|
|
14
|
+
return this.$q.resolve(serverGroup);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public convertServerGroupCommandToDeployConfiguration(base: any): any {
|
|
18
|
+
const command = defaults({ viewState: [] }, base);
|
|
19
|
+
command.cloudProvider = 'cloudfoundry';
|
|
20
|
+
command.provider = 'cloudfoundry';
|
|
21
|
+
command.account = command.credentials;
|
|
22
|
+
|
|
23
|
+
delete command.viewState;
|
|
24
|
+
delete command.selectedProvider;
|
|
25
|
+
|
|
26
|
+
if (command.manifest.type === 'direct') {
|
|
27
|
+
command.manifest.env = this.convertManifestEnv(command.manifest.environment);
|
|
28
|
+
} else {
|
|
29
|
+
command.manifest.env = command.manifest.environment;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return command;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
private convertManifestEnv(envVars: ICloudFoundryEnvVar[]): {} {
|
|
36
|
+
const newEnv = Object.create(null);
|
|
37
|
+
for (const envVar of envVars) {
|
|
38
|
+
newEnv[envVar.key] = envVar.value;
|
|
39
|
+
}
|
|
40
|
+
return newEnv;
|
|
41
|
+
}
|
|
42
|
+
}
|