@spinnaker/core 2025.0.6 → 2025.1.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/api/ApiService.d.ts +2 -2
- package/dist/api/mock/mockHttpUtils.d.ts +2 -2
- package/dist/application/listExtractor/AppListExtractor.d.ts +2 -2
- package/dist/bootstrap/paramChangedHelper.d.ts +1 -1
- package/dist/cloudProvider/providerSelection/ProviderSelectionService.d.ts +1 -1
- package/dist/cluster/filter/ClusterFilterService.d.ts +1 -1
- package/dist/cluster/task.matcher.d.ts +1 -1
- package/dist/domain/IManagedEntity.d.ts +8 -8
- package/dist/domain/IServerGroup.d.ts +1 -0
- package/dist/domain/IStageTypeConfig.d.ts +1 -1
- package/dist/entityTag/notifications/NotificationsPopover.d.ts +1 -1
- package/dist/image/image.reader.d.ts +2 -2
- package/dist/index.js +1726 -1521
- package/dist/index.js.map +1 -1
- package/dist/managed/config/Configuration.d.ts +1 -1
- package/dist/managed/config/GitIntegration.d.ts +1 -1
- package/dist/managed/constraints/registry.d.ts +2 -2
- package/dist/managed/graphql/graphql-sdk.d.ts +137 -137
- package/dist/managed/managed.states.d.ts +1 -1
- package/dist/managed/overview/artifact/ArtifactActionModal.d.ts +1 -1
- package/dist/managed/overview/artifact/VersionOperation.d.ts +3 -3
- package/dist/managed/overview/artifact/utils.d.ts +2 -2
- package/dist/managed/overview/types.d.ts +9 -9
- package/dist/managed/resourceHistory/ManagedResourceHistoryModal.d.ts +1 -1
- package/dist/managed/resources/ResourceDefinitionModal.d.ts +1 -1
- package/dist/managed/resources/resourceRegistry.d.ts +1 -1
- package/dist/managed/versionMetadata/MetadataComponents.d.ts +1 -1
- package/dist/managed/versionsHistory/types.d.ts +6 -6
- package/dist/manifest/ManifestYaml.d.ts +1 -1
- package/dist/modal/wizard/WizardPage.d.ts +1 -1
- package/dist/navigation/urlParser.d.ts +1 -1
- package/dist/pagerDuty/Pager.d.ts +1 -1
- package/dist/pipeline/config/actions/pipelineJson/EditPipelineJsonModal.d.ts +1 -1
- package/dist/pipeline/config/stages/FormikStageConfig.d.ts +2 -2
- package/dist/pipeline/config/stages/bakeManifest/helm/BakeHelmConfigForm.d.ts +1 -0
- package/dist/pipeline/config/stages/common/ExecutionDetailsSection.d.ts +1 -1
- package/dist/pipeline/config/stages/entityTags/TagEditor.d.ts +1 -1
- package/dist/pipeline/config/templates/PipelineTemplateReader.d.ts +1 -1
- package/dist/pipeline/config/triggers/artifacts/helm-image/HelmImageArtifactEditor.d.ts +3 -0
- package/dist/pipeline/config/validation/anyFieldRequired.validator.d.ts +1 -1
- package/dist/pipeline/config/validation/requiredField.validator.d.ts +1 -1
- package/dist/plugins/plugin.registry.d.ts +1 -1
- package/dist/presentation/Placement.d.ts +1 -1
- package/dist/presentation/Popover.d.ts +1 -1
- package/dist/presentation/details/Details.d.ts +7 -0
- package/dist/presentation/forms/fields/FormField.d.ts +1 -1
- package/dist/presentation/forms/fields/FormikExpressionField.d.ts +1 -1
- package/dist/presentation/forms/fields/FormikExpressionRegexField.d.ts +1 -1
- package/dist/presentation/forms/fields/FormikFormField.d.ts +1 -1
- package/dist/presentation/forms/inputs/interface.d.ts +2 -2
- package/dist/presentation/forms/validation/categories.d.ts +3 -3
- package/dist/presentation/forms/validation/validation.d.ts +3 -3
- package/dist/presentation/hooks/useLatestPromise.hook.d.ts +1 -1
- package/dist/presentation/modal/showModal.d.ts +1 -1
- package/dist/presentation/tables/Table.d.ts +1 -1
- package/dist/presentation/tables/TableCell.d.ts +1 -1
- package/dist/presentation/tables/TableRow.d.ts +1 -1
- package/dist/presentation/tables/standardGridTableLayout.d.ts +1 -1
- package/dist/projects/Projects.d.ts +2 -0
- package/dist/projects/index.d.ts +1 -0
- package/dist/projects/projects.module.d.ts +3 -2
- package/dist/reactShims/AngularJSAdapter.d.ts +3 -3
- package/dist/search/infrastructure/SearchResultPods.d.ts +1 -1
- package/dist/search/infrastructure/infrastructureSearch.service.d.ts +1 -1
- package/dist/serverGroup/details/ServerGroupDetailsWrapper.d.ts +1 -1
- package/dist/serverGroupManager/index.d.ts +1 -0
- package/dist/serverGroupManager/serverGroupManager.states.d.ts +1 -1
- package/dist/utils/Logger.d.ts +1 -1
- package/dist/utils/feature/Feature.d.ts +58 -0
- package/dist/utils/feature/FeatureContext.d.ts +24 -0
- package/dist/utils/feature/index.d.ts +3 -0
- package/dist/utils/feature/useFeature.hook.d.ts +15 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/json/traverseObject.d.ts +1 -1
- package/dist/utils/parseNum.d.ts +1 -0
- package/dist/utils/testUtils/index.d.ts +7 -0
- package/dist/utils/workerPool.d.ts +1 -1
- package/package.json +3 -3
- package/src/artifact/ArtifactIconService.ts +1 -0
- package/src/artifact/ArtifactTypes.ts +1 -0
- package/src/artifact/ExpectedArtifactSelectorViewController.ts +1 -1
- package/src/config/VersionChecker.tsx +1 -1
- package/src/domain/IServerGroup.ts +1 -0
- package/src/help/help.contents.ts +1 -1
- package/src/navigation/UrlBuilder.ts +15 -0
- package/src/notification/NotificationsList.tsx +12 -8
- package/src/pipeline/config/stages/bakeManifest/helm/BakeHelmConfigForm.tsx +8 -2
- package/src/pipeline/config/triggers/artifacts/helm-image/HelmImageArtifactEditor.tsx +169 -0
- package/src/pipeline/config/triggers/artifacts/index.ts +3 -0
- package/src/pipeline/config/validation/PipelineConfigValidator.ts +2 -2
- package/src/pipeline/executions/executionGroup/ExecutionGroups.tsx +37 -2
- package/src/pipeline/filter/executionFilter.service.ts +50 -5
- package/src/presentation/details/Details.tsx +18 -1
- package/src/presentation/forms/FormikForm.tsx +1 -1
- package/src/projects/ProjectHeader.tsx +12 -9
- package/src/projects/Projects.spec.tsx +141 -0
- package/src/projects/Projects.tsx +148 -0
- package/src/projects/index.ts +1 -0
- package/src/projects/{projects.module.js → projects.module.ts} +0 -2
- package/src/projects/projects.states.ts +4 -6
- package/src/serverGroup/details/ServerGroupDetails.tsx +1 -1
- package/src/serverGroupManager/ServerGroupManager.tsx +2 -0
- package/src/serverGroupManager/ServerGroupManagerTag.tsx +1 -1
- package/src/serverGroupManager/index.ts +1 -0
- package/src/serverGroupManager/serverGroupManager.states.ts +3 -3
- package/src/utils/feature/Feature.tsx +98 -0
- package/src/utils/feature/FeatureContext.tsx +49 -0
- package/src/utils/feature/index.ts +3 -0
- package/src/utils/feature/useFeature.hook.tsx +25 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/parseNum.ts +2 -0
- package/src/utils/testUtils/index.tsx +30 -0
- package/dist/projects/projects.controller.d.ts +0 -2
- package/src/projects/projects.controller.js +0 -112
- package/src/projects/projects.controller.spec.js +0 -86
- package/src/projects/projects.html +0 -87
package/dist/api/ApiService.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ICache } from '../cache/deckCacheFactory';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type IPrimitive = string | boolean | number;
|
|
3
|
+
type IParams = Record<string, IPrimitive | IPrimitive[]>;
|
|
4
4
|
interface Headers {
|
|
5
5
|
[headerName: string]: string;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Verb = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
2
|
+
export type UrlArg = string | RegExp | ((url: string) => boolean);
|
|
3
3
|
export interface IDeferred {
|
|
4
4
|
promise: Promise<any>;
|
|
5
5
|
resolve: (result: any) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Application } from '../application.model';
|
|
2
2
|
import type { IInstance, IServerGroup } from '../../domain';
|
|
3
3
|
import type { IMoniker } from '../../naming/IMoniker';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type IServerGroupFilter = (s: IServerGroup) => boolean;
|
|
5
|
+
export type IInstanceFilter = (i: IInstance) => boolean;
|
|
6
6
|
export declare class AppListExtractor {
|
|
7
7
|
static getMonikers(applications: Application[], filter?: IServerGroupFilter): IMoniker[];
|
|
8
8
|
static getRegions(applications: Application[], filter?: IServerGroupFilter): string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HookResult, TargetState, Transition } from '@uirouter/core';
|
|
2
|
-
|
|
2
|
+
type ParamChangedCallback = (newVal: any, oldVal?: any) => HookResult | TargetState;
|
|
3
3
|
export declare const paramChangedHelper: (paramName: string, changedHandler: ParamChangedCallback) => (transition: Transition) => HookResult;
|
|
4
4
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ICloudProviderConfig } from '../CloudProviderRegistry';
|
|
2
2
|
import type { IAccountDetails } from '../../account';
|
|
3
3
|
import type { Application } from '../../application';
|
|
4
|
-
export
|
|
4
|
+
export type IProviderSelectionFilter = (app: Application, acc: IAccountDetails, prov: ICloudProviderConfig) => boolean;
|
|
5
5
|
export declare class ProviderSelectionService {
|
|
6
6
|
static selectProvider(application: Application, feature: string, filterFn?: IProviderSelectionFilter): PromiseLike<string>;
|
|
7
7
|
static isDisabled(app: Application): PromiseLike<boolean>;
|
|
@@ -31,7 +31,7 @@ export interface IServerGroupSubgroup {
|
|
|
31
31
|
isManaged: boolean;
|
|
32
32
|
managedResourceSummary?: IManagedResourceSummary;
|
|
33
33
|
}
|
|
34
|
-
export
|
|
34
|
+
export type Grouping = IClusterGroup | IClusterSubgroup | IServerGroupSubgroup;
|
|
35
35
|
export declare class ClusterFilterService {
|
|
36
36
|
groupsUpdatedStream: Subject<IClusterGroup[]>;
|
|
37
37
|
private lastApplication;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IServerGroup, ITask } from '../domain';
|
|
2
|
-
export
|
|
2
|
+
export type ITaskMatcher = (task: ITask, serverGroup: IServerGroup) => boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Match running tasks for an application to a specific server group.
|
|
5
5
|
* This allows the tasks to be displayed in the server group details, or
|
|
@@ -16,8 +16,8 @@ export declare enum ManagedResourceStatus {
|
|
|
16
16
|
WAITING = "WAITING",
|
|
17
17
|
DELETING = "DELETING"
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
export
|
|
19
|
+
type DeprecatedStatus = 'OVERRIDE_PASS' | 'OVERRIDE_FAIL' | 'NOT_EVALUATED';
|
|
20
|
+
export type ConstraintStatus = DeprecatedStatus | MdConstraintStatus;
|
|
21
21
|
export interface IBaseConstraint {
|
|
22
22
|
type: string;
|
|
23
23
|
status: ConstraintStatus;
|
|
@@ -48,7 +48,7 @@ export interface IAllowedTimesConstraint extends IBaseConstraint {
|
|
|
48
48
|
export interface IManualJudgementConstraint extends IBaseConstraint {
|
|
49
49
|
type: 'manual-judgement';
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type IConstraint = IBaseConstraint | IManualJudgementConstraint | IDependsOnConstraint | IAllowedTimesConstraint;
|
|
52
52
|
export interface IManagedResourceSummary {
|
|
53
53
|
id: string;
|
|
54
54
|
kind: string;
|
|
@@ -175,8 +175,8 @@ interface IManagedApplicationEntities {
|
|
|
175
175
|
environments: IManagedEnvironmentSummary[];
|
|
176
176
|
artifacts: IManagedArtifactSummary[];
|
|
177
177
|
}
|
|
178
|
-
export
|
|
179
|
-
export
|
|
178
|
+
export type IManagedApplicationEnvironmentSummary = IManagedApplicationSummary<'resources' | 'artifacts' | 'environments'>;
|
|
179
|
+
export type IManagedApplicationSummary<T extends keyof IManagedApplicationEntities = 'resources'> = Pick<IManagedApplicationEntities, T> & {
|
|
180
180
|
applicationPaused: boolean;
|
|
181
181
|
hasManagedResources: boolean;
|
|
182
182
|
};
|
|
@@ -184,7 +184,7 @@ export interface IManagedResource {
|
|
|
184
184
|
managedResourceSummary?: IManagedResourceSummary;
|
|
185
185
|
isManaged?: boolean;
|
|
186
186
|
}
|
|
187
|
-
export
|
|
187
|
+
export type ManagedResourceEventType = 'ResourceCreated' | 'ResourceUpdated' | 'ResourceDeleted' | 'ResourceMissing' | 'ResourceValid' | 'ResourceDeltaDetected' | 'ResourceDeltaResolved' | 'ResourceActuationLaunched' | 'ResourceCheckError' | 'ResourceCheckUnresolvable' | 'ResourceActuationPaused' | 'ResourceActuationVetoed' | 'ResourceActuationResumed';
|
|
188
188
|
export interface IManagedResourceDiff {
|
|
189
189
|
[fieldName: string]: {
|
|
190
190
|
key: string;
|
|
@@ -212,8 +212,8 @@ export interface IManagedResourceEvent {
|
|
|
212
212
|
reason?: string;
|
|
213
213
|
exceptionMessage?: string;
|
|
214
214
|
}
|
|
215
|
-
export
|
|
216
|
-
export
|
|
215
|
+
export type IManagedResourceEventHistory = IManagedResourceEvent[];
|
|
216
|
+
export type IManagedResourceEventHistoryResponse = Array<Omit<IManagedResourceEvent, 'delta'> & {
|
|
217
217
|
delta?: {
|
|
218
218
|
[key: string]: {
|
|
219
219
|
state: 'CHANGED' | 'ADDED' | 'REMOVED';
|
|
@@ -4,7 +4,7 @@ import type { IStage } from './IStage';
|
|
|
4
4
|
import type { IStageOrTriggerTypeConfig } from './IStageOrTriggerTypeConfig';
|
|
5
5
|
import type { IExecutionDetailsSectionProps } from '../pipeline/config/stages/common';
|
|
6
6
|
import type { IStageSummaryProps } from '../pipeline/details/StageSummary';
|
|
7
|
-
export
|
|
7
|
+
export type IExecutionDetailsSection = React.ComponentType<IExecutionDetailsSectionProps> & {
|
|
8
8
|
title: string;
|
|
9
9
|
};
|
|
10
10
|
export interface IStageTypeConfig extends IStageOrTriggerTypeConfig {
|
|
@@ -4,7 +4,7 @@ import type { IEntityTag, IEntityTags } from '../../domain';
|
|
|
4
4
|
import type { Placement } from '../../presentation';
|
|
5
5
|
import './notifications.less';
|
|
6
6
|
import './notifications.popover.less';
|
|
7
|
-
export
|
|
7
|
+
export type NotificationType = 'alerts' | 'notices';
|
|
8
8
|
/** A UI notification. */
|
|
9
9
|
export interface INotification {
|
|
10
10
|
/** the notification message, category, etc */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ProviderServiceDelegate } from '../cloudProvider/providerService.delegate';
|
|
2
|
-
export
|
|
2
|
+
export type IFindImageParams = {
|
|
3
3
|
provider: string;
|
|
4
4
|
q?: string;
|
|
5
5
|
region?: string;
|
|
6
6
|
account?: string;
|
|
7
7
|
count?: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type IFindTagsParams = {
|
|
10
10
|
provider: string;
|
|
11
11
|
account: string;
|
|
12
12
|
repository: string;
|