@spinnaker/docker 2025.0.5 → 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/image/DockerChartAndTagSelector.d.ts +74 -0
- package/dist/image/DockerImageAndTagSelector.d.ts +1 -1
- package/dist/image/DockerImageReader.d.ts +5 -0
- package/dist/index.js +727 -133
- package/dist/index.js.map +1 -1
- package/dist/pipeline/trigger/DockerHelmOciTriggerConfig.d.ts +8 -0
- package/package.json +3 -3
- package/src/image/DockerChartAndTagSelector.tsx +735 -0
- package/src/image/DockerImageReader.ts +33 -0
- package/src/pipeline/trigger/DockerHelmOciTriggerConfig.tsx +39 -0
- package/src/pipeline/trigger/DockerTrigger.tsx +29 -0
- package/src/pipeline/trigger/DockerTriggerTemplate.tsx +22 -9
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Option } from 'react-select';
|
|
3
|
+
export type IDockerLookupType = 'tag' | 'digest';
|
|
4
|
+
export interface IDockerChartAndTagChanges {
|
|
5
|
+
account?: string;
|
|
6
|
+
organization?: string;
|
|
7
|
+
registry?: string;
|
|
8
|
+
repository?: string;
|
|
9
|
+
tag?: string;
|
|
10
|
+
digest?: string;
|
|
11
|
+
imageId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IDockerChartAndTagSelectorProps {
|
|
14
|
+
specifyTagByRegex: boolean;
|
|
15
|
+
imageId: string;
|
|
16
|
+
organization: string;
|
|
17
|
+
registry: string;
|
|
18
|
+
repository: string;
|
|
19
|
+
tag: string;
|
|
20
|
+
digest: string;
|
|
21
|
+
account: string;
|
|
22
|
+
showRegistry?: boolean;
|
|
23
|
+
onChange: (changes: IDockerChartAndTagChanges) => void;
|
|
24
|
+
deferInitialization?: boolean;
|
|
25
|
+
showDigest?: boolean;
|
|
26
|
+
allowManualDefinition?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface IDockerChartAndTagSelectorState {
|
|
29
|
+
accountOptions: Array<Option<string>>;
|
|
30
|
+
switchedManualWarning: string;
|
|
31
|
+
missingFields?: string[];
|
|
32
|
+
imagesLoaded: boolean;
|
|
33
|
+
imagesLoading: boolean;
|
|
34
|
+
organizationOptions: Array<Option<string>>;
|
|
35
|
+
repositoryOptions: Array<Option<string>>;
|
|
36
|
+
defineManually: boolean;
|
|
37
|
+
tagOptions: Array<Option<string>>;
|
|
38
|
+
lookupType: IDockerLookupType;
|
|
39
|
+
}
|
|
40
|
+
export declare class DockerChartAndTagSelector extends React.Component<IDockerChartAndTagSelectorProps, IDockerChartAndTagSelectorState> {
|
|
41
|
+
static defaultProps: Partial<IDockerChartAndTagSelectorProps>;
|
|
42
|
+
private unmounted;
|
|
43
|
+
private images;
|
|
44
|
+
private accounts;
|
|
45
|
+
private registryMap;
|
|
46
|
+
private accountMap;
|
|
47
|
+
private newAccounts;
|
|
48
|
+
private organizationMap;
|
|
49
|
+
private repositoryMap;
|
|
50
|
+
private organizations;
|
|
51
|
+
private cachedValues;
|
|
52
|
+
constructor(props: IDockerChartAndTagSelectorProps);
|
|
53
|
+
private getAccountMap;
|
|
54
|
+
private getRegistryMap;
|
|
55
|
+
private getOrganizationMap;
|
|
56
|
+
private getRepositoryMap;
|
|
57
|
+
private getOrganizationsList;
|
|
58
|
+
private getRepositoryList;
|
|
59
|
+
private getTags;
|
|
60
|
+
componentWillReceiveProps(nextProps: IDockerChartAndTagSelectorProps): void;
|
|
61
|
+
componentWillUnmount(): void;
|
|
62
|
+
private synchronizeChanges;
|
|
63
|
+
private updateThings;
|
|
64
|
+
private initializeImages;
|
|
65
|
+
handleRefreshImages: () => void;
|
|
66
|
+
refreshImages(props: IDockerChartAndTagSelectorProps): void;
|
|
67
|
+
private initializeAccounts;
|
|
68
|
+
private isNew;
|
|
69
|
+
componentDidMount(): void;
|
|
70
|
+
private valueChanged;
|
|
71
|
+
private lookupTypeChanged;
|
|
72
|
+
private showManualInput;
|
|
73
|
+
render(): JSX.Element;
|
|
74
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Option } from 'react-select';
|
|
3
|
-
export
|
|
3
|
+
export type IDockerLookupType = 'tag' | 'digest';
|
|
4
4
|
export interface IDockerImageAndTagChanges {
|
|
5
5
|
account?: string;
|
|
6
6
|
organization?: string;
|
|
@@ -10,3 +10,8 @@ export declare class DockerImageReader {
|
|
|
10
10
|
static findImages(params: IFindImageParams): PromiseLike<IDockerImage[]>;
|
|
11
11
|
static findTags(params: IFindTagsParams): PromiseLike<string[]>;
|
|
12
12
|
}
|
|
13
|
+
export declare class DockerChartImageReader {
|
|
14
|
+
static getImage(imageName: string, region: string, credentials: string): PromiseLike<IDockerImage>;
|
|
15
|
+
static findImages(params: IFindImageParams): PromiseLike<IDockerImage[]>;
|
|
16
|
+
static findTags(params: IFindTagsParams): PromiseLike<string[]>;
|
|
17
|
+
}
|