@spinnaker/kubernetes 0.5.2 → 0.6.1

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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { IExecutionDetailsSectionProps, IManifest } from '@spinnaker/core';
3
+ import './DeployStatus.less';
3
4
  export interface IManifestSubscription {
4
5
  id: string;
5
6
  unsubscribe: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/kubernetes",
3
3
  "license": "Apache-2.0",
4
- "version": "0.5.2",
4
+ "version": "0.6.1",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "publishConfig": {
@@ -16,7 +16,7 @@
16
16
  "lib": "npm run build"
17
17
  },
18
18
  "dependencies": {
19
- "@spinnaker/core": "^0.27.0",
19
+ "@spinnaker/core": "^0.29.0",
20
20
  "@uirouter/angularjs": "1.0.26",
21
21
  "@uirouter/react": "1.0.7",
22
22
  "angular": "1.6.10",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@spinnaker/eslint-plugin": "^3.0.2",
42
- "@spinnaker/scripts": "^0.3.1",
42
+ "@spinnaker/scripts": "^0.4.0",
43
43
  "@types/angular": "1.6.26",
44
44
  "@types/angular-ui-bootstrap": "0.13.41",
45
45
  "@types/dompurify": "^2.3.3",
@@ -53,5 +53,5 @@
53
53
  "shx": "0.3.3",
54
54
  "typescript": "4.3.5"
55
55
  },
56
- "gitHead": "217b75396c5ec25d9b2019a849593b0b8d52e916"
56
+ "gitHead": "082a084908e13888d640e88a5bd6e1571479de14"
57
57
  }
@@ -0,0 +1,11 @@
1
+ .deploy-status .collapsible-element {
2
+ margin-bottom: 20px;
3
+
4
+ .alert {
5
+ margin-bottom: 0;
6
+ }
7
+
8
+ .content {
9
+ padding: 0;
10
+ }
11
+ }
@@ -2,12 +2,14 @@ import { get } from 'lodash';
2
2
  import React from 'react';
3
3
 
4
4
  import type { IExecutionDetailsSectionProps, IManifest } from '@spinnaker/core';
5
- import { ExecutionDetailsSection, StageFailureMessage } from '@spinnaker/core';
5
+ import { CollapsibleElement, ExecutionDetailsSection, SETTINGS, StageFailureMessage } from '@spinnaker/core';
6
6
 
7
7
  import { ManifestStatus } from './ManifestStatus';
8
8
  import type { IStageManifest } from '../../../../manifest/manifest.service';
9
9
  import { KubernetesManifestService } from '../../../../manifest/manifest.service';
10
10
 
11
+ import './DeployStatus.less';
12
+
11
13
  export interface IManifestSubscription {
12
14
  id: string;
13
15
  unsubscribe: () => void;
@@ -87,22 +89,32 @@ export class DeployStatus extends React.Component<IExecutionDetailsSectionProps,
87
89
  const { name: sectionName, current: currentSection, stage } = this.props;
88
90
  const manifests: IManifest[] = this.state.subscriptions.filter((sub) => !!sub.manifest).map((sub) => sub.manifest);
89
91
  return (
90
- <ExecutionDetailsSection name={sectionName} current={currentSection}>
91
- <StageFailureMessage stage={stage} message={stage.failureMessage} />
92
- {manifests && (
93
- <div className="row">
94
- <div className="col-md-12">
95
- <div className="well alert alert-info">
96
- {manifests.map((manifest) => {
97
- const uid =
98
- manifest.manifest.metadata.uid || KubernetesManifestService.manifestIdentifier(manifest.manifest);
99
- return <ManifestStatus key={uid} manifest={manifest} account={stage.context.account} />;
100
- })}
92
+ <div className="deploy-status">
93
+ <ExecutionDetailsSection name={sectionName} current={currentSection}>
94
+ {SETTINGS.feature.multiBlockFailureMessages ? (
95
+ stage.failureMessages.map((failureMessage) => (
96
+ <CollapsibleElement key={failureMessage} maxHeight={150}>
97
+ <StageFailureMessage stage={stage} message={failureMessage} />
98
+ </CollapsibleElement>
99
+ ))
100
+ ) : (
101
+ <StageFailureMessage stage={stage} message={stage.failureMessage} />
102
+ )}
103
+ {!!manifests?.length && (
104
+ <div className="row">
105
+ <div className="col-md-12">
106
+ <div className="well alert alert-info">
107
+ {manifests.map((manifest) => {
108
+ const uid =
109
+ manifest.manifest.metadata.uid || KubernetesManifestService.manifestIdentifier(manifest.manifest);
110
+ return <ManifestStatus key={uid} manifest={manifest} account={stage.context.account} />;
111
+ })}
112
+ </div>
101
113
  </div>
102
114
  </div>
103
- </div>
104
- )}
105
- </ExecutionDetailsSection>
115
+ )}
116
+ </ExecutionDetailsSection>
117
+ </div>
106
118
  );
107
119
  }
108
120
  }