@mcpg-dev/pulumi-crds 0.1.0-beta.8
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/.gitattributes +1 -0
- package/.github/ISSUE_TEMPLATE/config.yml +8 -0
- package/.github/workflows/ci.yml +29 -0
- package/.github/workflows/release.yml +18 -0
- package/CONTRIBUTING.md +24 -0
- package/README.md +63 -0
- package/bin/index.d.ts +7 -0
- package/bin/index.d.ts.map +1 -0
- package/bin/index.js +47 -0
- package/bin/index.js.map +1 -0
- package/bin/mcpg/index.d.ts +3 -0
- package/bin/mcpg/index.d.ts.map +1 -0
- package/bin/mcpg/index.js +32 -0
- package/bin/mcpg/index.js.map +1 -0
- package/bin/mcpg/v1alpha1/index.d.ts +73 -0
- package/bin/mcpg/v1alpha1/index.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/index.js +137 -0
- package/bin/mcpg/v1alpha1/index.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgcluster.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpgcluster.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgcluster.js +87 -0
- package/bin/mcpg/v1alpha1/mcpgcluster.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgclusterList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpgclusterList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgclusterList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpgclusterList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgclusterPatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpgclusterPatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgclusterPatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpgclusterPatch.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpggateway.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpggateway.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpggateway.js +87 -0
- package/bin/mcpg/v1alpha1/mcpggateway.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpggatewayList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpggatewayList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpggatewayList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpggatewayList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpggatewayPatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpggatewayPatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpggatewayPatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpggatewayPatch.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgplugin.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpgplugin.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgplugin.js +87 -0
- package/bin/mcpg/v1alpha1/mcpgplugin.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpgpluginList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpgpluginList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirror.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirror.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirror.js +87 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirror.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginPatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpgpluginPatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginPatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpgpluginPatch.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSet.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSet.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSet.js +87 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSet.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationList.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationList.js +87 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgroute.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpgroute.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgroute.js +87 -0
- package/bin/mcpg/v1alpha1/mcpgroute.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrouteList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpgrouteList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgrouteList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpgrouteList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgroutePatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpgroutePatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgroutePatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpgroutePatch.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgtenant.d.ts +63 -0
- package/bin/mcpg/v1alpha1/mcpgtenant.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgtenant.js +87 -0
- package/bin/mcpg/v1alpha1/mcpgtenant.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgtenantList.d.ts +68 -0
- package/bin/mcpg/v1alpha1/mcpgtenantList.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgtenantList.js +88 -0
- package/bin/mcpg/v1alpha1/mcpgtenantList.js.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgtenantPatch.d.ts +69 -0
- package/bin/mcpg/v1alpha1/mcpgtenantPatch.d.ts.map +1 -0
- package/bin/mcpg/v1alpha1/mcpgtenantPatch.js +93 -0
- package/bin/mcpg/v1alpha1/mcpgtenantPatch.js.map +1 -0
- package/bin/package.json +36 -0
- package/bin/provider.d.ts +22 -0
- package/bin/provider.d.ts.map +1 -0
- package/bin/provider.js +61 -0
- package/bin/provider.js.map +1 -0
- package/bin/types/index.d.ts +4 -0
- package/bin/types/index.d.ts.map +1 -0
- package/bin/types/index.js +34 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +2965 -0
- package/bin/types/input.d.ts.map +1 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +3538 -0
- package/bin/types/output.d.ts.map +1 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +5 -0
- package/bin/utilities.d.ts.map +1 -0
- package/bin/utilities.js +115 -0
- package/bin/utilities.js.map +1 -0
- package/index.ts +30 -0
- package/mcpg/index.ts +11 -0
- package/mcpg/v1alpha1/index.ts +186 -0
- package/mcpg/v1alpha1/mcpgcluster.ts +99 -0
- package/mcpg/v1alpha1/mcpgclusterList.ts +105 -0
- package/mcpg/v1alpha1/mcpgclusterPatch.ts +105 -0
- package/mcpg/v1alpha1/mcpggateway.ts +99 -0
- package/mcpg/v1alpha1/mcpggatewayList.ts +105 -0
- package/mcpg/v1alpha1/mcpggatewayPatch.ts +105 -0
- package/mcpg/v1alpha1/mcpgplugin.ts +99 -0
- package/mcpg/v1alpha1/mcpgpluginList.ts +105 -0
- package/mcpg/v1alpha1/mcpgpluginMirror.ts +99 -0
- package/mcpg/v1alpha1/mcpgpluginMirrorList.ts +105 -0
- package/mcpg/v1alpha1/mcpgpluginMirrorPatch.ts +105 -0
- package/mcpg/v1alpha1/mcpgpluginPatch.ts +105 -0
- package/mcpg/v1alpha1/mcpgpluginSet.ts +99 -0
- package/mcpg/v1alpha1/mcpgpluginSetList.ts +105 -0
- package/mcpg/v1alpha1/mcpgpluginSetPatch.ts +105 -0
- package/mcpg/v1alpha1/mcpgrevocationList.ts +99 -0
- package/mcpg/v1alpha1/mcpgrevocationListList.ts +105 -0
- package/mcpg/v1alpha1/mcpgrevocationListPatch.ts +105 -0
- package/mcpg/v1alpha1/mcpgroute.ts +99 -0
- package/mcpg/v1alpha1/mcpgrouteList.ts +105 -0
- package/mcpg/v1alpha1/mcpgroutePatch.ts +105 -0
- package/mcpg/v1alpha1/mcpgtenant.ts +99 -0
- package/mcpg/v1alpha1/mcpgtenantList.ts +105 -0
- package/mcpg/v1alpha1/mcpgtenantPatch.ts +105 -0
- package/meta/v1.ts +4 -0
- package/package.json +36 -0
- package/provider.ts +44 -0
- package/scripts/postinstall.js +20 -0
- package/tsconfig.json +55 -0
- package/types/index.ts +13 -0
- package/types/input.ts +3030 -0
- package/types/output.ts +3622 -0
- package/utilities.ts +98 -0
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "../../types/input";
|
|
6
|
+
import * as outputs from "../../types/output";
|
|
7
|
+
import * as utilities from "../../utilities";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* MCPGRouteList is a list of MCPGRoute
|
|
11
|
+
*/
|
|
12
|
+
export class MCPGRouteList extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing MCPGRouteList resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): MCPGRouteList {
|
|
22
|
+
return new MCPGRouteList(name, undefined as any, { ...opts, id: id });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
public static readonly __pulumiType = 'kubernetes:mcpg.dev/v1alpha1:MCPGRouteList';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of MCPGRouteList. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
public static isInstance(obj: any): obj is MCPGRouteList {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === MCPGRouteList.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly apiVersion: pulumi.Output<"mcpg.dev/v1alpha1">;
|
|
43
|
+
/**
|
|
44
|
+
* List of mcpgroutes. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly items: pulumi.Output<outputs.mcpg.v1alpha1.MCPGRoute[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly kind: pulumi.Output<"MCPGRouteList">;
|
|
51
|
+
/**
|
|
52
|
+
* Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly metadata: pulumi.Output<outputs.meta.v1.ListMeta>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Create a MCPGRouteList resource with the given unique name, arguments, and options.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resource.
|
|
60
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
61
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
62
|
+
*/
|
|
63
|
+
constructor(name: string, args?: MCPGRouteListArgs, opts?: pulumi.CustomResourceOptions) {
|
|
64
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
if (!opts.id) {
|
|
67
|
+
if (args?.items === undefined && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'items'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["apiVersion"] = "mcpg.dev/v1alpha1";
|
|
71
|
+
resourceInputs["items"] = args?.items;
|
|
72
|
+
resourceInputs["kind"] = "MCPGRouteList";
|
|
73
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
74
|
+
} else {
|
|
75
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["items"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
79
|
+
}
|
|
80
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
super(MCPGRouteList.__pulumiType, name, resourceInputs, opts);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The set of arguments for constructing a MCPGRouteList resource.
|
|
87
|
+
*/
|
|
88
|
+
export interface MCPGRouteListArgs {
|
|
89
|
+
/**
|
|
90
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
91
|
+
*/
|
|
92
|
+
apiVersion?: pulumi.Input<"mcpg.dev/v1alpha1" | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* List of mcpgroutes. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
|
95
|
+
*/
|
|
96
|
+
items: pulumi.Input<pulumi.Input<inputs.mcpg.v1alpha1.MCPGRoute>[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
99
|
+
*/
|
|
100
|
+
kind?: pulumi.Input<"MCPGRouteList" | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
103
|
+
*/
|
|
104
|
+
metadata?: pulumi.Input<inputs.meta.v1.ListMeta | undefined>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "../../types/input";
|
|
6
|
+
import * as outputs from "../../types/output";
|
|
7
|
+
import * as utilities from "../../utilities";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Patch resources are used to modify existing Kubernetes resources by using
|
|
11
|
+
* Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
|
|
12
|
+
* one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
|
|
13
|
+
* Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
|
|
14
|
+
* [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
|
|
15
|
+
* additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
|
|
16
|
+
* Auto-generated derived type for MCPGRouteSpec via `CustomResource`
|
|
17
|
+
*/
|
|
18
|
+
export class MCPGRoutePatch extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing MCPGRoutePatch resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): MCPGRoutePatch {
|
|
28
|
+
return new MCPGRoutePatch(name, undefined as any, { ...opts, id: id });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
public static readonly __pulumiType = 'kubernetes:mcpg.dev/v1alpha1:MCPGRoutePatch';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the given object is an instance of MCPGRoutePatch. This is designed to work even
|
|
36
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
37
|
+
*/
|
|
38
|
+
public static isInstance(obj: any): obj is MCPGRoutePatch {
|
|
39
|
+
if (obj === undefined || obj === null) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return obj['__pulumiType'] === MCPGRoutePatch.__pulumiType;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
47
|
+
*/
|
|
48
|
+
declare public readonly apiVersion: pulumi.Output<"mcpg.dev/v1alpha1">;
|
|
49
|
+
/**
|
|
50
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
51
|
+
*/
|
|
52
|
+
declare public readonly kind: pulumi.Output<"MCPGRoute">;
|
|
53
|
+
/**
|
|
54
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
55
|
+
*/
|
|
56
|
+
declare public readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMetaPatch>;
|
|
57
|
+
declare public readonly spec: pulumi.Output<outputs.mcpg.v1alpha1.MCPGRouteSpecPatch>;
|
|
58
|
+
declare public /*out*/ readonly status: pulumi.Output<outputs.mcpg.v1alpha1.MCPGRouteStatusPatch>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Create a MCPGRoutePatch resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args?: MCPGRoutePatchArgs, opts?: pulumi.CustomResourceOptions) {
|
|
68
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
if (!opts.id) {
|
|
71
|
+
resourceInputs["apiVersion"] = "mcpg.dev/v1alpha1";
|
|
72
|
+
resourceInputs["kind"] = "MCPGRoute";
|
|
73
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
74
|
+
resourceInputs["spec"] = args?.spec;
|
|
75
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
76
|
+
} else {
|
|
77
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(MCPGRoutePatch.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The set of arguments for constructing a MCPGRoutePatch resource.
|
|
90
|
+
*/
|
|
91
|
+
export interface MCPGRoutePatchArgs {
|
|
92
|
+
/**
|
|
93
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
94
|
+
*/
|
|
95
|
+
apiVersion?: pulumi.Input<"mcpg.dev/v1alpha1" | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
98
|
+
*/
|
|
99
|
+
kind?: pulumi.Input<"MCPGRoute" | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
102
|
+
*/
|
|
103
|
+
metadata?: pulumi.Input<inputs.meta.v1.ObjectMetaPatch | undefined>;
|
|
104
|
+
spec?: pulumi.Input<inputs.mcpg.v1alpha1.MCPGRouteSpecPatch | undefined>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "../../types/input";
|
|
6
|
+
import * as outputs from "../../types/output";
|
|
7
|
+
import * as utilities from "../../utilities";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Auto-generated derived type for MCPGTenantSpec via `CustomResource`
|
|
11
|
+
*/
|
|
12
|
+
export class MCPGTenant extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing MCPGTenant resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): MCPGTenant {
|
|
22
|
+
return new MCPGTenant(name, undefined as any, { ...opts, id: id });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
public static readonly __pulumiType = 'kubernetes:mcpg.dev/v1alpha1:MCPGTenant';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of MCPGTenant. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
public static isInstance(obj: any): obj is MCPGTenant {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === MCPGTenant.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly apiVersion: pulumi.Output<"mcpg.dev/v1alpha1">;
|
|
43
|
+
/**
|
|
44
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly kind: pulumi.Output<"MCPGTenant">;
|
|
47
|
+
/**
|
|
48
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMeta>;
|
|
51
|
+
declare public readonly spec: pulumi.Output<outputs.mcpg.v1alpha1.MCPGTenantSpec>;
|
|
52
|
+
declare public /*out*/ readonly status: pulumi.Output<outputs.mcpg.v1alpha1.MCPGTenantStatus>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Create a MCPGTenant resource with the given unique name, arguments, and options.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resource.
|
|
58
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
59
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
60
|
+
*/
|
|
61
|
+
constructor(name: string, args?: MCPGTenantArgs, opts?: pulumi.CustomResourceOptions) {
|
|
62
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
if (!opts.id) {
|
|
65
|
+
resourceInputs["apiVersion"] = "mcpg.dev/v1alpha1";
|
|
66
|
+
resourceInputs["kind"] = "MCPGTenant";
|
|
67
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
68
|
+
resourceInputs["spec"] = args?.spec;
|
|
69
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
70
|
+
} else {
|
|
71
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
73
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
74
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
75
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
76
|
+
}
|
|
77
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
78
|
+
super(MCPGTenant.__pulumiType, name, resourceInputs, opts);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The set of arguments for constructing a MCPGTenant resource.
|
|
84
|
+
*/
|
|
85
|
+
export interface MCPGTenantArgs {
|
|
86
|
+
/**
|
|
87
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
88
|
+
*/
|
|
89
|
+
apiVersion?: pulumi.Input<"mcpg.dev/v1alpha1" | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
92
|
+
*/
|
|
93
|
+
kind?: pulumi.Input<"MCPGTenant" | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
96
|
+
*/
|
|
97
|
+
metadata?: pulumi.Input<inputs.meta.v1.ObjectMeta | undefined>;
|
|
98
|
+
spec?: pulumi.Input<inputs.mcpg.v1alpha1.MCPGTenantSpec | undefined>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "../../types/input";
|
|
6
|
+
import * as outputs from "../../types/output";
|
|
7
|
+
import * as utilities from "../../utilities";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* MCPGTenantList is a list of MCPGTenant
|
|
11
|
+
*/
|
|
12
|
+
export class MCPGTenantList extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing MCPGTenantList resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): MCPGTenantList {
|
|
22
|
+
return new MCPGTenantList(name, undefined as any, { ...opts, id: id });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
public static readonly __pulumiType = 'kubernetes:mcpg.dev/v1alpha1:MCPGTenantList';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if the given object is an instance of MCPGTenantList. This is designed to work even
|
|
30
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
31
|
+
*/
|
|
32
|
+
public static isInstance(obj: any): obj is MCPGTenantList {
|
|
33
|
+
if (obj === undefined || obj === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return obj['__pulumiType'] === MCPGTenantList.__pulumiType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
41
|
+
*/
|
|
42
|
+
declare public readonly apiVersion: pulumi.Output<"mcpg.dev/v1alpha1">;
|
|
43
|
+
/**
|
|
44
|
+
* List of mcpgtenants. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
|
45
|
+
*/
|
|
46
|
+
declare public readonly items: pulumi.Output<outputs.mcpg.v1alpha1.MCPGTenant[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
49
|
+
*/
|
|
50
|
+
declare public readonly kind: pulumi.Output<"MCPGTenantList">;
|
|
51
|
+
/**
|
|
52
|
+
* Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
53
|
+
*/
|
|
54
|
+
declare public readonly metadata: pulumi.Output<outputs.meta.v1.ListMeta>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Create a MCPGTenantList resource with the given unique name, arguments, and options.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resource.
|
|
60
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
61
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
62
|
+
*/
|
|
63
|
+
constructor(name: string, args?: MCPGTenantListArgs, opts?: pulumi.CustomResourceOptions) {
|
|
64
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
65
|
+
opts = opts || {};
|
|
66
|
+
if (!opts.id) {
|
|
67
|
+
if (args?.items === undefined && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'items'");
|
|
69
|
+
}
|
|
70
|
+
resourceInputs["apiVersion"] = "mcpg.dev/v1alpha1";
|
|
71
|
+
resourceInputs["items"] = args?.items;
|
|
72
|
+
resourceInputs["kind"] = "MCPGTenantList";
|
|
73
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
74
|
+
} else {
|
|
75
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
76
|
+
resourceInputs["items"] = undefined /*out*/;
|
|
77
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
79
|
+
}
|
|
80
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
super(MCPGTenantList.__pulumiType, name, resourceInputs, opts);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The set of arguments for constructing a MCPGTenantList resource.
|
|
87
|
+
*/
|
|
88
|
+
export interface MCPGTenantListArgs {
|
|
89
|
+
/**
|
|
90
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
91
|
+
*/
|
|
92
|
+
apiVersion?: pulumi.Input<"mcpg.dev/v1alpha1" | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* List of mcpgtenants. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
|
95
|
+
*/
|
|
96
|
+
items: pulumi.Input<pulumi.Input<inputs.mcpg.v1alpha1.MCPGTenant>[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
99
|
+
*/
|
|
100
|
+
kind?: pulumi.Input<"MCPGTenantList" | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
103
|
+
*/
|
|
104
|
+
metadata?: pulumi.Input<inputs.meta.v1.ListMeta | undefined>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "../../types/input";
|
|
6
|
+
import * as outputs from "../../types/output";
|
|
7
|
+
import * as utilities from "../../utilities";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Patch resources are used to modify existing Kubernetes resources by using
|
|
11
|
+
* Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
|
|
12
|
+
* one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
|
|
13
|
+
* Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
|
|
14
|
+
* [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
|
|
15
|
+
* additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
|
|
16
|
+
* Auto-generated derived type for MCPGTenantSpec via `CustomResource`
|
|
17
|
+
*/
|
|
18
|
+
export class MCPGTenantPatch extends pulumi.CustomResource {
|
|
19
|
+
/**
|
|
20
|
+
* Get an existing MCPGTenantPatch resource's state with the given name, ID, and optional extra
|
|
21
|
+
* properties used to qualify the lookup.
|
|
22
|
+
*
|
|
23
|
+
* @param name The _unique_ name of the resulting resource.
|
|
24
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): MCPGTenantPatch {
|
|
28
|
+
return new MCPGTenantPatch(name, undefined as any, { ...opts, id: id });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
public static readonly __pulumiType = 'kubernetes:mcpg.dev/v1alpha1:MCPGTenantPatch';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if the given object is an instance of MCPGTenantPatch. This is designed to work even
|
|
36
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
37
|
+
*/
|
|
38
|
+
public static isInstance(obj: any): obj is MCPGTenantPatch {
|
|
39
|
+
if (obj === undefined || obj === null) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return obj['__pulumiType'] === MCPGTenantPatch.__pulumiType;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
47
|
+
*/
|
|
48
|
+
declare public readonly apiVersion: pulumi.Output<"mcpg.dev/v1alpha1">;
|
|
49
|
+
/**
|
|
50
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
51
|
+
*/
|
|
52
|
+
declare public readonly kind: pulumi.Output<"MCPGTenant">;
|
|
53
|
+
/**
|
|
54
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
55
|
+
*/
|
|
56
|
+
declare public readonly metadata: pulumi.Output<outputs.meta.v1.ObjectMetaPatch>;
|
|
57
|
+
declare public readonly spec: pulumi.Output<outputs.mcpg.v1alpha1.MCPGTenantSpecPatch>;
|
|
58
|
+
declare public /*out*/ readonly status: pulumi.Output<outputs.mcpg.v1alpha1.MCPGTenantStatusPatch>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Create a MCPGTenantPatch resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args?: MCPGTenantPatchArgs, opts?: pulumi.CustomResourceOptions) {
|
|
68
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
69
|
+
opts = opts || {};
|
|
70
|
+
if (!opts.id) {
|
|
71
|
+
resourceInputs["apiVersion"] = "mcpg.dev/v1alpha1";
|
|
72
|
+
resourceInputs["kind"] = "MCPGTenant";
|
|
73
|
+
resourceInputs["metadata"] = args?.metadata;
|
|
74
|
+
resourceInputs["spec"] = args?.spec;
|
|
75
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
76
|
+
} else {
|
|
77
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
78
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
79
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
80
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(MCPGTenantPatch.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The set of arguments for constructing a MCPGTenantPatch resource.
|
|
90
|
+
*/
|
|
91
|
+
export interface MCPGTenantPatchArgs {
|
|
92
|
+
/**
|
|
93
|
+
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
94
|
+
*/
|
|
95
|
+
apiVersion?: pulumi.Input<"mcpg.dev/v1alpha1" | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
98
|
+
*/
|
|
99
|
+
kind?: pulumi.Input<"MCPGTenant" | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
102
|
+
*/
|
|
103
|
+
metadata?: pulumi.Input<inputs.meta.v1.ObjectMetaPatch | undefined>;
|
|
104
|
+
spec?: pulumi.Input<inputs.mcpg.v1alpha1.MCPGTenantSpecPatch | undefined>;
|
|
105
|
+
}
|
package/meta/v1.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcpg-dev/pulumi-crds",
|
|
3
|
+
"version": "0.1.0-beta.8",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"pulumi",
|
|
6
|
+
"kubernetes",
|
|
7
|
+
"category/cloud",
|
|
8
|
+
"kind/native"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://pulumi.com",
|
|
11
|
+
"repository": "https://github.com/mcpg-dev/pulumi-mcpg-crds",
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"main": "bin/index.js",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"postinstall": "node ./scripts/postinstall.js"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@pulumi/kubernetes": "4.23.0",
|
|
20
|
+
"@pulumi/pulumi": "^3.142.0",
|
|
21
|
+
"@types/node": "^20",
|
|
22
|
+
"glob": "^12.0.0",
|
|
23
|
+
"shell-quote": "^1.6.1",
|
|
24
|
+
"typescript": "^4.7.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/shell-quote": "^1.6.0"
|
|
28
|
+
},
|
|
29
|
+
"pulumi": {
|
|
30
|
+
"resource": true,
|
|
31
|
+
"name": "mcpg",
|
|
32
|
+
"version": "0.0.0-dev"
|
|
33
|
+
},
|
|
34
|
+
"description": "Typed Pulumi resource classes for the mcpg.dev custom resources, generated from the MCPG CRD schemas.",
|
|
35
|
+
"types": "bin/index.d.ts"
|
|
36
|
+
}
|
package/provider.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as utilities from "./utilities";
|
|
6
|
+
|
|
7
|
+
export class Provider extends pulumi.ProviderResource {
|
|
8
|
+
/** @internal */
|
|
9
|
+
public static readonly __pulumiType = 'mcpg';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
13
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
14
|
+
*/
|
|
15
|
+
public static isInstance(obj: any): obj is Provider {
|
|
16
|
+
if (obj === undefined || obj === null) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
25
|
+
*
|
|
26
|
+
* @param name The _unique_ name of the resource.
|
|
27
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
28
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
29
|
+
*/
|
|
30
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions) {
|
|
31
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
32
|
+
opts = opts || {};
|
|
33
|
+
{
|
|
34
|
+
}
|
|
35
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
36
|
+
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The set of arguments for constructing a Provider resource.
|
|
42
|
+
*/
|
|
43
|
+
export interface ProviderArgs {
|
|
44
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const fs = require("node:fs");
|
|
2
|
+
const path = require("node:path");
|
|
3
|
+
const process = require("node:process");
|
|
4
|
+
const { execSync } = require('node:child_process');
|
|
5
|
+
// We want to run "tsc --types node --types something-else ..." for each @types package.
|
|
6
|
+
const packageJSON = JSON.parse(fs.readFileSync("package.json") ?? "{}");
|
|
7
|
+
const deps = Object.keys(packageJSON.dependencies ?? []).concat(Object.keys(packageJSON.devDependencies ?? []));
|
|
8
|
+
const types = deps.filter(d => d.startsWith("@types/")).map(d => d.slice("@types/".length)).join(",");
|
|
9
|
+
const typesFlag = types.length > 0 ? " --types " + types : "";
|
|
10
|
+
try {
|
|
11
|
+
execSync("tsc"+typesFlag, { cwd: path.join(__dirname, "..") });
|
|
12
|
+
} catch (error) {
|
|
13
|
+
console.error("Failed to run 'tsc'", {
|
|
14
|
+
stdout: error.stdout.toString(),
|
|
15
|
+
stderr: error.stderr.toString(),
|
|
16
|
+
});
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
// TypeScript is compiled to "./bin", copy package.json to that directory so it can be read in "getVersion".
|
|
20
|
+
fs.copyFileSync(path.join(__dirname, "..", "package.json"), path.join(__dirname, "..", "bin", "package.json"));
|