@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.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/kyverno/index.d.ts +6 -0
- package/dist/kyverno/index.js +49 -0
- package/dist/kyverno/v1/clusterPolicy.d.ts +65 -0
- package/dist/kyverno/v1/clusterPolicy.js +112 -0
- package/dist/kyverno/v1/clusterPolicyList.d.ts +69 -0
- package/dist/kyverno/v1/clusterPolicyList.js +113 -0
- package/dist/kyverno/v1/clusterPolicyPatch.d.ts +71 -0
- package/dist/kyverno/v1/clusterPolicyPatch.js +118 -0
- package/dist/kyverno/v1/index.d.ts +18 -0
- package/dist/kyverno/v1/index.js +74 -0
- package/dist/kyverno/v1/policy.d.ts +66 -0
- package/dist/kyverno/v1/policy.js +113 -0
- package/dist/kyverno/v1/policyList.d.ts +69 -0
- package/dist/kyverno/v1/policyList.js +113 -0
- package/dist/kyverno/v1/policyPatch.d.ts +72 -0
- package/dist/kyverno/v1/policyPatch.js +119 -0
- package/dist/kyverno/v1beta1/index.d.ts +9 -0
- package/dist/kyverno/v1beta1/index.js +62 -0
- package/dist/kyverno/v1beta1/updateRequest.d.ts +65 -0
- package/dist/kyverno/v1beta1/updateRequest.js +112 -0
- package/dist/kyverno/v1beta1/updateRequestList.d.ts +69 -0
- package/dist/kyverno/v1beta1/updateRequestList.js +113 -0
- package/dist/kyverno/v1beta1/updateRequestPatch.d.ts +71 -0
- package/dist/kyverno/v1beta1/updateRequestPatch.js +118 -0
- package/dist/kyverno/v2/cleanupPolicy.d.ts +65 -0
- package/dist/kyverno/v2/cleanupPolicy.js +112 -0
- package/dist/kyverno/v2/cleanupPolicyList.d.ts +69 -0
- package/dist/kyverno/v2/cleanupPolicyList.js +113 -0
- package/dist/kyverno/v2/cleanupPolicyPatch.d.ts +71 -0
- package/dist/kyverno/v2/cleanupPolicyPatch.js +118 -0
- package/dist/kyverno/v2/clusterCleanupPolicy.d.ts +65 -0
- package/dist/kyverno/v2/clusterCleanupPolicy.js +112 -0
- package/dist/kyverno/v2/clusterCleanupPolicyList.d.ts +69 -0
- package/dist/kyverno/v2/clusterCleanupPolicyList.js +113 -0
- package/dist/kyverno/v2/clusterCleanupPolicyPatch.d.ts +71 -0
- package/dist/kyverno/v2/clusterCleanupPolicyPatch.js +118 -0
- package/dist/kyverno/v2/index.d.ts +36 -0
- package/dist/kyverno/v2/index.js +98 -0
- package/dist/kyverno/v2/policyException.d.ts +64 -0
- package/dist/kyverno/v2/policyException.js +109 -0
- package/dist/kyverno/v2/policyExceptionList.d.ts +69 -0
- package/dist/kyverno/v2/policyExceptionList.js +113 -0
- package/dist/kyverno/v2/policyExceptionPatch.d.ts +70 -0
- package/dist/kyverno/v2/policyExceptionPatch.js +115 -0
- package/dist/kyverno/v2/updateRequest.d.ts +65 -0
- package/dist/kyverno/v2/updateRequest.js +112 -0
- package/dist/kyverno/v2/updateRequestList.d.ts +69 -0
- package/dist/kyverno/v2/updateRequestList.js +113 -0
- package/dist/kyverno/v2/updateRequestPatch.d.ts +71 -0
- package/dist/kyverno/v2/updateRequestPatch.js +118 -0
- package/dist/kyverno/v2alpha1/globalContextEntry.d.ts +65 -0
- package/dist/kyverno/v2alpha1/globalContextEntry.js +110 -0
- package/dist/kyverno/v2alpha1/globalContextEntryList.d.ts +69 -0
- package/dist/kyverno/v2alpha1/globalContextEntryList.js +113 -0
- package/dist/kyverno/v2alpha1/globalContextEntryPatch.d.ts +71 -0
- package/dist/kyverno/v2alpha1/globalContextEntryPatch.js +116 -0
- package/dist/kyverno/v2alpha1/index.d.ts +9 -0
- package/dist/kyverno/v2alpha1/index.js +62 -0
- package/dist/kyverno/v2beta1/cleanupPolicy.d.ts +65 -0
- package/dist/kyverno/v2beta1/cleanupPolicy.js +112 -0
- package/dist/kyverno/v2beta1/cleanupPolicyList.d.ts +69 -0
- package/dist/kyverno/v2beta1/cleanupPolicyList.js +113 -0
- package/dist/kyverno/v2beta1/cleanupPolicyPatch.d.ts +71 -0
- package/dist/kyverno/v2beta1/cleanupPolicyPatch.js +118 -0
- package/dist/kyverno/v2beta1/clusterCleanupPolicy.d.ts +65 -0
- package/dist/kyverno/v2beta1/clusterCleanupPolicy.js +112 -0
- package/dist/kyverno/v2beta1/clusterCleanupPolicyList.d.ts +69 -0
- package/dist/kyverno/v2beta1/clusterCleanupPolicyList.js +113 -0
- package/dist/kyverno/v2beta1/clusterCleanupPolicyPatch.d.ts +71 -0
- package/dist/kyverno/v2beta1/clusterCleanupPolicyPatch.js +118 -0
- package/dist/kyverno/v2beta1/clusterPolicy.d.ts +65 -0
- package/dist/kyverno/v2beta1/clusterPolicy.js +112 -0
- package/dist/kyverno/v2beta1/clusterPolicyList.d.ts +69 -0
- package/dist/kyverno/v2beta1/clusterPolicyList.js +113 -0
- package/dist/kyverno/v2beta1/clusterPolicyPatch.d.ts +71 -0
- package/dist/kyverno/v2beta1/clusterPolicyPatch.js +118 -0
- package/dist/kyverno/v2beta1/index.d.ts +45 -0
- package/dist/kyverno/v2beta1/index.js +110 -0
- package/dist/kyverno/v2beta1/policy.d.ts +66 -0
- package/dist/kyverno/v2beta1/policy.js +113 -0
- package/dist/kyverno/v2beta1/policyException.d.ts +64 -0
- package/dist/kyverno/v2beta1/policyException.js +109 -0
- package/dist/kyverno/v2beta1/policyExceptionList.d.ts +69 -0
- package/dist/kyverno/v2beta1/policyExceptionList.js +113 -0
- package/dist/kyverno/v2beta1/policyExceptionPatch.d.ts +70 -0
- package/dist/kyverno/v2beta1/policyExceptionPatch.js +115 -0
- package/dist/kyverno/v2beta1/policyList.d.ts +69 -0
- package/dist/kyverno/v2beta1/policyList.js +113 -0
- package/dist/kyverno/v2beta1/policyPatch.d.ts +72 -0
- package/dist/kyverno/v2beta1/policyPatch.js +119 -0
- package/dist/types/input.d.ts +61250 -8
- package/dist/types/output.d.ts +78051 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,10 @@ import * as cert_manager from "./cert_manager";
|
|
|
7
7
|
import * as cilium from "./cilium";
|
|
8
8
|
import * as external_secrets from "./external_secrets";
|
|
9
9
|
import * as gateway from "./gateway";
|
|
10
|
+
import * as kyverno from "./kyverno";
|
|
10
11
|
import * as minio from "./minio";
|
|
11
12
|
import * as postgresql from "./postgresql";
|
|
12
13
|
import * as sts from "./sts";
|
|
13
14
|
import * as types from "./types";
|
|
14
15
|
import * as velero from "./velero";
|
|
15
|
-
export { acme, argoproj, cert_manager, cilium, external_secrets, gateway, minio, postgresql, sts, types, velero, };
|
|
16
|
+
export { acme, argoproj, cert_manager, cilium, external_secrets, gateway, kyverno, minio, postgresql, sts, types, velero, };
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
};
|
|
36
36
|
})();
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.velero = exports.types = exports.sts = exports.postgresql = exports.minio = exports.gateway = exports.external_secrets = exports.cilium = exports.cert_manager = exports.argoproj = exports.acme = exports.Provider = void 0;
|
|
38
|
+
exports.velero = exports.types = exports.sts = exports.postgresql = exports.minio = exports.kyverno = exports.gateway = exports.external_secrets = exports.cilium = exports.cert_manager = exports.argoproj = exports.acme = exports.Provider = void 0;
|
|
39
39
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
40
40
|
const utilities = __importStar(require("./utilities"));
|
|
41
41
|
exports.Provider = null;
|
|
@@ -53,6 +53,8 @@ const external_secrets = __importStar(require("./external_secrets"));
|
|
|
53
53
|
exports.external_secrets = external_secrets;
|
|
54
54
|
const gateway = __importStar(require("./gateway"));
|
|
55
55
|
exports.gateway = gateway;
|
|
56
|
+
const kyverno = __importStar(require("./kyverno"));
|
|
57
|
+
exports.kyverno = kyverno;
|
|
56
58
|
const minio = __importStar(require("./minio"));
|
|
57
59
|
exports.minio = minio;
|
|
58
60
|
const postgresql = __importStar(require("./postgresql"));
|
|
@@ -0,0 +1,49 @@
|
|
|
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.v2beta1 = exports.v2alpha1 = exports.v2 = exports.v1beta1 = exports.v1 = void 0;
|
|
39
|
+
// Export sub-modules:
|
|
40
|
+
const v1 = __importStar(require("./v1"));
|
|
41
|
+
exports.v1 = v1;
|
|
42
|
+
const v1beta1 = __importStar(require("./v1beta1"));
|
|
43
|
+
exports.v1beta1 = v1beta1;
|
|
44
|
+
const v2 = __importStar(require("./v2"));
|
|
45
|
+
exports.v2 = v2;
|
|
46
|
+
const v2alpha1 = __importStar(require("./v2alpha1"));
|
|
47
|
+
exports.v2alpha1 = v2alpha1;
|
|
48
|
+
const v2beta1 = __importStar(require("./v2beta1"));
|
|
49
|
+
exports.v2beta1 = v2beta1;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../../types/input";
|
|
3
|
+
import * as outputs from "../../types/output";
|
|
4
|
+
import { ObjectMeta } from "../../meta/v1";
|
|
5
|
+
/**
|
|
6
|
+
* ClusterPolicy declares validation, mutation, and generation behaviors for matching resources.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ClusterPolicy extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ClusterPolicy resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
16
|
+
*/
|
|
17
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ClusterPolicy;
|
|
18
|
+
/** @internal */
|
|
19
|
+
static readonly __pulumiType = "kubernetes:kyverno.io/v1:ClusterPolicy";
|
|
20
|
+
/**
|
|
21
|
+
* Returns true if the given object is an instance of ClusterPolicy. This is designed to work even
|
|
22
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
23
|
+
*/
|
|
24
|
+
static isInstance(obj: any): obj is ClusterPolicy;
|
|
25
|
+
/**
|
|
26
|
+
* 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
|
|
27
|
+
*/
|
|
28
|
+
readonly apiVersion: pulumi.Output<"kyverno.io/v1">;
|
|
29
|
+
/**
|
|
30
|
+
* 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
|
|
31
|
+
*/
|
|
32
|
+
readonly kind: pulumi.Output<"ClusterPolicy">;
|
|
33
|
+
/**
|
|
34
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
35
|
+
*/
|
|
36
|
+
readonly metadata: pulumi.Output<ObjectMeta>;
|
|
37
|
+
readonly spec: pulumi.Output<outputs.kyverno.v1.ClusterPolicySpec>;
|
|
38
|
+
readonly status: pulumi.Output<outputs.kyverno.v1.ClusterPolicyStatus>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a ClusterPolicy resource with the given unique name, arguments, and options.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resource.
|
|
43
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
44
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
45
|
+
*/
|
|
46
|
+
constructor(name: string, args?: ClusterPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The set of arguments for constructing a ClusterPolicy resource.
|
|
50
|
+
*/
|
|
51
|
+
export interface ClusterPolicyArgs {
|
|
52
|
+
/**
|
|
53
|
+
* 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
|
|
54
|
+
*/
|
|
55
|
+
apiVersion?: pulumi.Input<"kyverno.io/v1">;
|
|
56
|
+
/**
|
|
57
|
+
* 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
|
|
58
|
+
*/
|
|
59
|
+
kind?: pulumi.Input<"ClusterPolicy">;
|
|
60
|
+
/**
|
|
61
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
62
|
+
*/
|
|
63
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
|
64
|
+
spec?: pulumi.Input<inputs.kyverno.v1.ClusterPolicySpec>;
|
|
65
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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.ClusterPolicy = void 0;
|
|
39
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
40
|
+
const utilities = __importStar(require("../../utilities"));
|
|
41
|
+
/**
|
|
42
|
+
* ClusterPolicy declares validation, mutation, and generation behaviors for matching resources.
|
|
43
|
+
*/
|
|
44
|
+
class ClusterPolicy extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ClusterPolicy 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 ClusterPolicy(name, undefined, { ...opts, id: id });
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
57
|
+
static __pulumiType = 'kubernetes:kyverno.io/v1:ClusterPolicy';
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the given object is an instance of ClusterPolicy. 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'] === ClusterPolicy.__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
|
+
* 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
|
|
74
|
+
*/
|
|
75
|
+
kind;
|
|
76
|
+
/**
|
|
77
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
78
|
+
*/
|
|
79
|
+
metadata;
|
|
80
|
+
spec;
|
|
81
|
+
status;
|
|
82
|
+
/**
|
|
83
|
+
* Create a ClusterPolicy resource with the given unique name, arguments, and options.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resource.
|
|
86
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
87
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
88
|
+
*/
|
|
89
|
+
constructor(name, args, opts) {
|
|
90
|
+
let resourceInputs = {};
|
|
91
|
+
opts = opts || {};
|
|
92
|
+
if (!opts.id) {
|
|
93
|
+
resourceInputs["apiVersion"] = "kyverno.io/v1";
|
|
94
|
+
resourceInputs["kind"] = "ClusterPolicy";
|
|
95
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
96
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
|
97
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
103
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
104
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
105
|
+
}
|
|
106
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
107
|
+
const aliasOpts = { aliases: [{ type: "kubernetes:kyverno.io/v2beta1:ClusterPolicy" }] };
|
|
108
|
+
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
109
|
+
super(ClusterPolicy.__pulumiType, name, resourceInputs, opts);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.ClusterPolicy = ClusterPolicy;
|
|
@@ -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
|
+
* ClusterPolicyList is a list of ClusterPolicy
|
|
6
|
+
*/
|
|
7
|
+
export declare class ClusterPolicyList extends pulumi.CustomResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get an existing ClusterPolicyList 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): ClusterPolicyList;
|
|
17
|
+
/** @internal */
|
|
18
|
+
static readonly __pulumiType = "kubernetes:kyverno.io/v1:ClusterPolicyList";
|
|
19
|
+
/**
|
|
20
|
+
* Returns true if the given object is an instance of ClusterPolicyList. 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 ClusterPolicyList;
|
|
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 clusterpolicies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
|
30
|
+
*/
|
|
31
|
+
readonly items: pulumi.Output<outputs.kyverno.v1.ClusterPolicy[]>;
|
|
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<"ClusterPolicyList">;
|
|
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 ClusterPolicyList 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?: ClusterPolicyListArgs, opts?: pulumi.CustomResourceOptions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The set of arguments for constructing a ClusterPolicyList resource.
|
|
51
|
+
*/
|
|
52
|
+
export interface ClusterPolicyListArgs {
|
|
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 clusterpolicies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
|
59
|
+
*/
|
|
60
|
+
items: pulumi.Input<pulumi.Input<inputs.kyverno.v1.ClusterPolicy>[]>;
|
|
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<"ClusterPolicyList">;
|
|
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.ClusterPolicyList = void 0;
|
|
39
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
40
|
+
const utilities = __importStar(require("../../utilities"));
|
|
41
|
+
/**
|
|
42
|
+
* ClusterPolicyList is a list of ClusterPolicy
|
|
43
|
+
*/
|
|
44
|
+
class ClusterPolicyList extends pulumi.CustomResource {
|
|
45
|
+
/**
|
|
46
|
+
* Get an existing ClusterPolicyList 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 ClusterPolicyList(name, undefined, { ...opts, id: id });
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
57
|
+
static __pulumiType = 'kubernetes:kyverno.io/v1:ClusterPolicyList';
|
|
58
|
+
/**
|
|
59
|
+
* Returns true if the given object is an instance of ClusterPolicyList. 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'] === ClusterPolicyList.__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 clusterpolicies. 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 ClusterPolicyList 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"] = "ClusterPolicyList";
|
|
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(ClusterPolicyList.__pulumiType, name, resourceInputs, opts);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.ClusterPolicyList = ClusterPolicyList;
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
* ClusterPolicy declares validation, mutation, and generation behaviors for matching resources.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ClusterPolicyPatch extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing ClusterPolicyPatch 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
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ClusterPolicyPatch;
|
|
24
|
+
/** @internal */
|
|
25
|
+
static readonly __pulumiType = "kubernetes:kyverno.io/v1:ClusterPolicyPatch";
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of ClusterPolicyPatch. This is designed to work even
|
|
28
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
+
*/
|
|
30
|
+
static isInstance(obj: any): obj is ClusterPolicyPatch;
|
|
31
|
+
/**
|
|
32
|
+
* 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
|
|
33
|
+
*/
|
|
34
|
+
readonly apiVersion: pulumi.Output<"kyverno.io/v1">;
|
|
35
|
+
/**
|
|
36
|
+
* 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
|
|
37
|
+
*/
|
|
38
|
+
readonly kind: pulumi.Output<"ClusterPolicy">;
|
|
39
|
+
/**
|
|
40
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
41
|
+
*/
|
|
42
|
+
readonly metadata: pulumi.Output<ObjectMetaPatch>;
|
|
43
|
+
readonly spec: pulumi.Output<outputs.kyverno.v1.ClusterPolicySpecPatch>;
|
|
44
|
+
readonly status: pulumi.Output<outputs.kyverno.v1.ClusterPolicyStatusPatch>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a ClusterPolicyPatch resource with the given unique name, arguments, and options.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resource.
|
|
49
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
50
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
51
|
+
*/
|
|
52
|
+
constructor(name: string, args?: ClusterPolicyPatchArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The set of arguments for constructing a ClusterPolicyPatch resource.
|
|
56
|
+
*/
|
|
57
|
+
export interface ClusterPolicyPatchArgs {
|
|
58
|
+
/**
|
|
59
|
+
* 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
|
|
60
|
+
*/
|
|
61
|
+
apiVersion?: pulumi.Input<"kyverno.io/v1">;
|
|
62
|
+
/**
|
|
63
|
+
* 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
|
|
64
|
+
*/
|
|
65
|
+
kind?: pulumi.Input<"ClusterPolicy">;
|
|
66
|
+
/**
|
|
67
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
68
|
+
*/
|
|
69
|
+
metadata?: pulumi.Input<ObjectMetaPatch>;
|
|
70
|
+
spec?: pulumi.Input<inputs.kyverno.v1.ClusterPolicySpecPatch>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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.ClusterPolicyPatch = 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
|
+
* ClusterPolicy declares validation, mutation, and generation behaviors for matching resources.
|
|
49
|
+
*/
|
|
50
|
+
class ClusterPolicyPatch extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing ClusterPolicyPatch resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name, id, opts) {
|
|
60
|
+
return new ClusterPolicyPatch(name, undefined, { ...opts, id: id });
|
|
61
|
+
}
|
|
62
|
+
/** @internal */
|
|
63
|
+
static __pulumiType = 'kubernetes:kyverno.io/v1:ClusterPolicyPatch';
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if the given object is an instance of ClusterPolicyPatch. This is designed to work even
|
|
66
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
67
|
+
*/
|
|
68
|
+
static isInstance(obj) {
|
|
69
|
+
if (obj === undefined || obj === null) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
return obj['__pulumiType'] === ClusterPolicyPatch.__pulumiType;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 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
|
|
76
|
+
*/
|
|
77
|
+
apiVersion;
|
|
78
|
+
/**
|
|
79
|
+
* 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
|
|
80
|
+
*/
|
|
81
|
+
kind;
|
|
82
|
+
/**
|
|
83
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
84
|
+
*/
|
|
85
|
+
metadata;
|
|
86
|
+
spec;
|
|
87
|
+
status;
|
|
88
|
+
/**
|
|
89
|
+
* Create a ClusterPolicyPatch resource with the given unique name, arguments, and options.
|
|
90
|
+
*
|
|
91
|
+
* @param name The _unique_ name of the resource.
|
|
92
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
93
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
94
|
+
*/
|
|
95
|
+
constructor(name, args, opts) {
|
|
96
|
+
let resourceInputs = {};
|
|
97
|
+
opts = opts || {};
|
|
98
|
+
if (!opts.id) {
|
|
99
|
+
resourceInputs["apiVersion"] = "kyverno.io/v1";
|
|
100
|
+
resourceInputs["kind"] = "ClusterPolicy";
|
|
101
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
102
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
|
103
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
|
107
|
+
resourceInputs["kind"] = undefined /*out*/;
|
|
108
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
|
109
|
+
resourceInputs["spec"] = undefined /*out*/;
|
|
110
|
+
resourceInputs["status"] = undefined /*out*/;
|
|
111
|
+
}
|
|
112
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
113
|
+
const aliasOpts = { aliases: [{ type: "kubernetes:kyverno.io/v2beta1:ClusterPolicyPatch" }] };
|
|
114
|
+
opts = pulumi.mergeOptions(opts, aliasOpts);
|
|
115
|
+
super(ClusterPolicyPatch.__pulumiType, name, resourceInputs, opts);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.ClusterPolicyPatch = ClusterPolicyPatch;
|