@spinnaker/appengine 2026.3.1 → 2026.4.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/dist/common/FormikAccountRegionSelector.d.ts +1 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/instance/details/AppengineInstanceDetails.d.ts +2 -2
- package/dist/loadBalancer/configure/AppengineCreateLoadBalancerModal.d.ts +1 -1
- package/dist/loadBalancer/details/AppengineLoadBalancerActions.d.ts +2 -2
- package/dist/loadBalancer/details/AppengineLoadBalancerDetailsSection.d.ts +2 -2
- package/dist/pipeline/stages/AppengineExecutionDetails.d.ts +4 -4
- package/dist/pipeline/stages/AppengineServerGroupStageConfig.d.ts +4 -4
- package/dist/pipeline/stages/deployAppengineConfig/DeployAppengineConfigForm.d.ts +1 -1
- package/dist/pipeline/stages/deployAppengineConfig/DeployAppengineConfigurationConfig.d.ts +2 -2
- package/dist/pipeline/stages/editLoadBalancer/AppengineEditLoadBalancerStageConfig.d.ts +2 -2
- package/dist/serverGroup/configure/wizard/AppengineCloneServerGroupModal.d.ts +1 -1
- package/dist/serverGroup/configure/wizard/ConfigFileArtifactList.d.ts +2 -2
- package/dist/serverGroup/details/AppengineServerGroupActions.d.ts +2 -2
- package/dist/serverGroup/details/AppengineServerGroupDetailsSection.d.ts +2 -2
- package/package.json +5 -7
- package/src/appengine.module.spec.ts +4 -4
- package/src/common/FormikAccountRegionSelector.tsx +1 -1
- package/src/pipeline/stages/deployAppengineConfig/DeployAppengineConfigForm.tsx +1 -1
- package/src/serverGroup/configure/wizard/configFileArtifactList.spec.tsx +8 -9
- /package/dist/{appengine.logoc2c312af6aa99037.png → appengine.logoDdEgr2Bq.png} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface IAppengineInstanceDetailsProps {
|
|
3
3
|
instance: {
|
|
4
4
|
account: string;
|
|
@@ -7,5 +7,5 @@ interface IAppengineInstanceDetailsProps {
|
|
|
7
7
|
region: string;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
export declare function AppengineInstanceDetails({ instance }: IAppengineInstanceDetailsProps): JSX.Element;
|
|
10
|
+
export declare function AppengineInstanceDetails({ instance }: IAppengineInstanceDetailsProps): React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { ILoadBalancerActionsProps } from '@spinnaker/core';
|
|
3
3
|
export declare function canDeleteAppengineLoadBalancer(loadBalancer: any): boolean;
|
|
4
4
|
export declare function getDeleteLoadBalancerWarning(loadBalancer: any): string;
|
|
5
|
-
export declare function AppengineLoadBalancerActions({ app, loadBalancer }: ILoadBalancerActionsProps): JSX.Element;
|
|
5
|
+
export declare function AppengineLoadBalancerActions({ app, loadBalancer }: ILoadBalancerActionsProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { ILoadBalancerDetailsSectionProps } from '@spinnaker/core';
|
|
3
|
-
export declare function AppengineLoadBalancerDetailsSection({ loadBalancer }: ILoadBalancerDetailsSectionProps): JSX.Element;
|
|
3
|
+
export declare function AppengineLoadBalancerDetailsSection({ loadBalancer }: ILoadBalancerDetailsSectionProps): React.JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { IExecutionDetailsSectionProps } from '@spinnaker/core';
|
|
3
3
|
export declare function getServerGroupDisplayName(context: any): string;
|
|
4
|
-
export declare function AppengineStartServerGroupExecutionDetails(props: IExecutionDetailsSectionProps): JSX.Element;
|
|
4
|
+
export declare function AppengineStartServerGroupExecutionDetails(props: IExecutionDetailsSectionProps): React.JSX.Element;
|
|
5
5
|
export declare namespace AppengineStartServerGroupExecutionDetails {
|
|
6
6
|
var title: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function AppengineStopServerGroupExecutionDetails(props: IExecutionDetailsSectionProps): JSX.Element;
|
|
8
|
+
export declare function AppengineStopServerGroupExecutionDetails(props: IExecutionDetailsSectionProps): React.JSX.Element;
|
|
9
9
|
export declare namespace AppengineStopServerGroupExecutionDetails {
|
|
10
10
|
var title: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function AppengineEditLoadBalancerExecutionDetails(props: IExecutionDetailsSectionProps): JSX.Element;
|
|
12
|
+
export declare function AppengineEditLoadBalancerExecutionDetails(props: IExecutionDetailsSectionProps): React.JSX.Element;
|
|
13
13
|
export declare namespace AppengineEditLoadBalancerExecutionDetails {
|
|
14
14
|
var title: string;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { IStageConfigProps } from '@spinnaker/core';
|
|
3
3
|
import type { IAppengineAccount } from '../../domain';
|
|
4
4
|
export declare function getAppengineAccountRegion(accounts: IAppengineAccount[], credentials: string): string;
|
|
@@ -6,7 +6,7 @@ export declare function initializeAppengineServerGroupStage(stage: any, applicat
|
|
|
6
6
|
type AppengineStageConfigProps = Pick<IStageConfigProps, 'application' | 'pipeline' | 'stage' | 'updateStage'> & {
|
|
7
7
|
showHealthOverride?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare function AppengineServerGroupStageConfig({ application, pipeline, stage, updateStage, showHealthOverride, }: AppengineStageConfigProps): JSX.Element;
|
|
10
|
-
export declare function AppengineServerGroupStageConfigWithHealthOverride(props: AppengineStageConfigProps): JSX.Element;
|
|
11
|
-
export declare function AppengineShrinkClusterStageConfig({ application, pipeline, stage, updateStage, }: AppengineStageConfigProps): JSX.Element;
|
|
9
|
+
export declare function AppengineServerGroupStageConfig({ application, pipeline, stage, updateStage, showHealthOverride, }: AppengineStageConfigProps): React.JSX.Element;
|
|
10
|
+
export declare function AppengineServerGroupStageConfigWithHealthOverride(props: AppengineStageConfigProps): React.JSX.Element;
|
|
11
|
+
export declare function AppengineShrinkClusterStageConfig({ application, pipeline, stage, updateStage, }: AppengineStageConfigProps): React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { FormikErrors } from 'formik';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { IStage, IStageConfigProps } from '@spinnaker/core';
|
|
4
|
-
export declare function DeployAppengineConfigurationConfig({ application, pipeline, stage, updateStage }: IStageConfigProps): JSX.Element;
|
|
4
|
+
export declare function DeployAppengineConfigurationConfig({ application, pipeline, stage, updateStage }: IStageConfigProps): React.JSX.Element;
|
|
5
5
|
export declare function validateDeployAppengineConfigurationStage(stage: IStage): FormikErrors<IStage>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { IStageConfigProps } from '@spinnaker/core';
|
|
3
|
-
export declare function AppengineEditLoadBalancerStageConfig({ application, stage, updateStage }: IStageConfigProps): JSX.Element;
|
|
3
|
+
export declare function AppengineEditLoadBalancerStageConfig({ application, stage, updateStage }: IStageConfigProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { IArtifactAccountPair, IPipeline, IStage } from '@spinnaker/core';
|
|
3
3
|
interface IConfigFileArtifactListProps {
|
|
4
4
|
configArtifacts: IArtifactAccountPair[];
|
|
@@ -6,5 +6,5 @@ interface IConfigFileArtifactListProps {
|
|
|
6
6
|
stage: IStage;
|
|
7
7
|
updateConfigArtifacts: (configArtifacts: any[]) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const ConfigFileArtifactList: (props: IConfigFileArtifactListProps) => JSX.Element;
|
|
9
|
+
export declare const ConfigFileArtifactList: (props: IConfigFileArtifactListProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { IServerGroup, IServerGroupActionsProps } from '@spinnaker/core';
|
|
3
3
|
import type { IAppengineServerGroup } from '../../domain';
|
|
4
4
|
export declare function canStartOrStopServerGroup(serverGroup: IAppengineServerGroup): boolean;
|
|
@@ -9,4 +9,4 @@ export declare function expectedAllocationsAfterDisableOperation(serverGroup: IS
|
|
|
9
9
|
};
|
|
10
10
|
export declare function canDisableServerGroup(serverGroup: IAppengineServerGroup, loadBalancers?: any[]): boolean;
|
|
11
11
|
export declare function canDestroyServerGroup(serverGroup: IAppengineServerGroup, loadBalancers?: any[]): boolean;
|
|
12
|
-
export declare function AppengineServerGroupActions({ app, serverGroup }: IServerGroupActionsProps): JSX.Element;
|
|
12
|
+
export declare function AppengineServerGroupActions({ app, serverGroup }: IServerGroupActionsProps): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { IServerGroupDetailsSectionProps } from '@spinnaker/core';
|
|
3
|
-
export declare function AppengineServerGroupDetailsSection({ serverGroup }: IServerGroupDetailsSectionProps): JSX.Element;
|
|
3
|
+
export declare function AppengineServerGroupDetailsSection({ serverGroup }: IServerGroupDetailsSectionProps): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "https://github.com/spinnaker/spinnaker.git"
|
|
6
6
|
},
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
-
"version": "2026.
|
|
8
|
+
"version": "2026.4.0",
|
|
9
9
|
"module": "dist/index.js",
|
|
10
10
|
"typings": "dist/index.d.ts",
|
|
11
11
|
"publishConfig": {
|
|
@@ -23,24 +23,22 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@spinnaker/core": "^0.29.1",
|
|
25
25
|
"classnames": "2.2.6",
|
|
26
|
-
"enzyme": "3.11.0",
|
|
27
26
|
"formik": "1.5.1",
|
|
28
27
|
"lodash": "4.18.1",
|
|
29
|
-
"react": "
|
|
28
|
+
"react": "17.0.2",
|
|
30
29
|
"react-bootstrap": "0.32.1",
|
|
31
|
-
"rxjs": "
|
|
30
|
+
"rxjs": "7.8.2"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"@spinnaker/eslint-plugin": "^3.0.2",
|
|
35
34
|
"@spinnaker/mocks": "1.0.7",
|
|
36
35
|
"@spinnaker/scripts": "^0.4.0",
|
|
37
36
|
"@types/classnames": "2.2.0",
|
|
38
|
-
"@types/enzyme": "3.10.3",
|
|
39
37
|
"@types/lodash": "4.14.64",
|
|
40
|
-
"@types/react": "
|
|
38
|
+
"@types/react": "17.0.93",
|
|
41
39
|
"@types/react-bootstrap": "0.32.5",
|
|
42
40
|
"shx": "0.3.3",
|
|
43
41
|
"typescript": "5.0.4"
|
|
44
42
|
},
|
|
45
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "8d2819815061bd8ddc714287d229fce3d3d0a16b"
|
|
46
44
|
}
|
|
@@ -116,7 +116,7 @@ describe('App Engine provider registration', () => {
|
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
it('keeps App Engine clone submissions on createServerGroup', () => {
|
|
119
|
-
const executeTask = spyOn(TaskExecutor, 'executeTask').
|
|
119
|
+
const executeTask = vi.spyOn(TaskExecutor, 'executeTask').mockReturnValue(Promise.resolve({}) as any);
|
|
120
120
|
const writer = new AppengineServerGroupWriter();
|
|
121
121
|
|
|
122
122
|
writer.cloneServerGroup(
|
|
@@ -133,17 +133,17 @@ describe('App Engine provider registration', () => {
|
|
|
133
133
|
{ name: 'myapp' } as any,
|
|
134
134
|
);
|
|
135
135
|
|
|
136
|
-
expect(executeTask.
|
|
136
|
+
expect(executeTask.mock.lastCall[0].job[0].type).toBe('createServerGroup');
|
|
137
137
|
});
|
|
138
138
|
|
|
139
139
|
it('keeps disable server group task ownership on the application object', () => {
|
|
140
|
-
const executeTask = spyOn(TaskExecutor, 'executeTask').
|
|
140
|
+
const executeTask = vi.spyOn(TaskExecutor, 'executeTask').mockReturnValue(Promise.resolve({}) as any);
|
|
141
141
|
const writer = new AppengineServerGroupWriter();
|
|
142
142
|
const application = { name: 'myapp' } as any;
|
|
143
143
|
|
|
144
144
|
writer.disableServerGroup({ name: 'myapp-v001', region: 'europe-west1', account: 'test' } as any, application);
|
|
145
145
|
|
|
146
|
-
expect(executeTask.
|
|
146
|
+
expect(executeTask.mock.lastCall[0].application).toBe(application);
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
it('restores App Engine server group action eligibility from traffic allocations', () => {
|
|
@@ -27,7 +27,7 @@ export class FormikAccountRegionSelector extends React.Component<
|
|
|
27
27
|
IFormikAccountRegionSelectorProps,
|
|
28
28
|
IFormikAccountRegionSelectorState
|
|
29
29
|
> {
|
|
30
|
-
private destroy$ = new Subject();
|
|
30
|
+
private destroy$ = new Subject<void>();
|
|
31
31
|
|
|
32
32
|
constructor(props: IFormikAccountRegionSelectorProps) {
|
|
33
33
|
super(props);
|
|
@@ -31,7 +31,7 @@ export class DeployAppengineConfigForm extends React.Component<
|
|
|
31
31
|
ArtifactTypePatterns.ORACLE_OBJECT,
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
-
private destroy$ = new Subject();
|
|
34
|
+
private destroy$ = new Subject<void>();
|
|
35
35
|
public state: IAppEngineDeployConfigSettingsState = {
|
|
36
36
|
accounts: [],
|
|
37
37
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
import type { IArtifactAccount, IArtifactAccountPair } from '@spinnaker/core';
|
|
5
|
-
import { StageArtifactSelector } from '@spinnaker/core';
|
|
6
5
|
import { mockDeployStage, mockPipeline } from '@spinnaker/mocks';
|
|
7
6
|
|
|
8
7
|
import { ConfigFileArtifactList } from './ConfigFileArtifactList';
|
|
9
8
|
// eslint-disable-next-line @spinnaker/import-from-npm-not-relative
|
|
10
|
-
import { mockHttpClient } from '../../../../../core/src/api/mock/
|
|
9
|
+
import { mockHttpClient } from '../../../../../core/src/api/mock/mockHttpSupport';
|
|
11
10
|
|
|
12
11
|
describe('<ConfigFileArtifactList/>', () => {
|
|
13
12
|
it('renders empty children when null/empty artifacts are passed in', () => {
|
|
14
13
|
const configArtifacts: IArtifactAccountPair[] = [];
|
|
15
|
-
|
|
14
|
+
render(
|
|
16
15
|
<ConfigFileArtifactList
|
|
17
16
|
configArtifacts={configArtifacts}
|
|
18
17
|
pipeline={mockPipeline}
|
|
@@ -20,7 +19,7 @@ describe('<ConfigFileArtifactList/>', () => {
|
|
|
20
19
|
updateConfigArtifacts={() => {}}
|
|
21
20
|
/>,
|
|
22
21
|
);
|
|
23
|
-
expect(
|
|
22
|
+
expect(screen.queryAllByRole('button', { name: /Delete/ })).toHaveLength(0);
|
|
24
23
|
});
|
|
25
24
|
|
|
26
25
|
it('renders 2 children of StageArtifactSelector when 2 artifacts are passed in', async () => {
|
|
@@ -34,7 +33,7 @@ describe('<ConfigFileArtifactList/>', () => {
|
|
|
34
33
|
{ account: 'http-acc', id: '1234abcd', artifact: { id: '1234abcd' } },
|
|
35
34
|
];
|
|
36
35
|
|
|
37
|
-
|
|
36
|
+
render(
|
|
38
37
|
<ConfigFileArtifactList
|
|
39
38
|
configArtifacts={configArtifacts}
|
|
40
39
|
pipeline={mockPipeline}
|
|
@@ -42,7 +41,7 @@ describe('<ConfigFileArtifactList/>', () => {
|
|
|
42
41
|
updateConfigArtifacts={() => {}}
|
|
43
42
|
/>,
|
|
44
43
|
);
|
|
45
|
-
expect(
|
|
44
|
+
expect(screen.getAllByRole('button', { name: /Delete/ })).toHaveLength(2);
|
|
46
45
|
await http.flush();
|
|
47
46
|
});
|
|
48
47
|
|
|
@@ -64,7 +63,7 @@ describe('<ConfigFileArtifactList/>', () => {
|
|
|
64
63
|
},
|
|
65
64
|
];
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
render(
|
|
68
67
|
<ConfigFileArtifactList
|
|
69
68
|
configArtifacts={configArtifacts}
|
|
70
69
|
pipeline={mockPipeline}
|
|
@@ -72,7 +71,7 @@ describe('<ConfigFileArtifactList/>', () => {
|
|
|
72
71
|
updateConfigArtifacts={() => {}}
|
|
73
72
|
/>,
|
|
74
73
|
);
|
|
75
|
-
expect(
|
|
74
|
+
expect(screen.getAllByRole('button', { name: /Delete/ })).toHaveLength(1);
|
|
76
75
|
await http.flush();
|
|
77
76
|
});
|
|
78
77
|
});
|
|
File without changes
|