@highstate/cilium-crds 0.4.5

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 (66) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +14 -0
  3. package/bin/cilium/index.d.ts +2 -0
  4. package/bin/cilium/index.js +9 -0
  5. package/bin/cilium/index.js.map +1 -0
  6. package/bin/cilium/v2/ciliumClusterwideNetworkPolicy.d.ts +73 -0
  7. package/bin/cilium/v2/ciliumClusterwideNetworkPolicy.js +68 -0
  8. package/bin/cilium/v2/ciliumClusterwideNetworkPolicy.js.map +1 -0
  9. package/bin/cilium/v2/ciliumClusterwideNetworkPolicyList.d.ts +67 -0
  10. package/bin/cilium/v2/ciliumClusterwideNetworkPolicyList.js +65 -0
  11. package/bin/cilium/v2/ciliumClusterwideNetworkPolicyList.js.map +1 -0
  12. package/bin/cilium/v2/ciliumClusterwideNetworkPolicyPatch.d.ts +79 -0
  13. package/bin/cilium/v2/ciliumClusterwideNetworkPolicyPatch.js +74 -0
  14. package/bin/cilium/v2/ciliumClusterwideNetworkPolicyPatch.js.map +1 -0
  15. package/bin/cilium/v2/ciliumNetworkPolicy.d.ts +72 -0
  16. package/bin/cilium/v2/ciliumNetworkPolicy.js +67 -0
  17. package/bin/cilium/v2/ciliumNetworkPolicy.js.map +1 -0
  18. package/bin/cilium/v2/ciliumNetworkPolicyList.d.ts +67 -0
  19. package/bin/cilium/v2/ciliumNetworkPolicyList.js +65 -0
  20. package/bin/cilium/v2/ciliumNetworkPolicyList.js.map +1 -0
  21. package/bin/cilium/v2/ciliumNetworkPolicyPatch.d.ts +78 -0
  22. package/bin/cilium/v2/ciliumNetworkPolicyPatch.js +73 -0
  23. package/bin/cilium/v2/ciliumNetworkPolicyPatch.js.map +1 -0
  24. package/bin/cilium/v2/index.d.ts +18 -0
  25. package/bin/cilium/v2/index.js +42 -0
  26. package/bin/cilium/v2/index.js.map +1 -0
  27. package/bin/index.d.ts +6 -0
  28. package/bin/index.js +24 -0
  29. package/bin/index.js.map +1 -0
  30. package/bin/meta/v1.d.ts +3 -0
  31. package/bin/meta/v1.js +3 -0
  32. package/bin/meta/v1.js.map +1 -0
  33. package/bin/package.json +42 -0
  34. package/bin/provider.d.ts +21 -0
  35. package/bin/provider.js +38 -0
  36. package/bin/provider.js.map +1 -0
  37. package/bin/types/index.d.ts +3 -0
  38. package/bin/types/index.js +11 -0
  39. package/bin/types/index.js.map +1 -0
  40. package/bin/types/input.d.ts +20087 -0
  41. package/bin/types/input.js +5 -0
  42. package/bin/types/input.js.map +1 -0
  43. package/bin/types/output.d.ts +20164 -0
  44. package/bin/types/output.js +5 -0
  45. package/bin/types/output.js.map +1 -0
  46. package/bin/utilities.d.ts +8 -0
  47. package/bin/utilities.js +102 -0
  48. package/bin/utilities.js.map +1 -0
  49. package/cilium/index.ts +11 -0
  50. package/cilium/v2/ciliumClusterwideNetworkPolicy.ts +113 -0
  51. package/cilium/v2/ciliumClusterwideNetworkPolicyList.ts +107 -0
  52. package/cilium/v2/ciliumClusterwideNetworkPolicyPatch.ts +119 -0
  53. package/cilium/v2/ciliumNetworkPolicy.ts +112 -0
  54. package/cilium/v2/ciliumNetworkPolicyList.ts +107 -0
  55. package/cilium/v2/ciliumNetworkPolicyPatch.ts +118 -0
  56. package/cilium/v2/index.ts +60 -0
  57. package/index.ts +30 -0
  58. package/meta/v1.ts +4 -0
  59. package/package.json +43 -0
  60. package/provider.ts +44 -0
  61. package/scripts/postinstall.js +13 -0
  62. package/tsconfig.json +31 -0
  63. package/types/index.ts +13 -0
  64. package/types/input.ts +20541 -0
  65. package/types/output.ts +20615 -0
  66. package/utilities.ts +97 -0
@@ -0,0 +1,107 @@
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
+ import {ObjectMeta} from "../../meta/v1";
10
+
11
+ /**
12
+ * CiliumNetworkPolicyList is a list of CiliumNetworkPolicy
13
+ */
14
+ export class CiliumNetworkPolicyList extends pulumi.CustomResource {
15
+ /**
16
+ * Get an existing CiliumNetworkPolicyList resource's state with the given name, ID, and optional extra
17
+ * properties used to qualify the lookup.
18
+ *
19
+ * @param name The _unique_ name of the resulting resource.
20
+ * @param id The _unique_ provider ID of the resource to lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CiliumNetworkPolicyList {
24
+ return new CiliumNetworkPolicyList(name, undefined as any, { ...opts, id: id });
25
+ }
26
+
27
+ /** @internal */
28
+ public static readonly __pulumiType = 'kubernetes:cilium.io/v2:CiliumNetworkPolicyList';
29
+
30
+ /**
31
+ * Returns true if the given object is an instance of CiliumNetworkPolicyList. This is designed to work even
32
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
33
+ */
34
+ public static isInstance(obj: any): obj is CiliumNetworkPolicyList {
35
+ if (obj === undefined || obj === null) {
36
+ return false;
37
+ }
38
+ return obj['__pulumiType'] === CiliumNetworkPolicyList.__pulumiType;
39
+ }
40
+
41
+ /**
42
+ * 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
43
+ */
44
+ public readonly apiVersion!: pulumi.Output<"cilium.io/v2">;
45
+ /**
46
+ * List of ciliumnetworkpolicies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
47
+ */
48
+ public readonly items!: pulumi.Output<outputs.cilium.v2.CiliumNetworkPolicy[]>;
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
+ public readonly kind!: pulumi.Output<"CiliumNetworkPolicyList">;
53
+ /**
54
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
55
+ */
56
+ public readonly metadata!: pulumi.Output<outputs.meta.v1.ListMeta>;
57
+
58
+ /**
59
+ * Create a CiliumNetworkPolicyList resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args?: CiliumNetworkPolicyListArgs, opts?: pulumi.CustomResourceOptions) {
66
+ let resourceInputs: pulumi.Inputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if ((!args || args.items === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'items'");
71
+ }
72
+ resourceInputs["apiVersion"] = "cilium.io/v2";
73
+ resourceInputs["items"] = args ? args.items : undefined;
74
+ resourceInputs["kind"] = "CiliumNetworkPolicyList";
75
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
76
+ } else {
77
+ resourceInputs["apiVersion"] = undefined /*out*/;
78
+ resourceInputs["items"] = undefined /*out*/;
79
+ resourceInputs["kind"] = undefined /*out*/;
80
+ resourceInputs["metadata"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(CiliumNetworkPolicyList.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+
87
+ /**
88
+ * The set of arguments for constructing a CiliumNetworkPolicyList resource.
89
+ */
90
+ export interface CiliumNetworkPolicyListArgs {
91
+ /**
92
+ * 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
93
+ */
94
+ apiVersion?: pulumi.Input<"cilium.io/v2">;
95
+ /**
96
+ * List of ciliumnetworkpolicies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
97
+ */
98
+ items: pulumi.Input<pulumi.Input<inputs.cilium.v2.CiliumNetworkPolicy>[]>;
99
+ /**
100
+ * 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
101
+ */
102
+ kind?: pulumi.Input<"CiliumNetworkPolicyList">;
103
+ /**
104
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
105
+ */
106
+ metadata?: pulumi.Input<inputs.meta.v1.ListMeta>;
107
+ }
@@ -0,0 +1,118 @@
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
+ import {ObjectMetaPatch} from "../../meta/v1";
10
+
11
+ /**
12
+ * Patch resources are used to modify existing Kubernetes resources by using
13
+ * Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
14
+ * one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
15
+ * Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
16
+ * [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
17
+ * additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
18
+ * CiliumNetworkPolicy is a Kubernetes third-party resource with an extended
19
+ * version of NetworkPolicy.
20
+ */
21
+ export class CiliumNetworkPolicyPatch extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing CiliumNetworkPolicyPatch resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param opts Optional settings to control the behavior of the CustomResource.
29
+ */
30
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CiliumNetworkPolicyPatch {
31
+ return new CiliumNetworkPolicyPatch(name, undefined as any, { ...opts, id: id });
32
+ }
33
+
34
+ /** @internal */
35
+ public static readonly __pulumiType = 'kubernetes:cilium.io/v2:CiliumNetworkPolicyPatch';
36
+
37
+ /**
38
+ * Returns true if the given object is an instance of CiliumNetworkPolicyPatch. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ public static isInstance(obj: any): obj is CiliumNetworkPolicyPatch {
42
+ if (obj === undefined || obj === null) {
43
+ return false;
44
+ }
45
+ return obj['__pulumiType'] === CiliumNetworkPolicyPatch.__pulumiType;
46
+ }
47
+
48
+ /**
49
+ * 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
50
+ */
51
+ public readonly apiVersion!: pulumi.Output<"cilium.io/v2">;
52
+ /**
53
+ * 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
54
+ */
55
+ public readonly kind!: pulumi.Output<"CiliumNetworkPolicy">;
56
+ /**
57
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
58
+ */
59
+ public readonly metadata!: pulumi.Output<ObjectMetaPatch>;
60
+ public readonly spec!: pulumi.Output<outputs.cilium.v2.CiliumNetworkPolicySpecPatch>;
61
+ /**
62
+ * Specs is a list of desired Cilium specific rule specification.
63
+ */
64
+ public readonly specs!: pulumi.Output<outputs.cilium.v2.CiliumNetworkPolicySpecsPatch[]>;
65
+ public /*out*/ readonly status!: pulumi.Output<outputs.cilium.v2.CiliumNetworkPolicyStatusPatch>;
66
+
67
+ /**
68
+ * Create a CiliumNetworkPolicyPatch resource with the given unique name, arguments, and options.
69
+ *
70
+ * @param name The _unique_ name of the resource.
71
+ * @param args The arguments to use to populate this resource's properties.
72
+ * @param opts A bag of options that control this resource's behavior.
73
+ */
74
+ constructor(name: string, args?: CiliumNetworkPolicyPatchArgs, opts?: pulumi.CustomResourceOptions) {
75
+ let resourceInputs: pulumi.Inputs = {};
76
+ opts = opts || {};
77
+ if (!opts.id) {
78
+ resourceInputs["apiVersion"] = "cilium.io/v2";
79
+ resourceInputs["kind"] = "CiliumNetworkPolicy";
80
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
81
+ resourceInputs["spec"] = args ? args.spec : undefined;
82
+ resourceInputs["specs"] = args ? args.specs : undefined;
83
+ resourceInputs["status"] = undefined /*out*/;
84
+ } else {
85
+ resourceInputs["apiVersion"] = undefined /*out*/;
86
+ resourceInputs["kind"] = undefined /*out*/;
87
+ resourceInputs["metadata"] = undefined /*out*/;
88
+ resourceInputs["spec"] = undefined /*out*/;
89
+ resourceInputs["specs"] = undefined /*out*/;
90
+ resourceInputs["status"] = undefined /*out*/;
91
+ }
92
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
93
+ super(CiliumNetworkPolicyPatch.__pulumiType, name, resourceInputs, opts);
94
+ }
95
+ }
96
+
97
+ /**
98
+ * The set of arguments for constructing a CiliumNetworkPolicyPatch resource.
99
+ */
100
+ export interface CiliumNetworkPolicyPatchArgs {
101
+ /**
102
+ * 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
103
+ */
104
+ apiVersion?: pulumi.Input<"cilium.io/v2">;
105
+ /**
106
+ * 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
107
+ */
108
+ kind?: pulumi.Input<"CiliumNetworkPolicy">;
109
+ /**
110
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
111
+ */
112
+ metadata?: pulumi.Input<ObjectMetaPatch>;
113
+ spec?: pulumi.Input<inputs.cilium.v2.CiliumNetworkPolicySpecPatch>;
114
+ /**
115
+ * Specs is a list of desired Cilium specific rule specification.
116
+ */
117
+ specs?: pulumi.Input<pulumi.Input<inputs.cilium.v2.CiliumNetworkPolicySpecsPatch>[]>;
118
+ }
@@ -0,0 +1,60 @@
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 members:
8
+ export { CiliumClusterwideNetworkPolicyArgs } from "./ciliumClusterwideNetworkPolicy";
9
+ export type CiliumClusterwideNetworkPolicy = import("./ciliumClusterwideNetworkPolicy").CiliumClusterwideNetworkPolicy;
10
+ export const CiliumClusterwideNetworkPolicy: typeof import("./ciliumClusterwideNetworkPolicy").CiliumClusterwideNetworkPolicy = null as any;
11
+ utilities.lazyLoad(exports, ["CiliumClusterwideNetworkPolicy"], () => require("./ciliumClusterwideNetworkPolicy"));
12
+
13
+ export { CiliumClusterwideNetworkPolicyListArgs } from "./ciliumClusterwideNetworkPolicyList";
14
+ export type CiliumClusterwideNetworkPolicyList = import("./ciliumClusterwideNetworkPolicyList").CiliumClusterwideNetworkPolicyList;
15
+ export const CiliumClusterwideNetworkPolicyList: typeof import("./ciliumClusterwideNetworkPolicyList").CiliumClusterwideNetworkPolicyList = null as any;
16
+ utilities.lazyLoad(exports, ["CiliumClusterwideNetworkPolicyList"], () => require("./ciliumClusterwideNetworkPolicyList"));
17
+
18
+ export { CiliumClusterwideNetworkPolicyPatchArgs } from "./ciliumClusterwideNetworkPolicyPatch";
19
+ export type CiliumClusterwideNetworkPolicyPatch = import("./ciliumClusterwideNetworkPolicyPatch").CiliumClusterwideNetworkPolicyPatch;
20
+ export const CiliumClusterwideNetworkPolicyPatch: typeof import("./ciliumClusterwideNetworkPolicyPatch").CiliumClusterwideNetworkPolicyPatch = null as any;
21
+ utilities.lazyLoad(exports, ["CiliumClusterwideNetworkPolicyPatch"], () => require("./ciliumClusterwideNetworkPolicyPatch"));
22
+
23
+ export { CiliumNetworkPolicyArgs } from "./ciliumNetworkPolicy";
24
+ export type CiliumNetworkPolicy = import("./ciliumNetworkPolicy").CiliumNetworkPolicy;
25
+ export const CiliumNetworkPolicy: typeof import("./ciliumNetworkPolicy").CiliumNetworkPolicy = null as any;
26
+ utilities.lazyLoad(exports, ["CiliumNetworkPolicy"], () => require("./ciliumNetworkPolicy"));
27
+
28
+ export { CiliumNetworkPolicyListArgs } from "./ciliumNetworkPolicyList";
29
+ export type CiliumNetworkPolicyList = import("./ciliumNetworkPolicyList").CiliumNetworkPolicyList;
30
+ export const CiliumNetworkPolicyList: typeof import("./ciliumNetworkPolicyList").CiliumNetworkPolicyList = null as any;
31
+ utilities.lazyLoad(exports, ["CiliumNetworkPolicyList"], () => require("./ciliumNetworkPolicyList"));
32
+
33
+ export { CiliumNetworkPolicyPatchArgs } from "./ciliumNetworkPolicyPatch";
34
+ export type CiliumNetworkPolicyPatch = import("./ciliumNetworkPolicyPatch").CiliumNetworkPolicyPatch;
35
+ export const CiliumNetworkPolicyPatch: typeof import("./ciliumNetworkPolicyPatch").CiliumNetworkPolicyPatch = null as any;
36
+ utilities.lazyLoad(exports, ["CiliumNetworkPolicyPatch"], () => require("./ciliumNetworkPolicyPatch"));
37
+
38
+
39
+ const _module = {
40
+ version: utilities.getVersion(),
41
+ construct: (name: string, type: string, urn: string): pulumi.Resource => {
42
+ switch (type) {
43
+ case "kubernetes:cilium.io/v2:CiliumClusterwideNetworkPolicy":
44
+ return new CiliumClusterwideNetworkPolicy(name, <any>undefined, { urn })
45
+ case "kubernetes:cilium.io/v2:CiliumClusterwideNetworkPolicyList":
46
+ return new CiliumClusterwideNetworkPolicyList(name, <any>undefined, { urn })
47
+ case "kubernetes:cilium.io/v2:CiliumClusterwideNetworkPolicyPatch":
48
+ return new CiliumClusterwideNetworkPolicyPatch(name, <any>undefined, { urn })
49
+ case "kubernetes:cilium.io/v2:CiliumNetworkPolicy":
50
+ return new CiliumNetworkPolicy(name, <any>undefined, { urn })
51
+ case "kubernetes:cilium.io/v2:CiliumNetworkPolicyList":
52
+ return new CiliumNetworkPolicyList(name, <any>undefined, { urn })
53
+ case "kubernetes:cilium.io/v2:CiliumNetworkPolicyPatch":
54
+ return new CiliumNetworkPolicyPatch(name, <any>undefined, { urn })
55
+ default:
56
+ throw new Error(`unknown resource type ${type}`);
57
+ }
58
+ },
59
+ };
60
+ pulumi.runtime.registerResourceModule("crds", "cilium.io/v2", _module)
package/index.ts ADDED
@@ -0,0 +1,30 @@
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 members:
8
+ export { ProviderArgs } from "./provider";
9
+ export type Provider = import("./provider").Provider;
10
+ export const Provider: typeof import("./provider").Provider = null as any;
11
+ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
12
+
13
+
14
+ // Export sub-modules:
15
+ import * as cilium from "./cilium";
16
+ import * as types from "./types";
17
+
18
+ export {
19
+ cilium,
20
+ types,
21
+ };
22
+ pulumi.runtime.registerResourcePackage("crds", {
23
+ version: utilities.getVersion(),
24
+ constructProvider: (name: string, type: string, urn: string): pulumi.ProviderResource => {
25
+ if (type !== "pulumi:providers:kubernetes") {
26
+ throw new Error(`unknown provider type ${type}`);
27
+ }
28
+ return new Provider(name, <any>undefined, { urn });
29
+ },
30
+ });
package/meta/v1.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as k8s from "@pulumi/kubernetes";
2
+
3
+ export type ObjectMeta = k8s.types.input.meta.v1.ObjectMeta;
4
+ export type ObjectMetaPatch = k8s.types.input.meta.v1.ObjectMetaPatch;
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@highstate/cilium-crds",
3
+ "version": "0.4.5",
4
+ "keywords": [
5
+ "pulumi",
6
+ "kubernetes",
7
+ "category/cloud",
8
+ "kind/native"
9
+ ],
10
+ "homepage": "https://pulumi.com",
11
+ "repository": "https://github.com/pulumi/pulumi-kubernetes",
12
+ "license": "Apache-2.0",
13
+ "main": "bin/index.js",
14
+ "scripts": {
15
+ "build": "tsc --noCheck && cp package.json bin/package.json"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "dependencies": {
21
+ "@pulumi/kubernetes": "4.18.0",
22
+ "@pulumi/pulumi": "^3.25.0",
23
+ "@types/node-fetch": "^2.1.4",
24
+ "@types/tmp": "^0.0.33",
25
+ "glob": "^10.3.10",
26
+ "node-fetch": "^2.3.0",
27
+ "shell-quote": "^1.6.1",
28
+ "tmp": "^0.0.33"
29
+ },
30
+ "devDependencies": {
31
+ "@types/mocha": "^5.2.5",
32
+ "@types/node": "^14",
33
+ "@types/shell-quote": "^1.6.0",
34
+ "mocha": "^5.2.0",
35
+ "typescript": "^5.7.2"
36
+ },
37
+ "pulumi": {
38
+ "resource": true,
39
+ "name": "@highstate/cilium-crds",
40
+ "version": "0.4.4"
41
+ },
42
+ "gitHead": "afd601fdade1bcf31af58072eea3c08ee26349b8"
43
+ }
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 = 'crds';
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,13 @@
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
+ try {
6
+ const out = execSync('tsc')
7
+ console.log(out.toString())
8
+ } catch (error) {
9
+ console.error(error.message + ": " + error.stdout.toString() + "\n" + error.stderr.toString())
10
+ process.exit(1)
11
+ }
12
+ // TypeScript is compiled to "./bin", copy package.json to that directory so it can be read in "getVersion".
13
+ fs.copyFileSync(path.join(__dirname, "..", "package.json"), path.join(__dirname, "..", "bin", "package.json"));
package/tsconfig.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "bin",
4
+ "target": "es2016",
5
+ "module": "commonjs",
6
+ "moduleResolution": "node",
7
+ "declaration": true,
8
+ "sourceMap": true,
9
+ "stripInternal": true,
10
+ "experimentalDecorators": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "strict": true
14
+ },
15
+ "files": [
16
+ "cilium/index.ts",
17
+ "cilium/v2/ciliumClusterwideNetworkPolicy.ts",
18
+ "cilium/v2/ciliumClusterwideNetworkPolicyList.ts",
19
+ "cilium/v2/ciliumClusterwideNetworkPolicyPatch.ts",
20
+ "cilium/v2/ciliumNetworkPolicy.ts",
21
+ "cilium/v2/ciliumNetworkPolicyList.ts",
22
+ "cilium/v2/ciliumNetworkPolicyPatch.ts",
23
+ "cilium/v2/index.ts",
24
+ "index.ts",
25
+ "provider.ts",
26
+ "types/index.ts",
27
+ "types/input.ts",
28
+ "types/output.ts",
29
+ "utilities.ts"
30
+ ]
31
+ }
package/types/index.ts ADDED
@@ -0,0 +1,13 @@
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 utilities from "../utilities";
5
+
6
+ // Export sub-modules:
7
+ import * as input from "./input";
8
+ import * as output from "./output";
9
+
10
+ export {
11
+ input,
12
+ output,
13
+ };