@spinnaker/core 0.23.1 → 0.24.0
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 +22 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/managed/constraints/registry.d.ts +1 -1
- package/dist/managed/resources/resourceRegistry.d.ts +1 -1
- package/package.json +2 -2
- package/src/deploymentStrategy/strategies/rollingredblack/rollingredblack.strategy.ts +1 -1
- package/src/pipeline/details/StageFailureMessage.tsx +2 -0
- package/src/region/regionSelectField.directive.js +6 -4
|
@@ -46,7 +46,7 @@ export interface IConstraintHandler<K = string> {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
declare class ConstraintsManager extends BasePluginManager<IConstraintHandler> {
|
|
49
|
-
getIcon(constraint: IConstraint | IBaseConstraint): "placeholder" | "menu" | "add" | "environment" | "artifact" | "config" | "close" | "play" | "plus" | "accordionCollapse" | "accordionExpand" | "accordionExpandAll" | "artifactApproved" | "artifactBad" | "artifactPending" | "artifactSkipped" | "
|
|
49
|
+
getIcon(constraint: IConstraint | IBaseConstraint): "placeholder" | "menu" | "add" | "done" | "environment" | "artifact" | "config" | "close" | "play" | "bake" | "plus" | "accordionCollapse" | "accordionExpand" | "accordionExpandAll" | "artifactApproved" | "artifactBad" | "artifactPending" | "artifactSkipped" | "build" | "buildFail" | "buildSuccess" | "canaryConfig" | "canaryFail" | "canaryRunning" | "canaryPass" | "canaryMarginal" | "caretRight" | "checkBadge" | "checkboxIndeterminate" | "checkboxChecked" | "checkboxUnchecked" | "closeSmall" | "cloudDeployed" | "cloudError" | "cloudProgress" | "cloudDecommissioned" | "cloudWaiting" | "cluster" | "configJ" | "configM" | "configS" | "copyClipboard" | "duplicate" | "edit" | "fileJson" | "fn" | "fnNew" | "formDrag" | "formError" | "formInfo" | "formNetworkBad" | "formNetworkGood" | "formRefresh" | "formWarning" | "heart" | "history" | "instances" | "loadBalancer" | "manualJudgement" | "manualJudgementApproved" | "manualJudgementRejected" | "mdActuating" | "mdActuationLaunched" | "mdCreated" | "mdDelay" | "mdDeltaDetected" | "mdDeltaResolved" | "mdDiff" | "mdError" | "mdUnhappy" | "mdPaused" | "mdResumed" | "mdUnknown" | "mdConstraintGeneric" | "mdConstraintDependsOn" | "mdConstraintAllowedTimes" | "md" | "mdVerification" | "menuClose" | "minus" | "pin" | "resourceT" | "securityGroup" | "servergroupAws" | "spCIBranch" | "spCIBuild" | "spCICommit" | "spCIMaster" | "spCIMerged" | "spCIPullRequest" | "spCIPullRequestClosed" | "spEnvironments" | "spMenuAppInSync" | "spMenuAppUnsynced" | "spMenuCanaryConfig" | "spMenuCanaryReport" | "spMenuClusters" | "spMenuConfig" | "spMenuFunctions" | "spMenuK8s" | "spMenuLoadBalancers" | "spMenuMeme" | "spMenuPager" | "spMenuPipelines" | "spMenuProperties" | "spMenuSecurityGroups" | "spMenuTasks" | "spMenuTimeline" | "spMenuZuul" | "spel" | "templateFull" | "templateS" | "templateWorkflow" | "toggleOff" | "toggleOn" | "trash" | "unpin";
|
|
50
50
|
renderTitle(constraint: IConstraint): React.ReactNode;
|
|
51
51
|
hasContent(constraint: IConstraint): boolean;
|
|
52
52
|
renderDescription(constraint: IConstraint): React.ReactNode;
|
|
@@ -13,7 +13,7 @@ export interface IResourceLinkProps {
|
|
|
13
13
|
displayName?: string;
|
|
14
14
|
}
|
|
15
15
|
declare class ResourcesManager extends BasePluginManager<IResourceKindConfig> {
|
|
16
|
-
getIcon(kind: string): "placeholder" | "menu" | "add" | "environment" | "artifact" | "config" | "close" | "play" | "plus" | "accordionCollapse" | "accordionExpand" | "accordionExpandAll" | "artifactApproved" | "artifactBad" | "artifactPending" | "artifactSkipped" | "
|
|
16
|
+
getIcon(kind: string): "placeholder" | "menu" | "add" | "done" | "environment" | "artifact" | "config" | "close" | "play" | "bake" | "plus" | "accordionCollapse" | "accordionExpand" | "accordionExpandAll" | "artifactApproved" | "artifactBad" | "artifactPending" | "artifactSkipped" | "build" | "buildFail" | "buildSuccess" | "canaryConfig" | "canaryFail" | "canaryRunning" | "canaryPass" | "canaryMarginal" | "caretRight" | "checkBadge" | "checkboxIndeterminate" | "checkboxChecked" | "checkboxUnchecked" | "closeSmall" | "cloudDeployed" | "cloudError" | "cloudProgress" | "cloudDecommissioned" | "cloudWaiting" | "cluster" | "configJ" | "configM" | "configS" | "copyClipboard" | "duplicate" | "edit" | "fileJson" | "fn" | "fnNew" | "formDrag" | "formError" | "formInfo" | "formNetworkBad" | "formNetworkGood" | "formRefresh" | "formWarning" | "heart" | "history" | "instances" | "loadBalancer" | "manualJudgement" | "manualJudgementApproved" | "manualJudgementRejected" | "mdActuating" | "mdActuationLaunched" | "mdCreated" | "mdDelay" | "mdDeltaDetected" | "mdDeltaResolved" | "mdDiff" | "mdError" | "mdUnhappy" | "mdPaused" | "mdResumed" | "mdUnknown" | "mdConstraintGeneric" | "mdConstraintDependsOn" | "mdConstraintAllowedTimes" | "md" | "mdVerification" | "menuClose" | "minus" | "pin" | "resourceT" | "securityGroup" | "servergroupAws" | "spCIBranch" | "spCIBuild" | "spCICommit" | "spCIMaster" | "spCIMerged" | "spCIPullRequest" | "spCIPullRequestClosed" | "spEnvironments" | "spMenuAppInSync" | "spMenuAppUnsynced" | "spMenuCanaryConfig" | "spMenuCanaryReport" | "spMenuClusters" | "spMenuConfig" | "spMenuFunctions" | "spMenuK8s" | "spMenuLoadBalancers" | "spMenuMeme" | "spMenuPager" | "spMenuPipelines" | "spMenuProperties" | "spMenuSecurityGroups" | "spMenuTasks" | "spMenuTimeline" | "spMenuZuul" | "spel" | "templateFull" | "templateS" | "templateWorkflow" | "toggleOff" | "toggleOn" | "trash" | "unpin";
|
|
17
17
|
getExperimentalDisplayLink(resource: IResourceLinkProps): string | undefined;
|
|
18
18
|
getSpinnakerType(kind: string): string;
|
|
19
19
|
getNativeResourceRoutingInfo({ kind, account, stack, detail, displayName, }: IResourceLinkProps): {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinnaker/core",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.24.0",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"shx": "0.3.3",
|
|
121
121
|
"typescript": "4.3.5"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "9961d9fa9c323f0e95ec06ede6e5a0d05c09febc"
|
|
124
124
|
}
|
|
@@ -2,7 +2,7 @@ import { AdditionalFields } from './AdditionalFields';
|
|
|
2
2
|
import { DeploymentStrategyRegistry } from '../../deploymentStrategy.registry';
|
|
3
3
|
|
|
4
4
|
DeploymentStrategyRegistry.registerStrategy({
|
|
5
|
-
label: 'Rolling Red/Black
|
|
5
|
+
label: 'Rolling Red/Black',
|
|
6
6
|
description: `Creates a new version of this server group, then incrementally resizes the new server group while disabling the same percentage in the previous server group.`,
|
|
7
7
|
key: 'rollingredblack',
|
|
8
8
|
providerRestricted: true,
|
|
@@ -5,6 +5,7 @@ import React from 'react';
|
|
|
5
5
|
|
|
6
6
|
import type { IExecutionStage, ITaskStep } from '../../domain';
|
|
7
7
|
import { EventBus } from '../../event/EventBus';
|
|
8
|
+
import { Overridable } from '../../overrideRegistry';
|
|
8
9
|
import { Markdown, robotToHuman } from '../../presentation';
|
|
9
10
|
import { ReactInjector } from '../../reactShims';
|
|
10
11
|
import { TrafficGuardHelperLink } from '../../task/TrafficGuardHelperLink';
|
|
@@ -27,6 +28,7 @@ export enum StageFailureMessages {
|
|
|
27
28
|
NO_REASON_PROVIDED = 'No reason provided.',
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
@Overridable('stageFailureMessage')
|
|
30
32
|
@UIRouterContext
|
|
31
33
|
export class StageFailureMessage extends React.Component<IStageFailureMessageProps, IStageFailureMessageState> {
|
|
32
34
|
public static defaultProps: Partial<IStageFailureMessageProps> = {
|
|
@@ -48,10 +48,12 @@ module(CORE_REGION_REGIONSELECTFIELD_DIRECTIVE, [])
|
|
|
48
48
|
readOnly: '=',
|
|
49
49
|
},
|
|
50
50
|
controller: function () {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
vm.
|
|
54
|
-
|
|
51
|
+
this.$onInit = () => {
|
|
52
|
+
const vm = this;
|
|
53
|
+
vm.propagate = function (data) {
|
|
54
|
+
vm.component[vm.field] = data;
|
|
55
|
+
vm.onChange();
|
|
56
|
+
};
|
|
55
57
|
};
|
|
56
58
|
},
|
|
57
59
|
});
|