@kilic.dev/pulumi-k8s-crds 1.0.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/README.md +1 -0
- package/dist/argoproj/index.d.ts +2 -0
- package/dist/argoproj/index.js +5 -0
- package/dist/argoproj/v1alpha1/appProject.d.ts +65 -0
- package/dist/argoproj/v1alpha1/appProject.js +75 -0
- package/dist/argoproj/v1alpha1/application.d.ts +68 -0
- package/dist/argoproj/v1alpha1/application.js +76 -0
- package/dist/argoproj/v1alpha1/applicationSet.d.ts +45 -0
- package/dist/argoproj/v1alpha1/applicationSet.js +61 -0
- package/dist/argoproj/v1alpha1/index.d.ts +9 -0
- package/dist/argoproj/v1alpha1/index.js +26 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +20 -0
- package/dist/meta/v1.d.ts +2 -0
- package/dist/meta/v1.js +1 -0
- package/dist/postgresql/index.d.ts +2 -0
- package/dist/postgresql/index.js +5 -0
- package/dist/postgresql/v1/backup.d.ts +66 -0
- package/dist/postgresql/v1/backup.js +74 -0
- package/dist/postgresql/v1/cluster.d.ts +66 -0
- package/dist/postgresql/v1/cluster.js +74 -0
- package/dist/postgresql/v1/clusterImageCatalog.d.ts +54 -0
- package/dist/postgresql/v1/clusterImageCatalog.js +65 -0
- package/dist/postgresql/v1/imageCatalog.d.ts +54 -0
- package/dist/postgresql/v1/imageCatalog.js +65 -0
- package/dist/postgresql/v1/index.d.ts +18 -0
- package/dist/postgresql/v1/index.js +38 -0
- package/dist/postgresql/v1/pooler.d.ts +66 -0
- package/dist/postgresql/v1/pooler.js +74 -0
- package/dist/postgresql/v1/scheduledBackup.d.ts +66 -0
- package/dist/postgresql/v1/scheduledBackup.js +74 -0
- package/dist/provider.d.ts +23 -0
- package/dist/provider.js +33 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +6 -0
- package/dist/types/input.d.ts +28919 -0
- package/dist/types/input.js +990 -0
- package/dist/types/output.d.ts +28918 -0
- package/dist/types/output.js +989 -0
- package/dist/utilities.d.ts +12 -0
- package/dist/utilities.js +80 -0
- package/package.json +56 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../../types/input";
|
|
3
|
+
import * as outputs from "../../types/output";
|
|
4
|
+
import { ObjectMeta } from "../../meta/v1";
|
|
5
|
+
/**
|
|
6
|
+
* Cluster is the Schema for the PostgreSQL API
|
|
7
|
+
*/
|
|
8
|
+
export declare class Cluster extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Cluster resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Cluster;
|
|
18
|
+
/** @internal */
|
|
19
|
+
static readonly __pulumiType = "kubernetes:postgresql.cnpg.io/v1:Cluster";
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of Cluster. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj: any): obj is Cluster;
|
|
25
|
+
readonly apiVersion: pulumi.Output<"postgresql.cnpg.io/v1" | undefined>;
|
|
26
|
+
readonly kind: pulumi.Output<"Cluster" | undefined>;
|
|
27
|
+
readonly metadata: pulumi.Output<ObjectMeta>;
|
|
28
|
+
/**
|
|
29
|
+
* Specification of the desired behavior of the cluster.
|
|
30
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
31
|
+
*/
|
|
32
|
+
readonly spec: pulumi.Output<outputs.postgresql.v1.ClusterSpec>;
|
|
33
|
+
/**
|
|
34
|
+
* Most recently observed status of the cluster. This data may not be up
|
|
35
|
+
* to date. Populated by the system. Read-only.
|
|
36
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
37
|
+
*/
|
|
38
|
+
readonly status: pulumi.Output<outputs.postgresql.v1.ClusterStatus | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a Cluster resource with the given unique name, arguments, and options.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resource.
|
|
43
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
44
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
45
|
+
*/
|
|
46
|
+
constructor(name: string, args?: ClusterArgs, opts?: pulumi.CustomResourceOptions);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The set of arguments for constructing a Cluster resource.
|
|
50
|
+
*/
|
|
51
|
+
export interface ClusterArgs {
|
|
52
|
+
apiVersion?: pulumi.Input<"postgresql.cnpg.io/v1">;
|
|
53
|
+
kind?: pulumi.Input<"Cluster">;
|
|
54
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
|
55
|
+
/**
|
|
56
|
+
* Specification of the desired behavior of the cluster.
|
|
57
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
58
|
+
*/
|
|
59
|
+
spec?: pulumi.Input<inputs.postgresql.v1.ClusterSpecArgs>;
|
|
60
|
+
/**
|
|
61
|
+
* Most recently observed status of the cluster. This data may not be up
|
|
62
|
+
* to date. Populated by the system. Read-only.
|
|
63
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
64
|
+
*/
|
|
65
|
+
status?: pulumi.Input<inputs.postgresql.v1.ClusterStatusArgs>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by crd2pulumi. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
4
|
+
import * as inputs from "../../types/input";
|
|
5
|
+
import * as utilities from "../../utilities";
|
|
6
|
+
/**
|
|
7
|
+
* Cluster is the Schema for the PostgreSQL API
|
|
8
|
+
*/
|
|
9
|
+
export class Cluster extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing Cluster resource's state with the given name, ID, and optional extra
|
|
12
|
+
* properties used to qualify the lookup.
|
|
13
|
+
*
|
|
14
|
+
* @param name The _unique_ name of the resulting resource.
|
|
15
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, opts) {
|
|
19
|
+
return new Cluster(name, undefined, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
22
|
+
static __pulumiType = 'kubernetes:postgresql.cnpg.io/v1:Cluster';
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Cluster. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === Cluster.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
apiVersion;
|
|
34
|
+
kind;
|
|
35
|
+
metadata;
|
|
36
|
+
/**
|
|
37
|
+
* Specification of the desired behavior of the cluster.
|
|
38
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
39
|
+
*/
|
|
40
|
+
spec;
|
|
41
|
+
/**
|
|
42
|
+
* Most recently observed status of the cluster. This data may not be up
|
|
43
|
+
* to date. Populated by the system. Read-only.
|
|
44
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
45
|
+
*/
|
|
46
|
+
status;
|
|
47
|
+
/**
|
|
48
|
+
* Create a Cluster resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name, args, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (!opts.id) {
|
|
58
|
+
resourceInputs["apiVersion"] = "postgresql.cnpg.io/v1";
|
|
59
|
+
resourceInputs["kind"] = "Cluster";
|
|
60
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
61
|
+
resourceInputs["spec"] = args ? (args.spec ? pulumi.output(args.spec).apply(inputs.postgresql.v1.clusterSpecArgsProvideDefaults) : undefined) : undefined;
|
|
62
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(Cluster.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../../types/input";
|
|
3
|
+
import * as outputs from "../../types/output";
|
|
4
|
+
import { ObjectMeta } from "../../meta/v1";
|
|
5
|
+
/**
|
|
6
|
+
* ClusterImageCatalog is the Schema for the clusterimagecatalogs API
|
|
7
|
+
*/
|
|
8
|
+
export declare class ClusterImageCatalog extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ClusterImageCatalog resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ClusterImageCatalog;
|
|
18
|
+
/** @internal */
|
|
19
|
+
static readonly __pulumiType = "kubernetes:postgresql.cnpg.io/v1:ClusterImageCatalog";
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of ClusterImageCatalog. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj: any): obj is ClusterImageCatalog;
|
|
25
|
+
readonly apiVersion: pulumi.Output<"postgresql.cnpg.io/v1" | undefined>;
|
|
26
|
+
readonly kind: pulumi.Output<"ClusterImageCatalog" | undefined>;
|
|
27
|
+
readonly metadata: pulumi.Output<ObjectMeta>;
|
|
28
|
+
/**
|
|
29
|
+
* Specification of the desired behavior of the ClusterImageCatalog.
|
|
30
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
31
|
+
*/
|
|
32
|
+
readonly spec: pulumi.Output<outputs.postgresql.v1.ClusterImageCatalogSpec>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a ClusterImageCatalog resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name: string, args?: ClusterImageCatalogArgs, opts?: pulumi.CustomResourceOptions);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The set of arguments for constructing a ClusterImageCatalog resource.
|
|
44
|
+
*/
|
|
45
|
+
export interface ClusterImageCatalogArgs {
|
|
46
|
+
apiVersion?: pulumi.Input<"postgresql.cnpg.io/v1">;
|
|
47
|
+
kind?: pulumi.Input<"ClusterImageCatalog">;
|
|
48
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
|
49
|
+
/**
|
|
50
|
+
* Specification of the desired behavior of the ClusterImageCatalog.
|
|
51
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
52
|
+
*/
|
|
53
|
+
spec?: pulumi.Input<inputs.postgresql.v1.ClusterImageCatalogSpecArgs>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by crd2pulumi. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
4
|
+
import * as utilities from "../../utilities";
|
|
5
|
+
/**
|
|
6
|
+
* ClusterImageCatalog is the Schema for the clusterimagecatalogs API
|
|
7
|
+
*/
|
|
8
|
+
export class ClusterImageCatalog extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ClusterImageCatalog resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name, id, opts) {
|
|
18
|
+
return new ClusterImageCatalog(name, undefined, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
static __pulumiType = 'kubernetes:postgresql.cnpg.io/v1:ClusterImageCatalog';
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of ClusterImageCatalog. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj) {
|
|
27
|
+
if (obj === undefined || obj === null) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
return obj['__pulumiType'] === ClusterImageCatalog.__pulumiType;
|
|
31
|
+
}
|
|
32
|
+
apiVersion;
|
|
33
|
+
kind;
|
|
34
|
+
metadata;
|
|
35
|
+
/**
|
|
36
|
+
* Specification of the desired behavior of the ClusterImageCatalog.
|
|
37
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
38
|
+
*/
|
|
39
|
+
spec;
|
|
40
|
+
/**
|
|
41
|
+
* Create a ClusterImageCatalog resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name, args, opts) {
|
|
48
|
+
let resourceInputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (!opts.id) {
|
|
51
|
+
resourceInputs["apiVersion"] = "postgresql.cnpg.io/v1";
|
|
52
|
+
resourceInputs["kind"] = "ClusterImageCatalog";
|
|
53
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
54
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
61
|
+
}
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
63
|
+
super(ClusterImageCatalog.__pulumiType, name, resourceInputs, opts);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../../types/input";
|
|
3
|
+
import * as outputs from "../../types/output";
|
|
4
|
+
import { ObjectMeta } from "../../meta/v1";
|
|
5
|
+
/**
|
|
6
|
+
* ImageCatalog is the Schema for the imagecatalogs API
|
|
7
|
+
*/
|
|
8
|
+
export declare class ImageCatalog extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ImageCatalog resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ImageCatalog;
|
|
18
|
+
/** @internal */
|
|
19
|
+
static readonly __pulumiType = "kubernetes:postgresql.cnpg.io/v1:ImageCatalog";
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of ImageCatalog. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj: any): obj is ImageCatalog;
|
|
25
|
+
readonly apiVersion: pulumi.Output<"postgresql.cnpg.io/v1" | undefined>;
|
|
26
|
+
readonly kind: pulumi.Output<"ImageCatalog" | undefined>;
|
|
27
|
+
readonly metadata: pulumi.Output<ObjectMeta>;
|
|
28
|
+
/**
|
|
29
|
+
* Specification of the desired behavior of the ImageCatalog.
|
|
30
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
31
|
+
*/
|
|
32
|
+
readonly spec: pulumi.Output<outputs.postgresql.v1.ImageCatalogSpec>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a ImageCatalog resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name: string, args?: ImageCatalogArgs, opts?: pulumi.CustomResourceOptions);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The set of arguments for constructing a ImageCatalog resource.
|
|
44
|
+
*/
|
|
45
|
+
export interface ImageCatalogArgs {
|
|
46
|
+
apiVersion?: pulumi.Input<"postgresql.cnpg.io/v1">;
|
|
47
|
+
kind?: pulumi.Input<"ImageCatalog">;
|
|
48
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
|
49
|
+
/**
|
|
50
|
+
* Specification of the desired behavior of the ImageCatalog.
|
|
51
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
52
|
+
*/
|
|
53
|
+
spec?: pulumi.Input<inputs.postgresql.v1.ImageCatalogSpecArgs>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by crd2pulumi. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
4
|
+
import * as utilities from "../../utilities";
|
|
5
|
+
/**
|
|
6
|
+
* ImageCatalog is the Schema for the imagecatalogs API
|
|
7
|
+
*/
|
|
8
|
+
export class ImageCatalog extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ImageCatalog resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name, id, opts) {
|
|
18
|
+
return new ImageCatalog(name, undefined, { ...opts, id: id });
|
|
19
|
+
}
|
|
20
|
+
/** @internal */
|
|
21
|
+
static __pulumiType = 'kubernetes:postgresql.cnpg.io/v1:ImageCatalog';
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of ImageCatalog. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj) {
|
|
27
|
+
if (obj === undefined || obj === null) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
return obj['__pulumiType'] === ImageCatalog.__pulumiType;
|
|
31
|
+
}
|
|
32
|
+
apiVersion;
|
|
33
|
+
kind;
|
|
34
|
+
metadata;
|
|
35
|
+
/**
|
|
36
|
+
* Specification of the desired behavior of the ImageCatalog.
|
|
37
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
38
|
+
*/
|
|
39
|
+
spec;
|
|
40
|
+
/**
|
|
41
|
+
* Create a ImageCatalog resource with the given unique name, arguments, and options.
|
|
42
|
+
*
|
|
43
|
+
* @param name The _unique_ name of the resource.
|
|
44
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
45
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
46
|
+
*/
|
|
47
|
+
constructor(name, args, opts) {
|
|
48
|
+
let resourceInputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (!opts.id) {
|
|
51
|
+
resourceInputs["apiVersion"] = "postgresql.cnpg.io/v1";
|
|
52
|
+
resourceInputs["kind"] = "ImageCatalog";
|
|
53
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
54
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
58
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
59
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
60
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
61
|
+
}
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
63
|
+
super(ImageCatalog.__pulumiType, name, resourceInputs, opts);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { BackupArgs } from "./backup";
|
|
2
|
+
export type Backup = import("./backup").Backup;
|
|
3
|
+
export declare const Backup: typeof import("./backup").Backup;
|
|
4
|
+
export { ClusterArgs } from "./cluster";
|
|
5
|
+
export type Cluster = import("./cluster").Cluster;
|
|
6
|
+
export declare const Cluster: typeof import("./cluster").Cluster;
|
|
7
|
+
export { ClusterImageCatalogArgs } from "./clusterImageCatalog";
|
|
8
|
+
export type ClusterImageCatalog = import("./clusterImageCatalog").ClusterImageCatalog;
|
|
9
|
+
export declare const ClusterImageCatalog: typeof import("./clusterImageCatalog").ClusterImageCatalog;
|
|
10
|
+
export { ImageCatalogArgs } from "./imageCatalog";
|
|
11
|
+
export type ImageCatalog = import("./imageCatalog").ImageCatalog;
|
|
12
|
+
export declare const ImageCatalog: typeof import("./imageCatalog").ImageCatalog;
|
|
13
|
+
export { PoolerArgs } from "./pooler";
|
|
14
|
+
export type Pooler = import("./pooler").Pooler;
|
|
15
|
+
export declare const Pooler: typeof import("./pooler").Pooler;
|
|
16
|
+
export { ScheduledBackupArgs } from "./scheduledBackup";
|
|
17
|
+
export type ScheduledBackup = import("./scheduledBackup").ScheduledBackup;
|
|
18
|
+
export declare const ScheduledBackup: typeof import("./scheduledBackup").ScheduledBackup;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by crd2pulumi. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
4
|
+
import * as utilities from "../../utilities";
|
|
5
|
+
export const Backup = null;
|
|
6
|
+
utilities.lazyLoad(exports, ["Backup"], () => require("./backup"));
|
|
7
|
+
export const Cluster = null;
|
|
8
|
+
utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
|
|
9
|
+
export const ClusterImageCatalog = null;
|
|
10
|
+
utilities.lazyLoad(exports, ["ClusterImageCatalog"], () => require("./clusterImageCatalog"));
|
|
11
|
+
export const ImageCatalog = null;
|
|
12
|
+
utilities.lazyLoad(exports, ["ImageCatalog"], () => require("./imageCatalog"));
|
|
13
|
+
export const Pooler = null;
|
|
14
|
+
utilities.lazyLoad(exports, ["Pooler"], () => require("./pooler"));
|
|
15
|
+
export const ScheduledBackup = null;
|
|
16
|
+
utilities.lazyLoad(exports, ["ScheduledBackup"], () => require("./scheduledBackup"));
|
|
17
|
+
const _module = {
|
|
18
|
+
version: utilities.getVersion(),
|
|
19
|
+
construct: (name, type, urn) => {
|
|
20
|
+
switch (type) {
|
|
21
|
+
case "kubernetes:postgresql.cnpg.io/v1:Backup":
|
|
22
|
+
return new Backup(name, undefined, { urn });
|
|
23
|
+
case "kubernetes:postgresql.cnpg.io/v1:Cluster":
|
|
24
|
+
return new Cluster(name, undefined, { urn });
|
|
25
|
+
case "kubernetes:postgresql.cnpg.io/v1:ClusterImageCatalog":
|
|
26
|
+
return new ClusterImageCatalog(name, undefined, { urn });
|
|
27
|
+
case "kubernetes:postgresql.cnpg.io/v1:ImageCatalog":
|
|
28
|
+
return new ImageCatalog(name, undefined, { urn });
|
|
29
|
+
case "kubernetes:postgresql.cnpg.io/v1:Pooler":
|
|
30
|
+
return new Pooler(name, undefined, { urn });
|
|
31
|
+
case "kubernetes:postgresql.cnpg.io/v1:ScheduledBackup":
|
|
32
|
+
return new ScheduledBackup(name, undefined, { urn });
|
|
33
|
+
default:
|
|
34
|
+
throw new Error(`unknown resource type ${type}`);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
pulumi.runtime.registerResourceModule("pulumi-k8s-crds", "postgresql.cnpg.io/v1", _module);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../../types/input";
|
|
3
|
+
import * as outputs from "../../types/output";
|
|
4
|
+
import { ObjectMeta } from "../../meta/v1";
|
|
5
|
+
/**
|
|
6
|
+
* Pooler is the Schema for the poolers API
|
|
7
|
+
*/
|
|
8
|
+
export declare class Pooler extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Pooler resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Pooler;
|
|
18
|
+
/** @internal */
|
|
19
|
+
static readonly __pulumiType = "kubernetes:postgresql.cnpg.io/v1:Pooler";
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of Pooler. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj: any): obj is Pooler;
|
|
25
|
+
readonly apiVersion: pulumi.Output<"postgresql.cnpg.io/v1" | undefined>;
|
|
26
|
+
readonly kind: pulumi.Output<"Pooler" | undefined>;
|
|
27
|
+
readonly metadata: pulumi.Output<ObjectMeta>;
|
|
28
|
+
/**
|
|
29
|
+
* Specification of the desired behavior of the Pooler.
|
|
30
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
31
|
+
*/
|
|
32
|
+
readonly spec: pulumi.Output<outputs.postgresql.v1.PoolerSpec>;
|
|
33
|
+
/**
|
|
34
|
+
* Most recently observed status of the Pooler. This data may not be up to
|
|
35
|
+
* date. Populated by the system. Read-only.
|
|
36
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
37
|
+
*/
|
|
38
|
+
readonly status: pulumi.Output<outputs.postgresql.v1.PoolerStatus | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a Pooler resource with the given unique name, arguments, and options.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resource.
|
|
43
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
44
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
45
|
+
*/
|
|
46
|
+
constructor(name: string, args?: PoolerArgs, opts?: pulumi.CustomResourceOptions);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The set of arguments for constructing a Pooler resource.
|
|
50
|
+
*/
|
|
51
|
+
export interface PoolerArgs {
|
|
52
|
+
apiVersion?: pulumi.Input<"postgresql.cnpg.io/v1">;
|
|
53
|
+
kind?: pulumi.Input<"Pooler">;
|
|
54
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
|
55
|
+
/**
|
|
56
|
+
* Specification of the desired behavior of the Pooler.
|
|
57
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
58
|
+
*/
|
|
59
|
+
spec?: pulumi.Input<inputs.postgresql.v1.PoolerSpecArgs>;
|
|
60
|
+
/**
|
|
61
|
+
* Most recently observed status of the Pooler. This data may not be up to
|
|
62
|
+
* date. Populated by the system. Read-only.
|
|
63
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
64
|
+
*/
|
|
65
|
+
status?: pulumi.Input<inputs.postgresql.v1.PoolerStatusArgs>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by crd2pulumi. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
4
|
+
import * as inputs from "../../types/input";
|
|
5
|
+
import * as utilities from "../../utilities";
|
|
6
|
+
/**
|
|
7
|
+
* Pooler is the Schema for the poolers API
|
|
8
|
+
*/
|
|
9
|
+
export class Pooler extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing Pooler resource's state with the given name, ID, and optional extra
|
|
12
|
+
* properties used to qualify the lookup.
|
|
13
|
+
*
|
|
14
|
+
* @param name The _unique_ name of the resulting resource.
|
|
15
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, opts) {
|
|
19
|
+
return new Pooler(name, undefined, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/** @internal */
|
|
22
|
+
static __pulumiType = 'kubernetes:postgresql.cnpg.io/v1:Pooler';
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the given object is an instance of Pooler. This is designed to work even
|
|
25
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
26
|
+
*/
|
|
27
|
+
static isInstance(obj) {
|
|
28
|
+
if (obj === undefined || obj === null) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return obj['__pulumiType'] === Pooler.__pulumiType;
|
|
32
|
+
}
|
|
33
|
+
apiVersion;
|
|
34
|
+
kind;
|
|
35
|
+
metadata;
|
|
36
|
+
/**
|
|
37
|
+
* Specification of the desired behavior of the Pooler.
|
|
38
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
39
|
+
*/
|
|
40
|
+
spec;
|
|
41
|
+
/**
|
|
42
|
+
* Most recently observed status of the Pooler. This data may not be up to
|
|
43
|
+
* date. Populated by the system. Read-only.
|
|
44
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
45
|
+
*/
|
|
46
|
+
status;
|
|
47
|
+
/**
|
|
48
|
+
* Create a Pooler resource with the given unique name, arguments, and options.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resource.
|
|
51
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
52
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
53
|
+
*/
|
|
54
|
+
constructor(name, args, opts) {
|
|
55
|
+
let resourceInputs = {};
|
|
56
|
+
opts = opts || {};
|
|
57
|
+
if (!opts.id) {
|
|
58
|
+
resourceInputs["apiVersion"] = "postgresql.cnpg.io/v1";
|
|
59
|
+
resourceInputs["kind"] = "Pooler";
|
|
60
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
61
|
+
resourceInputs["spec"] = args ? (args.spec ? pulumi.output(args.spec).apply(inputs.postgresql.v1.poolerSpecArgsProvideDefaults) : undefined) : undefined;
|
|
62
|
+
resourceInputs["status"] = args ? args.status : undefined;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(Pooler.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../../types/input";
|
|
3
|
+
import * as outputs from "../../types/output";
|
|
4
|
+
import { ObjectMeta } from "../../meta/v1";
|
|
5
|
+
/**
|
|
6
|
+
* ScheduledBackup is the Schema for the scheduledbackups API
|
|
7
|
+
*/
|
|
8
|
+
export declare class ScheduledBackup extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ScheduledBackup resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ScheduledBackup;
|
|
18
|
+
/** @internal */
|
|
19
|
+
static readonly __pulumiType = "kubernetes:postgresql.cnpg.io/v1:ScheduledBackup";
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of ScheduledBackup. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj: any): obj is ScheduledBackup;
|
|
25
|
+
readonly apiVersion: pulumi.Output<"postgresql.cnpg.io/v1" | undefined>;
|
|
26
|
+
readonly kind: pulumi.Output<"ScheduledBackup" | undefined>;
|
|
27
|
+
readonly metadata: pulumi.Output<ObjectMeta>;
|
|
28
|
+
/**
|
|
29
|
+
* Specification of the desired behavior of the ScheduledBackup.
|
|
30
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
31
|
+
*/
|
|
32
|
+
readonly spec: pulumi.Output<outputs.postgresql.v1.ScheduledBackupSpec>;
|
|
33
|
+
/**
|
|
34
|
+
* Most recently observed status of the ScheduledBackup. This data may not be up
|
|
35
|
+
* to date. Populated by the system. Read-only.
|
|
36
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
37
|
+
*/
|
|
38
|
+
readonly status: pulumi.Output<outputs.postgresql.v1.ScheduledBackupStatus | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a ScheduledBackup resource with the given unique name, arguments, and options.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resource.
|
|
43
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
44
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
45
|
+
*/
|
|
46
|
+
constructor(name: string, args?: ScheduledBackupArgs, opts?: pulumi.CustomResourceOptions);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The set of arguments for constructing a ScheduledBackup resource.
|
|
50
|
+
*/
|
|
51
|
+
export interface ScheduledBackupArgs {
|
|
52
|
+
apiVersion?: pulumi.Input<"postgresql.cnpg.io/v1">;
|
|
53
|
+
kind?: pulumi.Input<"ScheduledBackup">;
|
|
54
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
|
55
|
+
/**
|
|
56
|
+
* Specification of the desired behavior of the ScheduledBackup.
|
|
57
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
58
|
+
*/
|
|
59
|
+
spec?: pulumi.Input<inputs.postgresql.v1.ScheduledBackupSpecArgs>;
|
|
60
|
+
/**
|
|
61
|
+
* Most recently observed status of the ScheduledBackup. This data may not be up
|
|
62
|
+
* to date. Populated by the system. Read-only.
|
|
63
|
+
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
64
|
+
*/
|
|
65
|
+
status?: pulumi.Input<inputs.postgresql.v1.ScheduledBackupStatusArgs>;
|
|
66
|
+
}
|