@kilic.dev/pulumi-k8s-crds 1.5.0 → 1.6.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 (95) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/dist/index.js +3 -1
  3. package/dist/kyverno/index.d.ts +6 -0
  4. package/dist/kyverno/index.js +49 -0
  5. package/dist/kyverno/v1/clusterPolicy.d.ts +65 -0
  6. package/dist/kyverno/v1/clusterPolicy.js +112 -0
  7. package/dist/kyverno/v1/clusterPolicyList.d.ts +69 -0
  8. package/dist/kyverno/v1/clusterPolicyList.js +113 -0
  9. package/dist/kyverno/v1/clusterPolicyPatch.d.ts +71 -0
  10. package/dist/kyverno/v1/clusterPolicyPatch.js +118 -0
  11. package/dist/kyverno/v1/index.d.ts +18 -0
  12. package/dist/kyverno/v1/index.js +74 -0
  13. package/dist/kyverno/v1/policy.d.ts +66 -0
  14. package/dist/kyverno/v1/policy.js +113 -0
  15. package/dist/kyverno/v1/policyList.d.ts +69 -0
  16. package/dist/kyverno/v1/policyList.js +113 -0
  17. package/dist/kyverno/v1/policyPatch.d.ts +72 -0
  18. package/dist/kyverno/v1/policyPatch.js +119 -0
  19. package/dist/kyverno/v1beta1/index.d.ts +9 -0
  20. package/dist/kyverno/v1beta1/index.js +62 -0
  21. package/dist/kyverno/v1beta1/updateRequest.d.ts +65 -0
  22. package/dist/kyverno/v1beta1/updateRequest.js +112 -0
  23. package/dist/kyverno/v1beta1/updateRequestList.d.ts +69 -0
  24. package/dist/kyverno/v1beta1/updateRequestList.js +113 -0
  25. package/dist/kyverno/v1beta1/updateRequestPatch.d.ts +71 -0
  26. package/dist/kyverno/v1beta1/updateRequestPatch.js +118 -0
  27. package/dist/kyverno/v2/cleanupPolicy.d.ts +65 -0
  28. package/dist/kyverno/v2/cleanupPolicy.js +112 -0
  29. package/dist/kyverno/v2/cleanupPolicyList.d.ts +69 -0
  30. package/dist/kyverno/v2/cleanupPolicyList.js +113 -0
  31. package/dist/kyverno/v2/cleanupPolicyPatch.d.ts +71 -0
  32. package/dist/kyverno/v2/cleanupPolicyPatch.js +118 -0
  33. package/dist/kyverno/v2/clusterCleanupPolicy.d.ts +65 -0
  34. package/dist/kyverno/v2/clusterCleanupPolicy.js +112 -0
  35. package/dist/kyverno/v2/clusterCleanupPolicyList.d.ts +69 -0
  36. package/dist/kyverno/v2/clusterCleanupPolicyList.js +113 -0
  37. package/dist/kyverno/v2/clusterCleanupPolicyPatch.d.ts +71 -0
  38. package/dist/kyverno/v2/clusterCleanupPolicyPatch.js +118 -0
  39. package/dist/kyverno/v2/index.d.ts +36 -0
  40. package/dist/kyverno/v2/index.js +98 -0
  41. package/dist/kyverno/v2/policyException.d.ts +64 -0
  42. package/dist/kyverno/v2/policyException.js +109 -0
  43. package/dist/kyverno/v2/policyExceptionList.d.ts +69 -0
  44. package/dist/kyverno/v2/policyExceptionList.js +113 -0
  45. package/dist/kyverno/v2/policyExceptionPatch.d.ts +70 -0
  46. package/dist/kyverno/v2/policyExceptionPatch.js +115 -0
  47. package/dist/kyverno/v2/updateRequest.d.ts +65 -0
  48. package/dist/kyverno/v2/updateRequest.js +112 -0
  49. package/dist/kyverno/v2/updateRequestList.d.ts +69 -0
  50. package/dist/kyverno/v2/updateRequestList.js +113 -0
  51. package/dist/kyverno/v2/updateRequestPatch.d.ts +71 -0
  52. package/dist/kyverno/v2/updateRequestPatch.js +118 -0
  53. package/dist/kyverno/v2alpha1/globalContextEntry.d.ts +65 -0
  54. package/dist/kyverno/v2alpha1/globalContextEntry.js +110 -0
  55. package/dist/kyverno/v2alpha1/globalContextEntryList.d.ts +69 -0
  56. package/dist/kyverno/v2alpha1/globalContextEntryList.js +113 -0
  57. package/dist/kyverno/v2alpha1/globalContextEntryPatch.d.ts +71 -0
  58. package/dist/kyverno/v2alpha1/globalContextEntryPatch.js +116 -0
  59. package/dist/kyverno/v2alpha1/index.d.ts +9 -0
  60. package/dist/kyverno/v2alpha1/index.js +62 -0
  61. package/dist/kyverno/v2beta1/cleanupPolicy.d.ts +65 -0
  62. package/dist/kyverno/v2beta1/cleanupPolicy.js +112 -0
  63. package/dist/kyverno/v2beta1/cleanupPolicyList.d.ts +69 -0
  64. package/dist/kyverno/v2beta1/cleanupPolicyList.js +113 -0
  65. package/dist/kyverno/v2beta1/cleanupPolicyPatch.d.ts +71 -0
  66. package/dist/kyverno/v2beta1/cleanupPolicyPatch.js +118 -0
  67. package/dist/kyverno/v2beta1/clusterCleanupPolicy.d.ts +65 -0
  68. package/dist/kyverno/v2beta1/clusterCleanupPolicy.js +112 -0
  69. package/dist/kyverno/v2beta1/clusterCleanupPolicyList.d.ts +69 -0
  70. package/dist/kyverno/v2beta1/clusterCleanupPolicyList.js +113 -0
  71. package/dist/kyverno/v2beta1/clusterCleanupPolicyPatch.d.ts +71 -0
  72. package/dist/kyverno/v2beta1/clusterCleanupPolicyPatch.js +118 -0
  73. package/dist/kyverno/v2beta1/clusterPolicy.d.ts +65 -0
  74. package/dist/kyverno/v2beta1/clusterPolicy.js +112 -0
  75. package/dist/kyverno/v2beta1/clusterPolicyList.d.ts +69 -0
  76. package/dist/kyverno/v2beta1/clusterPolicyList.js +113 -0
  77. package/dist/kyverno/v2beta1/clusterPolicyPatch.d.ts +71 -0
  78. package/dist/kyverno/v2beta1/clusterPolicyPatch.js +118 -0
  79. package/dist/kyverno/v2beta1/index.d.ts +45 -0
  80. package/dist/kyverno/v2beta1/index.js +110 -0
  81. package/dist/kyverno/v2beta1/policy.d.ts +66 -0
  82. package/dist/kyverno/v2beta1/policy.js +113 -0
  83. package/dist/kyverno/v2beta1/policyException.d.ts +64 -0
  84. package/dist/kyverno/v2beta1/policyException.js +109 -0
  85. package/dist/kyverno/v2beta1/policyExceptionList.d.ts +69 -0
  86. package/dist/kyverno/v2beta1/policyExceptionList.js +113 -0
  87. package/dist/kyverno/v2beta1/policyExceptionPatch.d.ts +70 -0
  88. package/dist/kyverno/v2beta1/policyExceptionPatch.js +115 -0
  89. package/dist/kyverno/v2beta1/policyList.d.ts +69 -0
  90. package/dist/kyverno/v2beta1/policyList.js +113 -0
  91. package/dist/kyverno/v2beta1/policyPatch.d.ts +72 -0
  92. package/dist/kyverno/v2beta1/policyPatch.js +119 -0
  93. package/dist/types/input.d.ts +61250 -8
  94. package/dist/types/output.d.ts +78051 -8
  95. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ export { ClusterPolicyArgs } from "./clusterPolicy";
2
+ export type ClusterPolicy = import("./clusterPolicy").ClusterPolicy;
3
+ export declare const ClusterPolicy: typeof import("./clusterPolicy").ClusterPolicy;
4
+ export { ClusterPolicyListArgs } from "./clusterPolicyList";
5
+ export type ClusterPolicyList = import("./clusterPolicyList").ClusterPolicyList;
6
+ export declare const ClusterPolicyList: typeof import("./clusterPolicyList").ClusterPolicyList;
7
+ export { ClusterPolicyPatchArgs } from "./clusterPolicyPatch";
8
+ export type ClusterPolicyPatch = import("./clusterPolicyPatch").ClusterPolicyPatch;
9
+ export declare const ClusterPolicyPatch: typeof import("./clusterPolicyPatch").ClusterPolicyPatch;
10
+ export { PolicyArgs } from "./policy";
11
+ export type Policy = import("./policy").Policy;
12
+ export declare const Policy: typeof import("./policy").Policy;
13
+ export { PolicyListArgs } from "./policyList";
14
+ export type PolicyList = import("./policyList").PolicyList;
15
+ export declare const PolicyList: typeof import("./policyList").PolicyList;
16
+ export { PolicyPatchArgs } from "./policyPatch";
17
+ export type PolicyPatch = import("./policyPatch").PolicyPatch;
18
+ export declare const PolicyPatch: typeof import("./policyPatch").PolicyPatch;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.PolicyPatch = exports.PolicyList = exports.Policy = exports.ClusterPolicyPatch = exports.ClusterPolicyList = exports.ClusterPolicy = void 0;
39
+ const pulumi = __importStar(require("@pulumi/pulumi"));
40
+ const utilities = __importStar(require("../../utilities"));
41
+ exports.ClusterPolicy = null;
42
+ utilities.lazyLoad(exports, ["ClusterPolicy"], () => require("./clusterPolicy"));
43
+ exports.ClusterPolicyList = null;
44
+ utilities.lazyLoad(exports, ["ClusterPolicyList"], () => require("./clusterPolicyList"));
45
+ exports.ClusterPolicyPatch = null;
46
+ utilities.lazyLoad(exports, ["ClusterPolicyPatch"], () => require("./clusterPolicyPatch"));
47
+ exports.Policy = null;
48
+ utilities.lazyLoad(exports, ["Policy"], () => require("./policy"));
49
+ exports.PolicyList = null;
50
+ utilities.lazyLoad(exports, ["PolicyList"], () => require("./policyList"));
51
+ exports.PolicyPatch = null;
52
+ utilities.lazyLoad(exports, ["PolicyPatch"], () => require("./policyPatch"));
53
+ const _module = {
54
+ version: utilities.getVersion(),
55
+ construct: (name, type, urn) => {
56
+ switch (type) {
57
+ case "kubernetes:kyverno.io/v1:ClusterPolicy":
58
+ return new exports.ClusterPolicy(name, undefined, { urn });
59
+ case "kubernetes:kyverno.io/v1:ClusterPolicyList":
60
+ return new exports.ClusterPolicyList(name, undefined, { urn });
61
+ case "kubernetes:kyverno.io/v1:ClusterPolicyPatch":
62
+ return new exports.ClusterPolicyPatch(name, undefined, { urn });
63
+ case "kubernetes:kyverno.io/v1:Policy":
64
+ return new exports.Policy(name, undefined, { urn });
65
+ case "kubernetes:kyverno.io/v1:PolicyList":
66
+ return new exports.PolicyList(name, undefined, { urn });
67
+ case "kubernetes:kyverno.io/v1:PolicyPatch":
68
+ return new exports.PolicyPatch(name, undefined, { urn });
69
+ default:
70
+ throw new Error(`unknown resource type ${type}`);
71
+ }
72
+ },
73
+ };
74
+ pulumi.runtime.registerResourceModule("pulumi-k8s-crds", "kyverno.io/v1", _module);
@@ -0,0 +1,66 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ import { ObjectMeta } from "../../meta/v1";
5
+ /**
6
+ * Policy declares validation, mutation, and generation behaviors for matching resources.
7
+ * See: https://kyverno.io/docs/writing-policies/ for more information.
8
+ */
9
+ export declare class Policy extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing Policy 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: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Policy;
19
+ /** @internal */
20
+ static readonly __pulumiType = "kubernetes:kyverno.io/v1:Policy";
21
+ /**
22
+ * Returns true if the given object is an instance of Policy. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj: any): obj is Policy;
26
+ /**
27
+ * 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
28
+ */
29
+ readonly apiVersion: pulumi.Output<"kyverno.io/v1">;
30
+ /**
31
+ * 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
32
+ */
33
+ readonly kind: pulumi.Output<"Policy">;
34
+ /**
35
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
36
+ */
37
+ readonly metadata: pulumi.Output<ObjectMeta>;
38
+ readonly spec: pulumi.Output<outputs.kyverno.v1.PolicySpec>;
39
+ readonly status: pulumi.Output<outputs.kyverno.v1.PolicyStatus>;
40
+ /**
41
+ * Create a Policy 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?: PolicyArgs, opts?: pulumi.CustomResourceOptions);
48
+ }
49
+ /**
50
+ * The set of arguments for constructing a Policy resource.
51
+ */
52
+ export interface PolicyArgs {
53
+ /**
54
+ * 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
55
+ */
56
+ apiVersion?: pulumi.Input<"kyverno.io/v1">;
57
+ /**
58
+ * 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
59
+ */
60
+ kind?: pulumi.Input<"Policy">;
61
+ /**
62
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
63
+ */
64
+ metadata?: pulumi.Input<ObjectMeta>;
65
+ spec?: pulumi.Input<inputs.kyverno.v1.PolicySpec>;
66
+ }
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.Policy = void 0;
39
+ const pulumi = __importStar(require("@pulumi/pulumi"));
40
+ const utilities = __importStar(require("../../utilities"));
41
+ /**
42
+ * Policy declares validation, mutation, and generation behaviors for matching resources.
43
+ * See: https://kyverno.io/docs/writing-policies/ for more information.
44
+ */
45
+ class Policy extends pulumi.CustomResource {
46
+ /**
47
+ * Get an existing Policy resource's state with the given name, ID, and optional extra
48
+ * properties used to qualify the lookup.
49
+ *
50
+ * @param name The _unique_ name of the resulting resource.
51
+ * @param id The _unique_ provider ID of the resource to lookup.
52
+ * @param opts Optional settings to control the behavior of the CustomResource.
53
+ */
54
+ static get(name, id, opts) {
55
+ return new Policy(name, undefined, { ...opts, id: id });
56
+ }
57
+ /** @internal */
58
+ static __pulumiType = 'kubernetes:kyverno.io/v1:Policy';
59
+ /**
60
+ * Returns true if the given object is an instance of Policy. This is designed to work even
61
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
62
+ */
63
+ static isInstance(obj) {
64
+ if (obj === undefined || obj === null) {
65
+ return false;
66
+ }
67
+ return obj['__pulumiType'] === Policy.__pulumiType;
68
+ }
69
+ /**
70
+ * 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
71
+ */
72
+ apiVersion;
73
+ /**
74
+ * 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
75
+ */
76
+ kind;
77
+ /**
78
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
79
+ */
80
+ metadata;
81
+ spec;
82
+ status;
83
+ /**
84
+ * Create a Policy resource with the given unique name, arguments, and options.
85
+ *
86
+ * @param name The _unique_ name of the resource.
87
+ * @param args The arguments to use to populate this resource's properties.
88
+ * @param opts A bag of options that control this resource's behavior.
89
+ */
90
+ constructor(name, args, opts) {
91
+ let resourceInputs = {};
92
+ opts = opts || {};
93
+ if (!opts.id) {
94
+ resourceInputs["apiVersion"] = "kyverno.io/v1";
95
+ resourceInputs["kind"] = "Policy";
96
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
97
+ resourceInputs["spec"] = args ? args.spec : undefined;
98
+ resourceInputs["status"] = undefined /*out*/;
99
+ }
100
+ else {
101
+ resourceInputs["apiVersion"] = undefined /*out*/;
102
+ resourceInputs["kind"] = undefined /*out*/;
103
+ resourceInputs["metadata"] = undefined /*out*/;
104
+ resourceInputs["spec"] = undefined /*out*/;
105
+ resourceInputs["status"] = undefined /*out*/;
106
+ }
107
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
108
+ const aliasOpts = { aliases: [{ type: "kubernetes:kyverno.io/v2beta1:Policy" }] };
109
+ opts = pulumi.mergeOptions(opts, aliasOpts);
110
+ super(Policy.__pulumiType, name, resourceInputs, opts);
111
+ }
112
+ }
113
+ exports.Policy = Policy;
@@ -0,0 +1,69 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ /**
5
+ * PolicyList is a list of Policy
6
+ */
7
+ export declare class PolicyList extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing PolicyList resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param opts Optional settings to control the behavior of the CustomResource.
15
+ */
16
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): PolicyList;
17
+ /** @internal */
18
+ static readonly __pulumiType = "kubernetes:kyverno.io/v1:PolicyList";
19
+ /**
20
+ * Returns true if the given object is an instance of PolicyList. 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: any): obj is PolicyList;
24
+ /**
25
+ * 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
26
+ */
27
+ readonly apiVersion: pulumi.Output<"kyverno.io/v1">;
28
+ /**
29
+ * List of policies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
30
+ */
31
+ readonly items: pulumi.Output<outputs.kyverno.v1.Policy[]>;
32
+ /**
33
+ * 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
34
+ */
35
+ readonly kind: pulumi.Output<"PolicyList">;
36
+ /**
37
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
38
+ */
39
+ readonly metadata: pulumi.Output<outputs.meta.v1.ListMeta>;
40
+ /**
41
+ * Create a PolicyList 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?: PolicyListArgs, opts?: pulumi.CustomResourceOptions);
48
+ }
49
+ /**
50
+ * The set of arguments for constructing a PolicyList resource.
51
+ */
52
+ export interface PolicyListArgs {
53
+ /**
54
+ * 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
55
+ */
56
+ apiVersion?: pulumi.Input<"kyverno.io/v1">;
57
+ /**
58
+ * List of policies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
59
+ */
60
+ items: pulumi.Input<pulumi.Input<inputs.kyverno.v1.Policy>[]>;
61
+ /**
62
+ * 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
63
+ */
64
+ kind?: pulumi.Input<"PolicyList">;
65
+ /**
66
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
67
+ */
68
+ metadata?: pulumi.Input<inputs.meta.v1.ListMeta>;
69
+ }
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.PolicyList = void 0;
39
+ const pulumi = __importStar(require("@pulumi/pulumi"));
40
+ const utilities = __importStar(require("../../utilities"));
41
+ /**
42
+ * PolicyList is a list of Policy
43
+ */
44
+ class PolicyList extends pulumi.CustomResource {
45
+ /**
46
+ * Get an existing PolicyList resource's state with the given name, ID, and optional extra
47
+ * properties used to qualify the lookup.
48
+ *
49
+ * @param name The _unique_ name of the resulting resource.
50
+ * @param id The _unique_ provider ID of the resource to lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name, id, opts) {
54
+ return new PolicyList(name, undefined, { ...opts, id: id });
55
+ }
56
+ /** @internal */
57
+ static __pulumiType = 'kubernetes:kyverno.io/v1:PolicyList';
58
+ /**
59
+ * Returns true if the given object is an instance of PolicyList. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj) {
63
+ if (obj === undefined || obj === null) {
64
+ return false;
65
+ }
66
+ return obj['__pulumiType'] === PolicyList.__pulumiType;
67
+ }
68
+ /**
69
+ * 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
70
+ */
71
+ apiVersion;
72
+ /**
73
+ * List of policies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
74
+ */
75
+ items;
76
+ /**
77
+ * 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
78
+ */
79
+ kind;
80
+ /**
81
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
82
+ */
83
+ metadata;
84
+ /**
85
+ * Create a PolicyList resource with the given unique name, arguments, and options.
86
+ *
87
+ * @param name The _unique_ name of the resource.
88
+ * @param args The arguments to use to populate this resource's properties.
89
+ * @param opts A bag of options that control this resource's behavior.
90
+ */
91
+ constructor(name, args, opts) {
92
+ let resourceInputs = {};
93
+ opts = opts || {};
94
+ if (!opts.id) {
95
+ if ((!args || args.items === undefined) && !opts.urn) {
96
+ throw new Error("Missing required property 'items'");
97
+ }
98
+ resourceInputs["apiVersion"] = "kyverno.io/v1";
99
+ resourceInputs["items"] = args ? args.items : undefined;
100
+ resourceInputs["kind"] = "PolicyList";
101
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
102
+ }
103
+ else {
104
+ resourceInputs["apiVersion"] = undefined /*out*/;
105
+ resourceInputs["items"] = undefined /*out*/;
106
+ resourceInputs["kind"] = undefined /*out*/;
107
+ resourceInputs["metadata"] = undefined /*out*/;
108
+ }
109
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
110
+ super(PolicyList.__pulumiType, name, resourceInputs, opts);
111
+ }
112
+ }
113
+ exports.PolicyList = PolicyList;
@@ -0,0 +1,72 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ import { ObjectMetaPatch } from "../../meta/v1";
5
+ /**
6
+ * Patch resources are used to modify existing Kubernetes resources by using
7
+ * Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
8
+ * one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
9
+ * Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
10
+ * [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
11
+ * additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
12
+ * Policy declares validation, mutation, and generation behaviors for matching resources.
13
+ * See: https://kyverno.io/docs/writing-policies/ for more information.
14
+ */
15
+ export declare class PolicyPatch extends pulumi.CustomResource {
16
+ /**
17
+ * Get an existing PolicyPatch resource's state with the given name, ID, and optional extra
18
+ * properties used to qualify the lookup.
19
+ *
20
+ * @param name The _unique_ name of the resulting resource.
21
+ * @param id The _unique_ provider ID of the resource to lookup.
22
+ * @param opts Optional settings to control the behavior of the CustomResource.
23
+ */
24
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): PolicyPatch;
25
+ /** @internal */
26
+ static readonly __pulumiType = "kubernetes:kyverno.io/v1:PolicyPatch";
27
+ /**
28
+ * Returns true if the given object is an instance of PolicyPatch. 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: any): obj is PolicyPatch;
32
+ /**
33
+ * 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
34
+ */
35
+ readonly apiVersion: pulumi.Output<"kyverno.io/v1">;
36
+ /**
37
+ * 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
38
+ */
39
+ readonly kind: pulumi.Output<"Policy">;
40
+ /**
41
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
42
+ */
43
+ readonly metadata: pulumi.Output<ObjectMetaPatch>;
44
+ readonly spec: pulumi.Output<outputs.kyverno.v1.PolicySpecPatch>;
45
+ readonly status: pulumi.Output<outputs.kyverno.v1.PolicyStatusPatch>;
46
+ /**
47
+ * Create a PolicyPatch resource with the given unique name, arguments, and options.
48
+ *
49
+ * @param name The _unique_ name of the resource.
50
+ * @param args The arguments to use to populate this resource's properties.
51
+ * @param opts A bag of options that control this resource's behavior.
52
+ */
53
+ constructor(name: string, args?: PolicyPatchArgs, opts?: pulumi.CustomResourceOptions);
54
+ }
55
+ /**
56
+ * The set of arguments for constructing a PolicyPatch resource.
57
+ */
58
+ export interface PolicyPatchArgs {
59
+ /**
60
+ * 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
61
+ */
62
+ apiVersion?: pulumi.Input<"kyverno.io/v1">;
63
+ /**
64
+ * 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
65
+ */
66
+ kind?: pulumi.Input<"Policy">;
67
+ /**
68
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
69
+ */
70
+ metadata?: pulumi.Input<ObjectMetaPatch>;
71
+ spec?: pulumi.Input<inputs.kyverno.v1.PolicySpecPatch>;
72
+ }
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || (function () {
21
+ var ownKeys = function(o) {
22
+ ownKeys = Object.getOwnPropertyNames || function (o) {
23
+ var ar = [];
24
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
25
+ return ar;
26
+ };
27
+ return ownKeys(o);
28
+ };
29
+ return function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ })();
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.PolicyPatch = void 0;
39
+ const pulumi = __importStar(require("@pulumi/pulumi"));
40
+ const utilities = __importStar(require("../../utilities"));
41
+ /**
42
+ * Patch resources are used to modify existing Kubernetes resources by using
43
+ * Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
44
+ * one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
45
+ * Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
46
+ * [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
47
+ * additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
48
+ * Policy declares validation, mutation, and generation behaviors for matching resources.
49
+ * See: https://kyverno.io/docs/writing-policies/ for more information.
50
+ */
51
+ class PolicyPatch extends pulumi.CustomResource {
52
+ /**
53
+ * Get an existing PolicyPatch resource's state with the given name, ID, and optional extra
54
+ * properties used to qualify the lookup.
55
+ *
56
+ * @param name The _unique_ name of the resulting resource.
57
+ * @param id The _unique_ provider ID of the resource to lookup.
58
+ * @param opts Optional settings to control the behavior of the CustomResource.
59
+ */
60
+ static get(name, id, opts) {
61
+ return new PolicyPatch(name, undefined, { ...opts, id: id });
62
+ }
63
+ /** @internal */
64
+ static __pulumiType = 'kubernetes:kyverno.io/v1:PolicyPatch';
65
+ /**
66
+ * Returns true if the given object is an instance of PolicyPatch. This is designed to work even
67
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
68
+ */
69
+ static isInstance(obj) {
70
+ if (obj === undefined || obj === null) {
71
+ return false;
72
+ }
73
+ return obj['__pulumiType'] === PolicyPatch.__pulumiType;
74
+ }
75
+ /**
76
+ * 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
77
+ */
78
+ apiVersion;
79
+ /**
80
+ * 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
81
+ */
82
+ kind;
83
+ /**
84
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
85
+ */
86
+ metadata;
87
+ spec;
88
+ status;
89
+ /**
90
+ * Create a PolicyPatch resource with the given unique name, arguments, and options.
91
+ *
92
+ * @param name The _unique_ name of the resource.
93
+ * @param args The arguments to use to populate this resource's properties.
94
+ * @param opts A bag of options that control this resource's behavior.
95
+ */
96
+ constructor(name, args, opts) {
97
+ let resourceInputs = {};
98
+ opts = opts || {};
99
+ if (!opts.id) {
100
+ resourceInputs["apiVersion"] = "kyverno.io/v1";
101
+ resourceInputs["kind"] = "Policy";
102
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
103
+ resourceInputs["spec"] = args ? args.spec : undefined;
104
+ resourceInputs["status"] = undefined /*out*/;
105
+ }
106
+ else {
107
+ resourceInputs["apiVersion"] = undefined /*out*/;
108
+ resourceInputs["kind"] = undefined /*out*/;
109
+ resourceInputs["metadata"] = undefined /*out*/;
110
+ resourceInputs["spec"] = undefined /*out*/;
111
+ resourceInputs["status"] = undefined /*out*/;
112
+ }
113
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
114
+ const aliasOpts = { aliases: [{ type: "kubernetes:kyverno.io/v2beta1:PolicyPatch" }] };
115
+ opts = pulumi.mergeOptions(opts, aliasOpts);
116
+ super(PolicyPatch.__pulumiType, name, resourceInputs, opts);
117
+ }
118
+ }
119
+ exports.PolicyPatch = PolicyPatch;
@@ -0,0 +1,9 @@
1
+ export { UpdateRequestArgs } from "./updateRequest";
2
+ export type UpdateRequest = import("./updateRequest").UpdateRequest;
3
+ export declare const UpdateRequest: typeof import("./updateRequest").UpdateRequest;
4
+ export { UpdateRequestListArgs } from "./updateRequestList";
5
+ export type UpdateRequestList = import("./updateRequestList").UpdateRequestList;
6
+ export declare const UpdateRequestList: typeof import("./updateRequestList").UpdateRequestList;
7
+ export { UpdateRequestPatchArgs } from "./updateRequestPatch";
8
+ export type UpdateRequestPatch = import("./updateRequestPatch").UpdateRequestPatch;
9
+ export declare const UpdateRequestPatch: typeof import("./updateRequestPatch").UpdateRequestPatch;