@pulumi/docker 3.4.0 → 3.4.1
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/container.d.ts +35 -71
- package/container.js.map +1 -1
- package/getNetwork.d.ts +27 -0
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +33 -0
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +21 -0
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +12 -0
- package/getRemoteImage.js.map +1 -1
- package/network.d.ts +7 -13
- package/network.js +1 -1
- package/network.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/registryImage.d.ts +3 -6
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +27 -41
- package/remoteImage.js +2 -23
- package/remoteImage.js.map +1 -1
- package/types/input.d.ts +423 -0
- package/types/output.d.ts +423 -0
package/network.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* <!-- Bug: Type and Name are switched -->
|
|
5
|
-
* `docker.Network` provides
|
|
5
|
+
* `docker.Network` provides a docker network resource.
|
|
6
6
|
*
|
|
7
7
|
* ## Example Usage
|
|
8
8
|
*
|
|
@@ -48,8 +48,7 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
48
48
|
*/
|
|
49
49
|
readonly checkDuplicate: pulumi.Output<boolean | undefined>;
|
|
50
50
|
/**
|
|
51
|
-
* The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network
|
|
52
|
-
* docs](https://docs.docker.com/network/#network-drivers) for more details.
|
|
51
|
+
* The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
|
|
53
52
|
*/
|
|
54
53
|
readonly driver: pulumi.Output<string>;
|
|
55
54
|
/**
|
|
@@ -81,8 +80,7 @@ export declare class Network extends pulumi.CustomResource {
|
|
|
81
80
|
*/
|
|
82
81
|
readonly name: pulumi.Output<string>;
|
|
83
82
|
/**
|
|
84
|
-
* Only available with bridge networks. See [bridge options
|
|
85
|
-
* docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
|
|
83
|
+
* Only available with bridge networks. See [bridge options docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
|
|
86
84
|
*/
|
|
87
85
|
readonly options: pulumi.Output<{
|
|
88
86
|
[key: string]: any;
|
|
@@ -113,8 +111,7 @@ export interface NetworkState {
|
|
|
113
111
|
*/
|
|
114
112
|
checkDuplicate?: pulumi.Input<boolean>;
|
|
115
113
|
/**
|
|
116
|
-
* The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network
|
|
117
|
-
* docs](https://docs.docker.com/network/#network-drivers) for more details.
|
|
114
|
+
* The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
|
|
118
115
|
*/
|
|
119
116
|
driver?: pulumi.Input<string>;
|
|
120
117
|
/**
|
|
@@ -146,8 +143,7 @@ export interface NetworkState {
|
|
|
146
143
|
*/
|
|
147
144
|
name?: pulumi.Input<string>;
|
|
148
145
|
/**
|
|
149
|
-
* Only available with bridge networks. See [bridge options
|
|
150
|
-
* docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
|
|
146
|
+
* Only available with bridge networks. See [bridge options docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
|
|
151
147
|
*/
|
|
152
148
|
options?: pulumi.Input<{
|
|
153
149
|
[key: string]: any;
|
|
@@ -170,8 +166,7 @@ export interface NetworkArgs {
|
|
|
170
166
|
*/
|
|
171
167
|
checkDuplicate?: pulumi.Input<boolean>;
|
|
172
168
|
/**
|
|
173
|
-
* The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network
|
|
174
|
-
* docs](https://docs.docker.com/network/#network-drivers) for more details.
|
|
169
|
+
* The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details.
|
|
175
170
|
*/
|
|
176
171
|
driver?: pulumi.Input<string>;
|
|
177
172
|
/**
|
|
@@ -203,8 +198,7 @@ export interface NetworkArgs {
|
|
|
203
198
|
*/
|
|
204
199
|
name?: pulumi.Input<string>;
|
|
205
200
|
/**
|
|
206
|
-
* Only available with bridge networks. See [bridge options
|
|
207
|
-
* docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
|
|
201
|
+
* Only available with bridge networks. See [bridge options docs](https://docs.docker.com/engine/reference/commandline/network_create/#bridge-driver-options) for more details.
|
|
208
202
|
*/
|
|
209
203
|
options?: pulumi.Input<{
|
|
210
204
|
[key: string]: any;
|
package/network.js
CHANGED
|
@@ -7,7 +7,7 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* <!-- Bug: Type and Name are switched -->
|
|
10
|
-
* `docker.Network` provides
|
|
10
|
+
* `docker.Network` provides a docker network resource.
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
package/network.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../network.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"network.js","sourceRoot":"","sources":["../network.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;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"version": "v3.4.1",
|
|
4
4
|
"description": "A Pulumi package for interacting with Docker in Pulumi programs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource docker v3.4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource docker v3.4.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/docker",
|
|
3
|
-
"version": "v3.4.
|
|
3
|
+
"version": "v3.4.1",
|
|
4
4
|
"description": "A Pulumi package for interacting with Docker in Pulumi programs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource docker v3.4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource docker v3.4.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0",
|
package/registryImage.d.ts
CHANGED
|
@@ -45,8 +45,7 @@ export declare class RegistryImage extends pulumi.CustomResource {
|
|
|
45
45
|
*/
|
|
46
46
|
readonly insecureSkipVerify: pulumi.Output<boolean | undefined>;
|
|
47
47
|
/**
|
|
48
|
-
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
|
|
49
|
-
* the docker registry on destroy operation. Defaults to `false`
|
|
48
|
+
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
|
|
50
49
|
*/
|
|
51
50
|
readonly keepRemotely: pulumi.Output<boolean | undefined>;
|
|
52
51
|
/**
|
|
@@ -79,8 +78,7 @@ export interface RegistryImageState {
|
|
|
79
78
|
*/
|
|
80
79
|
insecureSkipVerify?: pulumi.Input<boolean>;
|
|
81
80
|
/**
|
|
82
|
-
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
|
|
83
|
-
* the docker registry on destroy operation. Defaults to `false`
|
|
81
|
+
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
|
|
84
82
|
*/
|
|
85
83
|
keepRemotely?: pulumi.Input<boolean>;
|
|
86
84
|
/**
|
|
@@ -105,8 +103,7 @@ export interface RegistryImageArgs {
|
|
|
105
103
|
*/
|
|
106
104
|
insecureSkipVerify?: pulumi.Input<boolean>;
|
|
107
105
|
/**
|
|
108
|
-
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
|
|
109
|
-
* the docker registry on destroy operation. Defaults to `false`
|
|
106
|
+
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
|
|
110
107
|
*/
|
|
111
108
|
keepRemotely?: pulumi.Input<boolean>;
|
|
112
109
|
/**
|
package/registryImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registryImage.js","sourceRoot":"","sources":["../registryImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"registryImage.js","sourceRoot":"","sources":["../registryImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,c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AS,CAAC;YACtD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;;AA1BL,sCA8EC;AAhEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
package/remoteImage.d.ts
CHANGED
|
@@ -36,29 +36,6 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
36
36
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
37
37
|
* });
|
|
38
38
|
* ```
|
|
39
|
-
* ### Build
|
|
40
|
-
*
|
|
41
|
-
* You can also use the resource to build an image.
|
|
42
|
-
* In this case the image "zoo" and "zoo:develop" are built.
|
|
43
|
-
*
|
|
44
|
-
* ```typescript
|
|
45
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
-
* import * as docker from "@pulumi/docker";
|
|
47
|
-
*
|
|
48
|
-
* const zoo = new docker.RemoteImage("zoo", {
|
|
49
|
-
* name: "zoo",
|
|
50
|
-
* build: {
|
|
51
|
-
* path: ".",
|
|
52
|
-
* tags: ["zoo:develop"],
|
|
53
|
-
* buildArg: {
|
|
54
|
-
* foo: "zoo",
|
|
55
|
-
* },
|
|
56
|
-
* label: {
|
|
57
|
-
* author: "zoo",
|
|
58
|
-
* },
|
|
59
|
-
* },
|
|
60
|
-
* });
|
|
61
|
-
* ```
|
|
62
39
|
*/
|
|
63
40
|
export declare class RemoteImage extends pulumi.CustomResource {
|
|
64
41
|
/**
|
|
@@ -77,8 +54,7 @@ export declare class RemoteImage extends pulumi.CustomResource {
|
|
|
77
54
|
*/
|
|
78
55
|
static isInstance(obj: any): obj is RemoteImage;
|
|
79
56
|
/**
|
|
80
|
-
* Configuration to build an image. Please see [docker build command
|
|
81
|
-
* reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
|
|
57
|
+
* Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
|
|
82
58
|
*/
|
|
83
59
|
readonly build: pulumi.Output<outputs.RemoteImageBuild | undefined>;
|
|
84
60
|
/**
|
|
@@ -86,8 +62,7 @@ export declare class RemoteImage extends pulumi.CustomResource {
|
|
|
86
62
|
*/
|
|
87
63
|
readonly forceRemove: pulumi.Output<boolean | undefined>;
|
|
88
64
|
/**
|
|
89
|
-
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
|
|
90
|
-
* the docker local storage on destroy operation.
|
|
65
|
+
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
|
|
91
66
|
*/
|
|
92
67
|
readonly keepLocally: pulumi.Output<boolean | undefined>;
|
|
93
68
|
/**
|
|
@@ -111,14 +86,19 @@ export declare class RemoteImage extends pulumi.CustomResource {
|
|
|
111
86
|
*/
|
|
112
87
|
readonly pullTrigger: pulumi.Output<string | undefined>;
|
|
113
88
|
/**
|
|
114
|
-
* List of values which cause an image pull when changed. This is used to store the image digest from the registry when
|
|
115
|
-
* using the [docker_registry_image](../data-sources/registry_image.md).
|
|
89
|
+
* List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image.
|
|
116
90
|
*/
|
|
117
91
|
readonly pullTriggers: pulumi.Output<string[] | undefined>;
|
|
118
92
|
/**
|
|
119
93
|
* The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
|
|
120
94
|
*/
|
|
121
95
|
readonly repoDigest: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* A map of arbitrary strings that, when changed, will force the `docker.RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
|
|
98
|
+
*/
|
|
99
|
+
readonly triggers: pulumi.Output<{
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
} | undefined>;
|
|
122
102
|
/**
|
|
123
103
|
* Create a RemoteImage resource with the given unique name, arguments, and options.
|
|
124
104
|
*
|
|
@@ -133,8 +113,7 @@ export declare class RemoteImage extends pulumi.CustomResource {
|
|
|
133
113
|
*/
|
|
134
114
|
export interface RemoteImageState {
|
|
135
115
|
/**
|
|
136
|
-
* Configuration to build an image. Please see [docker build command
|
|
137
|
-
* reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
|
|
116
|
+
* Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
|
|
138
117
|
*/
|
|
139
118
|
build?: pulumi.Input<inputs.RemoteImageBuild>;
|
|
140
119
|
/**
|
|
@@ -142,8 +121,7 @@ export interface RemoteImageState {
|
|
|
142
121
|
*/
|
|
143
122
|
forceRemove?: pulumi.Input<boolean>;
|
|
144
123
|
/**
|
|
145
|
-
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
|
|
146
|
-
* the docker local storage on destroy operation.
|
|
124
|
+
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
|
|
147
125
|
*/
|
|
148
126
|
keepLocally?: pulumi.Input<boolean>;
|
|
149
127
|
/**
|
|
@@ -167,22 +145,26 @@ export interface RemoteImageState {
|
|
|
167
145
|
*/
|
|
168
146
|
pullTrigger?: pulumi.Input<string>;
|
|
169
147
|
/**
|
|
170
|
-
* List of values which cause an image pull when changed. This is used to store the image digest from the registry when
|
|
171
|
-
* using the [docker_registry_image](../data-sources/registry_image.md).
|
|
148
|
+
* List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image.
|
|
172
149
|
*/
|
|
173
150
|
pullTriggers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
174
151
|
/**
|
|
175
152
|
* The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
|
|
176
153
|
*/
|
|
177
154
|
repoDigest?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* A map of arbitrary strings that, when changed, will force the `docker.RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
|
|
157
|
+
*/
|
|
158
|
+
triggers?: pulumi.Input<{
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
}>;
|
|
178
161
|
}
|
|
179
162
|
/**
|
|
180
163
|
* The set of arguments for constructing a RemoteImage resource.
|
|
181
164
|
*/
|
|
182
165
|
export interface RemoteImageArgs {
|
|
183
166
|
/**
|
|
184
|
-
* Configuration to build an image. Please see [docker build command
|
|
185
|
-
* reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
|
|
167
|
+
* Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
|
|
186
168
|
*/
|
|
187
169
|
build?: pulumi.Input<inputs.RemoteImageBuild>;
|
|
188
170
|
/**
|
|
@@ -190,8 +172,7 @@ export interface RemoteImageArgs {
|
|
|
190
172
|
*/
|
|
191
173
|
forceRemove?: pulumi.Input<boolean>;
|
|
192
174
|
/**
|
|
193
|
-
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from
|
|
194
|
-
* the docker local storage on destroy operation.
|
|
175
|
+
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
|
|
195
176
|
*/
|
|
196
177
|
keepLocally?: pulumi.Input<boolean>;
|
|
197
178
|
/**
|
|
@@ -205,8 +186,13 @@ export interface RemoteImageArgs {
|
|
|
205
186
|
*/
|
|
206
187
|
pullTrigger?: pulumi.Input<string>;
|
|
207
188
|
/**
|
|
208
|
-
* List of values which cause an image pull when changed. This is used to store the image digest from the registry when
|
|
209
|
-
* using the [docker_registry_image](../data-sources/registry_image.md).
|
|
189
|
+
* List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image.
|
|
210
190
|
*/
|
|
211
191
|
pullTriggers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
192
|
+
/**
|
|
193
|
+
* A map of arbitrary strings that, when changed, will force the `docker.RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
|
|
194
|
+
*/
|
|
195
|
+
triggers?: pulumi.Input<{
|
|
196
|
+
[key: string]: any;
|
|
197
|
+
}>;
|
|
212
198
|
}
|
package/remoteImage.js
CHANGED
|
@@ -41,29 +41,6 @@ const utilities = require("./utilities");
|
|
|
41
41
|
* pullTriggers: [ubuntuRegistryImage.then(ubuntuRegistryImage => ubuntuRegistryImage.sha256Digest)],
|
|
42
42
|
* });
|
|
43
43
|
* ```
|
|
44
|
-
* ### Build
|
|
45
|
-
*
|
|
46
|
-
* You can also use the resource to build an image.
|
|
47
|
-
* In this case the image "zoo" and "zoo:develop" are built.
|
|
48
|
-
*
|
|
49
|
-
* ```typescript
|
|
50
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
-
* import * as docker from "@pulumi/docker";
|
|
52
|
-
*
|
|
53
|
-
* const zoo = new docker.RemoteImage("zoo", {
|
|
54
|
-
* name: "zoo",
|
|
55
|
-
* build: {
|
|
56
|
-
* path: ".",
|
|
57
|
-
* tags: ["zoo:develop"],
|
|
58
|
-
* buildArg: {
|
|
59
|
-
* foo: "zoo",
|
|
60
|
-
* },
|
|
61
|
-
* label: {
|
|
62
|
-
* author: "zoo",
|
|
63
|
-
* },
|
|
64
|
-
* },
|
|
65
|
-
* });
|
|
66
|
-
* ```
|
|
67
44
|
*/
|
|
68
45
|
class RemoteImage extends pulumi.CustomResource {
|
|
69
46
|
constructor(name, argsOrState, opts) {
|
|
@@ -80,6 +57,7 @@ class RemoteImage extends pulumi.CustomResource {
|
|
|
80
57
|
resourceInputs["pullTrigger"] = state ? state.pullTrigger : undefined;
|
|
81
58
|
resourceInputs["pullTriggers"] = state ? state.pullTriggers : undefined;
|
|
82
59
|
resourceInputs["repoDigest"] = state ? state.repoDigest : undefined;
|
|
60
|
+
resourceInputs["triggers"] = state ? state.triggers : undefined;
|
|
83
61
|
}
|
|
84
62
|
else {
|
|
85
63
|
const args = argsOrState;
|
|
@@ -92,6 +70,7 @@ class RemoteImage extends pulumi.CustomResource {
|
|
|
92
70
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
93
71
|
resourceInputs["pullTrigger"] = args ? args.pullTrigger : undefined;
|
|
94
72
|
resourceInputs["pullTriggers"] = args ? args.pullTriggers : undefined;
|
|
73
|
+
resourceInputs["triggers"] = args ? args.triggers : undefined;
|
|
95
74
|
resourceInputs["latest"] = undefined /*out*/;
|
|
96
75
|
resourceInputs["output"] = undefined /*out*/;
|
|
97
76
|
resourceInputs["repoDigest"] = undefined /*out*/;
|
package/remoteImage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remoteImage.js","sourceRoot":"","sources":["../remoteImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"remoteImage.js","sourceRoot":"","sources":["../remoteImage.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAA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