@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.
Files changed (42) hide show
  1. package/README.md +1 -0
  2. package/dist/argoproj/index.d.ts +2 -0
  3. package/dist/argoproj/index.js +5 -0
  4. package/dist/argoproj/v1alpha1/appProject.d.ts +65 -0
  5. package/dist/argoproj/v1alpha1/appProject.js +75 -0
  6. package/dist/argoproj/v1alpha1/application.d.ts +68 -0
  7. package/dist/argoproj/v1alpha1/application.js +76 -0
  8. package/dist/argoproj/v1alpha1/applicationSet.d.ts +45 -0
  9. package/dist/argoproj/v1alpha1/applicationSet.js +61 -0
  10. package/dist/argoproj/v1alpha1/index.d.ts +9 -0
  11. package/dist/argoproj/v1alpha1/index.js +26 -0
  12. package/dist/index.d.ts +7 -0
  13. package/dist/index.js +20 -0
  14. package/dist/meta/v1.d.ts +2 -0
  15. package/dist/meta/v1.js +1 -0
  16. package/dist/postgresql/index.d.ts +2 -0
  17. package/dist/postgresql/index.js +5 -0
  18. package/dist/postgresql/v1/backup.d.ts +66 -0
  19. package/dist/postgresql/v1/backup.js +74 -0
  20. package/dist/postgresql/v1/cluster.d.ts +66 -0
  21. package/dist/postgresql/v1/cluster.js +74 -0
  22. package/dist/postgresql/v1/clusterImageCatalog.d.ts +54 -0
  23. package/dist/postgresql/v1/clusterImageCatalog.js +65 -0
  24. package/dist/postgresql/v1/imageCatalog.d.ts +54 -0
  25. package/dist/postgresql/v1/imageCatalog.js +65 -0
  26. package/dist/postgresql/v1/index.d.ts +18 -0
  27. package/dist/postgresql/v1/index.js +38 -0
  28. package/dist/postgresql/v1/pooler.d.ts +66 -0
  29. package/dist/postgresql/v1/pooler.js +74 -0
  30. package/dist/postgresql/v1/scheduledBackup.d.ts +66 -0
  31. package/dist/postgresql/v1/scheduledBackup.js +74 -0
  32. package/dist/provider.d.ts +23 -0
  33. package/dist/provider.js +33 -0
  34. package/dist/types/index.d.ts +3 -0
  35. package/dist/types/index.js +6 -0
  36. package/dist/types/input.d.ts +28919 -0
  37. package/dist/types/input.js +990 -0
  38. package/dist/types/output.d.ts +28918 -0
  39. package/dist/types/output.js +989 -0
  40. package/dist/utilities.d.ts +12 -0
  41. package/dist/utilities.js +80 -0
  42. package/package.json +56 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @kilic.dev/pulumi-k8s-crds
@@ -0,0 +1,2 @@
1
+ import * as v1alpha1 from "./v1alpha1";
2
+ export { v1alpha1, };
@@ -0,0 +1,5 @@
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
+ // Export sub-modules:
4
+ import * as v1alpha1 from "./v1alpha1";
5
+ export { v1alpha1, };
@@ -0,0 +1,65 @@
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
+ * AppProject provides a logical grouping of applications, providing controls for:
7
+ * * where the apps may deploy to (cluster whitelist)
8
+ * * what may be deployed (repository whitelist, resource whitelist/blacklist)
9
+ * * who can access these applications (roles, OIDC group claims bindings)
10
+ * * and what they can do (RBAC policies)
11
+ * * automation access to these roles (JWT tokens)
12
+ */
13
+ export declare class AppProject extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing AppProject resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param opts Optional settings to control the behavior of the CustomResource.
21
+ */
22
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): AppProject;
23
+ /** @internal */
24
+ static readonly __pulumiType = "kubernetes:argoproj.io/v1alpha1:AppProject";
25
+ /**
26
+ * Returns true if the given object is an instance of AppProject. This is designed to work even
27
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
28
+ */
29
+ static isInstance(obj: any): obj is AppProject;
30
+ readonly apiVersion: pulumi.Output<"argoproj.io/v1alpha1" | undefined>;
31
+ readonly kind: pulumi.Output<"AppProject" | undefined>;
32
+ readonly metadata: pulumi.Output<ObjectMeta>;
33
+ /**
34
+ * AppProjectSpec is the specification of an AppProject
35
+ */
36
+ readonly spec: pulumi.Output<outputs.argoproj.v1alpha1.AppProjectSpec>;
37
+ /**
38
+ * AppProjectStatus contains status information for AppProject CRs
39
+ */
40
+ readonly status: pulumi.Output<outputs.argoproj.v1alpha1.AppProjectStatus | undefined>;
41
+ /**
42
+ * Create a AppProject resource with the given unique name, arguments, and options.
43
+ *
44
+ * @param name The _unique_ name of the resource.
45
+ * @param args The arguments to use to populate this resource's properties.
46
+ * @param opts A bag of options that control this resource's behavior.
47
+ */
48
+ constructor(name: string, args?: AppProjectArgs, opts?: pulumi.CustomResourceOptions);
49
+ }
50
+ /**
51
+ * The set of arguments for constructing a AppProject resource.
52
+ */
53
+ export interface AppProjectArgs {
54
+ apiVersion?: pulumi.Input<"argoproj.io/v1alpha1">;
55
+ kind?: pulumi.Input<"AppProject">;
56
+ metadata?: pulumi.Input<ObjectMeta>;
57
+ /**
58
+ * AppProjectSpec is the specification of an AppProject
59
+ */
60
+ spec?: pulumi.Input<inputs.argoproj.v1alpha1.AppProjectSpecArgs>;
61
+ /**
62
+ * AppProjectStatus contains status information for AppProject CRs
63
+ */
64
+ status?: pulumi.Input<inputs.argoproj.v1alpha1.AppProjectStatusArgs>;
65
+ }
@@ -0,0 +1,75 @@
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
+ * AppProject provides a logical grouping of applications, providing controls for:
7
+ * * where the apps may deploy to (cluster whitelist)
8
+ * * what may be deployed (repository whitelist, resource whitelist/blacklist)
9
+ * * who can access these applications (roles, OIDC group claims bindings)
10
+ * * and what they can do (RBAC policies)
11
+ * * automation access to these roles (JWT tokens)
12
+ */
13
+ export class AppProject extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing AppProject resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param opts Optional settings to control the behavior of the CustomResource.
21
+ */
22
+ static get(name, id, opts) {
23
+ return new AppProject(name, undefined, { ...opts, id: id });
24
+ }
25
+ /** @internal */
26
+ static __pulumiType = 'kubernetes:argoproj.io/v1alpha1:AppProject';
27
+ /**
28
+ * Returns true if the given object is an instance of AppProject. This is designed to work even
29
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
30
+ */
31
+ static isInstance(obj) {
32
+ if (obj === undefined || obj === null) {
33
+ return false;
34
+ }
35
+ return obj['__pulumiType'] === AppProject.__pulumiType;
36
+ }
37
+ apiVersion;
38
+ kind;
39
+ metadata;
40
+ /**
41
+ * AppProjectSpec is the specification of an AppProject
42
+ */
43
+ spec;
44
+ /**
45
+ * AppProjectStatus contains status information for AppProject CRs
46
+ */
47
+ status;
48
+ /**
49
+ * Create a AppProject resource with the given unique name, arguments, and options.
50
+ *
51
+ * @param name The _unique_ name of the resource.
52
+ * @param args The arguments to use to populate this resource's properties.
53
+ * @param opts A bag of options that control this resource's behavior.
54
+ */
55
+ constructor(name, args, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (!opts.id) {
59
+ resourceInputs["apiVersion"] = "argoproj.io/v1alpha1";
60
+ resourceInputs["kind"] = "AppProject";
61
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
62
+ resourceInputs["spec"] = args ? args.spec : undefined;
63
+ resourceInputs["status"] = args ? args.status : undefined;
64
+ }
65
+ else {
66
+ resourceInputs["apiVersion"] = undefined /*out*/;
67
+ resourceInputs["kind"] = undefined /*out*/;
68
+ resourceInputs["metadata"] = undefined /*out*/;
69
+ resourceInputs["spec"] = undefined /*out*/;
70
+ resourceInputs["status"] = undefined /*out*/;
71
+ }
72
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
73
+ super(AppProject.__pulumiType, name, resourceInputs, opts);
74
+ }
75
+ }
@@ -0,0 +1,68 @@
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
+ * Application is a definition of Application resource.
7
+ */
8
+ export declare class Application extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Application 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): Application;
18
+ /** @internal */
19
+ static readonly __pulumiType = "kubernetes:argoproj.io/v1alpha1:Application";
20
+ /**
21
+ * Returns true if the given object is an instance of Application. 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 Application;
25
+ readonly apiVersion: pulumi.Output<"argoproj.io/v1alpha1" | undefined>;
26
+ readonly kind: pulumi.Output<"Application" | undefined>;
27
+ readonly metadata: pulumi.Output<ObjectMeta>;
28
+ /**
29
+ * Operation contains information about a requested or running operation
30
+ */
31
+ readonly operation: pulumi.Output<outputs.argoproj.v1alpha1.ApplicationOperation | undefined>;
32
+ /**
33
+ * ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision.
34
+ */
35
+ readonly spec: pulumi.Output<outputs.argoproj.v1alpha1.ApplicationSpec>;
36
+ /**
37
+ * ApplicationStatus contains status information for the application
38
+ */
39
+ readonly status: pulumi.Output<outputs.argoproj.v1alpha1.ApplicationStatus | undefined>;
40
+ /**
41
+ * Create a Application 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: string, args?: ApplicationArgs, opts?: pulumi.CustomResourceOptions);
48
+ }
49
+ /**
50
+ * The set of arguments for constructing a Application resource.
51
+ */
52
+ export interface ApplicationArgs {
53
+ apiVersion?: pulumi.Input<"argoproj.io/v1alpha1">;
54
+ kind?: pulumi.Input<"Application">;
55
+ metadata?: pulumi.Input<ObjectMeta>;
56
+ /**
57
+ * Operation contains information about a requested or running operation
58
+ */
59
+ operation?: pulumi.Input<inputs.argoproj.v1alpha1.ApplicationOperationArgs>;
60
+ /**
61
+ * ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision.
62
+ */
63
+ spec?: pulumi.Input<inputs.argoproj.v1alpha1.ApplicationSpecArgs>;
64
+ /**
65
+ * ApplicationStatus contains status information for the application
66
+ */
67
+ status?: pulumi.Input<inputs.argoproj.v1alpha1.ApplicationStatusArgs>;
68
+ }
@@ -0,0 +1,76 @@
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
+ * Application is a definition of Application resource.
7
+ */
8
+ export class Application extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Application 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 Application(name, undefined, { ...opts, id: id });
19
+ }
20
+ /** @internal */
21
+ static __pulumiType = 'kubernetes:argoproj.io/v1alpha1:Application';
22
+ /**
23
+ * Returns true if the given object is an instance of Application. 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'] === Application.__pulumiType;
31
+ }
32
+ apiVersion;
33
+ kind;
34
+ metadata;
35
+ /**
36
+ * Operation contains information about a requested or running operation
37
+ */
38
+ operation;
39
+ /**
40
+ * ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision.
41
+ */
42
+ spec;
43
+ /**
44
+ * ApplicationStatus contains status information for the application
45
+ */
46
+ status;
47
+ /**
48
+ * Create a Application 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"] = "argoproj.io/v1alpha1";
59
+ resourceInputs["kind"] = "Application";
60
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
61
+ resourceInputs["operation"] = args ? args.operation : undefined;
62
+ resourceInputs["spec"] = args ? args.spec : undefined;
63
+ resourceInputs["status"] = args ? args.status : undefined;
64
+ }
65
+ else {
66
+ resourceInputs["apiVersion"] = undefined /*out*/;
67
+ resourceInputs["kind"] = undefined /*out*/;
68
+ resourceInputs["metadata"] = undefined /*out*/;
69
+ resourceInputs["operation"] = undefined /*out*/;
70
+ resourceInputs["spec"] = undefined /*out*/;
71
+ resourceInputs["status"] = undefined /*out*/;
72
+ }
73
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
74
+ super(Application.__pulumiType, name, resourceInputs, opts);
75
+ }
76
+ }
@@ -0,0 +1,45 @@
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
+ export declare class ApplicationSet extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing ApplicationSet resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ApplicationSet;
15
+ /** @internal */
16
+ static readonly __pulumiType = "kubernetes:argoproj.io/v1alpha1:ApplicationSet";
17
+ /**
18
+ * Returns true if the given object is an instance of ApplicationSet. This is designed to work even
19
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
20
+ */
21
+ static isInstance(obj: any): obj is ApplicationSet;
22
+ readonly apiVersion: pulumi.Output<"argoproj.io/v1alpha1" | undefined>;
23
+ readonly kind: pulumi.Output<"ApplicationSet" | undefined>;
24
+ readonly metadata: pulumi.Output<ObjectMeta>;
25
+ readonly spec: pulumi.Output<outputs.argoproj.v1alpha1.ApplicationSetSpec>;
26
+ readonly status: pulumi.Output<outputs.argoproj.v1alpha1.ApplicationSetStatus | undefined>;
27
+ /**
28
+ * Create a ApplicationSet resource with the given unique name, arguments, and options.
29
+ *
30
+ * @param name The _unique_ name of the resource.
31
+ * @param args The arguments to use to populate this resource's properties.
32
+ * @param opts A bag of options that control this resource's behavior.
33
+ */
34
+ constructor(name: string, args?: ApplicationSetArgs, opts?: pulumi.CustomResourceOptions);
35
+ }
36
+ /**
37
+ * The set of arguments for constructing a ApplicationSet resource.
38
+ */
39
+ export interface ApplicationSetArgs {
40
+ apiVersion?: pulumi.Input<"argoproj.io/v1alpha1">;
41
+ kind?: pulumi.Input<"ApplicationSet">;
42
+ metadata?: pulumi.Input<ObjectMeta>;
43
+ spec?: pulumi.Input<inputs.argoproj.v1alpha1.ApplicationSetSpecArgs>;
44
+ status?: pulumi.Input<inputs.argoproj.v1alpha1.ApplicationSetStatusArgs>;
45
+ }
@@ -0,0 +1,61 @@
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 class ApplicationSet extends pulumi.CustomResource {
6
+ /**
7
+ * Get an existing ApplicationSet resource's state with the given name, ID, and optional extra
8
+ * properties used to qualify the lookup.
9
+ *
10
+ * @param name The _unique_ name of the resulting resource.
11
+ * @param id The _unique_ provider ID of the resource to lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name, id, opts) {
15
+ return new ApplicationSet(name, undefined, { ...opts, id: id });
16
+ }
17
+ /** @internal */
18
+ static __pulumiType = 'kubernetes:argoproj.io/v1alpha1:ApplicationSet';
19
+ /**
20
+ * Returns true if the given object is an instance of ApplicationSet. This is designed to work even
21
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
22
+ */
23
+ static isInstance(obj) {
24
+ if (obj === undefined || obj === null) {
25
+ return false;
26
+ }
27
+ return obj['__pulumiType'] === ApplicationSet.__pulumiType;
28
+ }
29
+ apiVersion;
30
+ kind;
31
+ metadata;
32
+ spec;
33
+ status;
34
+ /**
35
+ * Create a ApplicationSet resource with the given unique name, arguments, and options.
36
+ *
37
+ * @param name The _unique_ name of the resource.
38
+ * @param args The arguments to use to populate this resource's properties.
39
+ * @param opts A bag of options that control this resource's behavior.
40
+ */
41
+ constructor(name, args, opts) {
42
+ let resourceInputs = {};
43
+ opts = opts || {};
44
+ if (!opts.id) {
45
+ resourceInputs["apiVersion"] = "argoproj.io/v1alpha1";
46
+ resourceInputs["kind"] = "ApplicationSet";
47
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
48
+ resourceInputs["spec"] = args ? args.spec : undefined;
49
+ resourceInputs["status"] = args ? args.status : undefined;
50
+ }
51
+ else {
52
+ resourceInputs["apiVersion"] = undefined /*out*/;
53
+ resourceInputs["kind"] = undefined /*out*/;
54
+ resourceInputs["metadata"] = undefined /*out*/;
55
+ resourceInputs["spec"] = undefined /*out*/;
56
+ resourceInputs["status"] = undefined /*out*/;
57
+ }
58
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
59
+ super(ApplicationSet.__pulumiType, name, resourceInputs, opts);
60
+ }
61
+ }
@@ -0,0 +1,9 @@
1
+ export { AppProjectArgs } from "./appProject";
2
+ export type AppProject = import("./appProject").AppProject;
3
+ export declare const AppProject: typeof import("./appProject").AppProject;
4
+ export { ApplicationArgs } from "./application";
5
+ export type Application = import("./application").Application;
6
+ export declare const Application: typeof import("./application").Application;
7
+ export { ApplicationSetArgs } from "./applicationSet";
8
+ export type ApplicationSet = import("./applicationSet").ApplicationSet;
9
+ export declare const ApplicationSet: typeof import("./applicationSet").ApplicationSet;
@@ -0,0 +1,26 @@
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 AppProject = null;
6
+ utilities.lazyLoad(exports, ["AppProject"], () => require("./appProject"));
7
+ export const Application = null;
8
+ utilities.lazyLoad(exports, ["Application"], () => require("./application"));
9
+ export const ApplicationSet = null;
10
+ utilities.lazyLoad(exports, ["ApplicationSet"], () => require("./applicationSet"));
11
+ const _module = {
12
+ version: utilities.getVersion(),
13
+ construct: (name, type, urn) => {
14
+ switch (type) {
15
+ case "kubernetes:argoproj.io/v1alpha1:AppProject":
16
+ return new AppProject(name, undefined, { urn });
17
+ case "kubernetes:argoproj.io/v1alpha1:Application":
18
+ return new Application(name, undefined, { urn });
19
+ case "kubernetes:argoproj.io/v1alpha1:ApplicationSet":
20
+ return new ApplicationSet(name, undefined, { urn });
21
+ default:
22
+ throw new Error(`unknown resource type ${type}`);
23
+ }
24
+ },
25
+ };
26
+ pulumi.runtime.registerResourceModule("pulumi-k8s-crds", "argoproj.io/v1alpha1", _module);
@@ -0,0 +1,7 @@
1
+ export { ProviderArgs } from "./provider";
2
+ export type Provider = import("./provider").Provider;
3
+ export declare const Provider: typeof import("./provider").Provider;
4
+ import * as argoproj from "./argoproj";
5
+ import * as postgresql from "./postgresql";
6
+ import * as types from "./types";
7
+ export { argoproj, postgresql, types, };
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
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 Provider = null;
6
+ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
7
+ // Export sub-modules:
8
+ import * as argoproj from "./argoproj";
9
+ import * as postgresql from "./postgresql";
10
+ import * as types from "./types";
11
+ export { argoproj, postgresql, types, };
12
+ pulumi.runtime.registerResourcePackage("pulumi-k8s-crds", {
13
+ version: utilities.getVersion(),
14
+ constructProvider: (name, type, urn) => {
15
+ if (type !== "pulumi:providers:crds") {
16
+ throw new Error(`unknown provider type ${type}`);
17
+ }
18
+ return new Provider(name, undefined, { urn });
19
+ },
20
+ });
@@ -0,0 +1,2 @@
1
+ import * as k8s from "@pulumi/kubernetes";
2
+ export type ObjectMeta = k8s.types.input.meta.v1.ObjectMeta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import * as v1 from "./v1";
2
+ export { v1, };
@@ -0,0 +1,5 @@
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
+ // Export sub-modules:
4
+ import * as v1 from "./v1";
5
+ export { v1, };
@@ -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
+ * Backup is the Schema for the backups API
7
+ */
8
+ export declare class Backup extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Backup 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): Backup;
18
+ /** @internal */
19
+ static readonly __pulumiType = "kubernetes:postgresql.cnpg.io/v1:Backup";
20
+ /**
21
+ * Returns true if the given object is an instance of Backup. 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 Backup;
25
+ readonly apiVersion: pulumi.Output<"postgresql.cnpg.io/v1" | undefined>;
26
+ readonly kind: pulumi.Output<"Backup" | undefined>;
27
+ readonly metadata: pulumi.Output<ObjectMeta>;
28
+ /**
29
+ * Specification of the desired behavior of the backup.
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.BackupSpec>;
33
+ /**
34
+ * Most recently observed status of the backup. 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.BackupStatus | undefined>;
39
+ /**
40
+ * Create a Backup 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?: BackupArgs, opts?: pulumi.CustomResourceOptions);
47
+ }
48
+ /**
49
+ * The set of arguments for constructing a Backup resource.
50
+ */
51
+ export interface BackupArgs {
52
+ apiVersion?: pulumi.Input<"postgresql.cnpg.io/v1">;
53
+ kind?: pulumi.Input<"Backup">;
54
+ metadata?: pulumi.Input<ObjectMeta>;
55
+ /**
56
+ * Specification of the desired behavior of the backup.
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.BackupSpecArgs>;
60
+ /**
61
+ * Most recently observed status of the backup. 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.BackupStatusArgs>;
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
+ * Backup is the Schema for the backups API
8
+ */
9
+ export class Backup extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing Backup 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 Backup(name, undefined, { ...opts, id: id });
20
+ }
21
+ /** @internal */
22
+ static __pulumiType = 'kubernetes:postgresql.cnpg.io/v1:Backup';
23
+ /**
24
+ * Returns true if the given object is an instance of Backup. 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'] === Backup.__pulumiType;
32
+ }
33
+ apiVersion;
34
+ kind;
35
+ metadata;
36
+ /**
37
+ * Specification of the desired behavior of the backup.
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 backup. 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 Backup 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"] = "Backup";
60
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
61
+ resourceInputs["spec"] = args ? (args.spec ? pulumi.output(args.spec).apply(inputs.postgresql.v1.backupSpecArgsProvideDefaults) : 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(Backup.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ }