Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Commit 7486d2e

Browse files
authored

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

packages/kubernetes/src/pipelines/stages/deleteManifest/deleteManifestStage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Registry.pipeline.registerStage({
1515
cloudProvider: 'kubernetes',
1616
component: DeleteManifestStageConfig,
1717
executionDetailsSections: [manifestExecutionDetails(STAGE_KEY), ExecutionDetailsTasks],
18-
accountExtractor: (stage: IStage): string[] => (stage.account ? [stage.account] : []),
18+
accountExtractor: (stage: IStage): string[] => (stage.context.account ? [stage.context.account] : []),
1919
configAccountExtractor: (stage: any): string[] => (stage.account ? [stage.account] : []),
2020
validators: manifestSelectorValidators(STAGE_NAME),
2121
});

packages/kubernetes/src/pipelines/stages/deployManifest/deployManifestStage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Registry.pipeline.registerStage({
2121
producesArtifacts: true,
2222
supportsCustomTimeout: true,
2323
validators: deployManifestValidators(),
24-
accountExtractor: (stage: IStage): string[] => (stage.account ? [stage.account] : []),
24+
accountExtractor: (stage: IStage): string[] => (stage.context.account ? [stage.context.account] : []),
2525
configAccountExtractor: (stage: any): string[] => (stage.account ? [stage.account] : []),
2626
artifactExtractor: ExpectedArtifactService.accumulateArtifacts(['manifestArtifactId', 'requiredArtifactIds']),
2727
artifactRemover: ArtifactReferenceService.removeArtifactFromFields(['manifestArtifactId', 'requiredArtifactIds']),

packages/kubernetes/src/pipelines/stages/findArtifactsFromResource/findArtifactsFromResourceStage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { IStage } from '@spinnaker/core';
12
import { ExecutionArtifactTab, ExecutionDetailsTasks, Registry } from '@spinnaker/core';
23

34
import { FindArtifactsFromResourceConfig } from './FindArtifactsFromResourceConfig';
@@ -15,4 +16,6 @@ Registry.pipeline.registerStage({
1516
executionDetailsSections: [ExecutionDetailsTasks, ExecutionArtifactTab],
1617
producesArtifacts: true,
1718
validators: manifestSelectorValidators(STAGE_NAME),
19+
accountExtractor: (stage: IStage): string[] => (stage.context.account ? [stage.context.account] : []),
20+
configAccountExtractor: (stage: any): string[] => (stage.account ? [stage.account] : []),
1821
});

packages/kubernetes/src/pipelines/stages/scaleManifest/scaleManifestStage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { IStage } from '@spinnaker/core';
12
import { ExecutionDetailsTasks, Registry } from '@spinnaker/core';
23

34
import { manifestExecutionDetails } from '../ManifestExecutionDetails';
@@ -14,6 +15,8 @@ Registry.pipeline.registerStage({
1415
cloudProvider: 'kubernetes',
1516
component: ScaleManifestStageConfig,
1617
executionDetailsSections: [manifestExecutionDetails(STAGE_KEY), ExecutionDetailsTasks],
18+
accountExtractor: (stage: IStage): string[] => (stage.context.account ? [stage.context.account] : []),
19+
configAccountExtractor: (stage: any): string[] => (stage.account ? [stage.account] : []),
1720
validators: [
1821
...manifestSelectorValidators(STAGE_NAME),
1922
{ type: 'requiredField', fieldName: 'replicas', fieldLabel: 'Replicas' },

0 commit comments

Comments
 (0)