pulumi-containerregistry 0.0.7 → 0.0.9
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/README.md +2 -2
- package/package.json +2 -3
- package/package.json.bak +2 -3
- package/provider.js +1 -1
- package/provider.js.map +1 -1
- package/resource.d.ts +12 -12
- package/resource.js +4 -4
- package/resource.js.map +1 -1
- package/scripts/install-pulumi-plugin.js +0 -26
package/README.md
CHANGED
|
@@ -370,7 +370,7 @@ builds:
|
|
|
370
370
|
- linux
|
|
371
371
|
ignore: []
|
|
372
372
|
ldflags:
|
|
373
|
-
- -X github.com/
|
|
373
|
+
- -X github.com/rhysmdnz/pulumi-containerregistry/provider/pkg/version.Version={{.Tag}}
|
|
374
374
|
main: ./cmd/pulumi-resource-containerregistry/
|
|
375
375
|
sort: asc
|
|
376
376
|
use: git
|
|
@@ -455,4 +455,4 @@ EOF
|
|
|
455
455
|
cd provider && go mod tidy
|
|
456
456
|
|
|
457
457
|
```
|
|
458
|
-
<!-- markdownlint-enable MD010 -->
|
|
458
|
+
<!-- markdownlint-enable MD010 -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pulumi-containerregistry",
|
|
3
|
-
"version": "v0.0.
|
|
3
|
+
"version": "v0.0.9",
|
|
4
4
|
"description": "A Pulumi package for creating and managing containerregistry cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"repository": "https://github.com/rhysmdnz/pulumi-containerregistry",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "tsc"
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource containerregistry v0.0.7"
|
|
14
|
+
"build": "tsc"
|
|
16
15
|
},
|
|
17
16
|
"dependencies": {
|
|
18
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.bak
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/containerregistry",
|
|
3
|
-
"version": "v0.0.
|
|
3
|
+
"version": "v0.0.9",
|
|
4
4
|
"description": "A Pulumi package for creating and managing containerregistry cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"repository": "https://github.com/rhysmdnz/pulumi-containerregistry",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "tsc"
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource containerregistry v0.0.7"
|
|
14
|
+
"build": "tsc"
|
|
16
15
|
},
|
|
17
16
|
"dependencies": {
|
|
18
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/provider.js
CHANGED
|
@@ -20,7 +20,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
20
20
|
if (obj === undefined || obj === null) {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
23
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Create a Provider resource with the given unique name, arguments, and options.
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,QAAQ,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;SACC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9BL,4BA+BC;AA9BG,gBAAgB;AACO,qBAAY,GAAG,mBAAmB,CAAC"}
|
package/resource.d.ts
CHANGED
|
@@ -16,13 +16,13 @@ export declare class Resource extends pulumi.CustomResource {
|
|
|
16
16
|
*/
|
|
17
17
|
static isInstance(obj: any): obj is Resource;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Image tarball thing.
|
|
20
20
|
*/
|
|
21
|
-
readonly
|
|
21
|
+
readonly image: pulumi.Output<pulumi.asset.Asset | pulumi.asset.Archive>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Hash of the image tarball.
|
|
24
24
|
*/
|
|
25
|
-
readonly
|
|
25
|
+
readonly imageTarballHash: pulumi.Output<string | undefined>;
|
|
26
26
|
/**
|
|
27
27
|
* The tag to save the image to.
|
|
28
28
|
*/
|
|
@@ -41,13 +41,13 @@ export declare class Resource extends pulumi.CustomResource {
|
|
|
41
41
|
*/
|
|
42
42
|
export interface ResourceState {
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Image tarball thing.
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
image?: pulumi.Input<pulumi.asset.Asset | pulumi.asset.Archive>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Hash of the image tarball.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
imageTarballHash?: pulumi.Input<string>;
|
|
51
51
|
/**
|
|
52
52
|
* The tag to save the image to.
|
|
53
53
|
*/
|
|
@@ -58,13 +58,13 @@ export interface ResourceState {
|
|
|
58
58
|
*/
|
|
59
59
|
export interface ResourceArgs {
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Image tarball thing.
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
image: pulumi.Input<pulumi.asset.Asset | pulumi.asset.Archive>;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Hash of the image tarball.
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
imageTarballHash?: pulumi.Input<string>;
|
|
68
68
|
/**
|
|
69
69
|
* The tag to save the image to.
|
|
70
70
|
*/
|
package/resource.js
CHANGED
|
@@ -33,20 +33,20 @@ class Resource extends pulumi.CustomResource {
|
|
|
33
33
|
opts = opts || {};
|
|
34
34
|
if (opts.id) {
|
|
35
35
|
const state = argsOrState;
|
|
36
|
+
resourceInputs["image"] = state ? state.image : undefined;
|
|
36
37
|
resourceInputs["imageTarballHash"] = state ? state.imageTarballHash : undefined;
|
|
37
|
-
resourceInputs["image_tarball"] = state ? state.image_tarball : undefined;
|
|
38
38
|
resourceInputs["remoteTag"] = state ? state.remoteTag : undefined;
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
const args = argsOrState;
|
|
42
|
-
if ((!args || args.
|
|
43
|
-
throw new Error("Missing required property '
|
|
42
|
+
if ((!args || args.image === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'image'");
|
|
44
44
|
}
|
|
45
45
|
if ((!args || args.remoteTag === undefined) && !opts.urn) {
|
|
46
46
|
throw new Error("Missing required property 'remoteTag'");
|
|
47
47
|
}
|
|
48
|
+
resourceInputs["image"] = args ? args.image : undefined;
|
|
48
49
|
resourceInputs["imageTarballHash"] = args ? args.imageTarballHash : undefined;
|
|
49
|
-
resourceInputs["image_tarball"] = args ? args.image_tarball : undefined;
|
|
50
50
|
resourceInputs["remoteTag"] = args ? args.remoteTag : undefined;
|
|
51
51
|
}
|
|
52
52
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/resource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../resource.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IA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-
}
|
|
9
|
-
|
|
10
|
-
var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/rhysmdnz/pulumi-containerregistry"].concat(args), {
|
|
11
|
-
stdio: ["ignore", "inherit", "inherit"]
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
if (res.error && res.error.code === "ENOENT") {
|
|
15
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
16
|
-
"It looks like `pulumi` is not installed on your system. " +
|
|
17
|
-
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
18
|
-
"You may try manually installing the plugin by running " +
|
|
19
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
20
|
-
} else if (res.error || res.status !== 0) {
|
|
21
|
-
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
22
|
-
"You may try to manually installing the plugin by running " +
|
|
23
|
-
"`pulumi plugin install " + args.join(" ") + "`");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
process.exit(0);
|