@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.
- package/CHANGELOG.md +10 -0
- package/README.md +14 -0
- package/bin/cilium/index.d.ts +2 -0
- package/bin/cilium/index.js +9 -0
- package/bin/cilium/index.js.map +1 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicy.d.ts +73 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicy.js +68 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicy.js.map +1 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicyList.d.ts +67 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicyList.js +65 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicyList.js.map +1 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicyPatch.d.ts +79 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicyPatch.js +74 -0
- package/bin/cilium/v2/ciliumClusterwideNetworkPolicyPatch.js.map +1 -0
- package/bin/cilium/v2/ciliumNetworkPolicy.d.ts +72 -0
- package/bin/cilium/v2/ciliumNetworkPolicy.js +67 -0
- package/bin/cilium/v2/ciliumNetworkPolicy.js.map +1 -0
- package/bin/cilium/v2/ciliumNetworkPolicyList.d.ts +67 -0
- package/bin/cilium/v2/ciliumNetworkPolicyList.js +65 -0
- package/bin/cilium/v2/ciliumNetworkPolicyList.js.map +1 -0
- package/bin/cilium/v2/ciliumNetworkPolicyPatch.d.ts +78 -0
- package/bin/cilium/v2/ciliumNetworkPolicyPatch.js +73 -0
- package/bin/cilium/v2/ciliumNetworkPolicyPatch.js.map +1 -0
- package/bin/cilium/v2/index.d.ts +18 -0
- package/bin/cilium/v2/index.js +42 -0
- package/bin/cilium/v2/index.js.map +1 -0
- package/bin/index.d.ts +6 -0
- package/bin/index.js +24 -0
- package/bin/index.js.map +1 -0
- package/bin/meta/v1.d.ts +3 -0
- package/bin/meta/v1.js +3 -0
- package/bin/meta/v1.js.map +1 -0
- package/bin/package.json +42 -0
- package/bin/provider.d.ts +21 -0
- package/bin/provider.js +38 -0
- package/bin/provider.js.map +1 -0
- package/bin/types/index.d.ts +3 -0
- package/bin/types/index.js +11 -0
- package/bin/types/index.js.map +1 -0
- package/bin/types/input.d.ts +20087 -0
- package/bin/types/input.js +5 -0
- package/bin/types/input.js.map +1 -0
- package/bin/types/output.d.ts +20164 -0
- package/bin/types/output.js +5 -0
- package/bin/types/output.js.map +1 -0
- package/bin/utilities.d.ts +8 -0
- package/bin/utilities.js +102 -0
- package/bin/utilities.js.map +1 -0
- package/cilium/index.ts +11 -0
- package/cilium/v2/ciliumClusterwideNetworkPolicy.ts +113 -0
- package/cilium/v2/ciliumClusterwideNetworkPolicyList.ts +107 -0
- package/cilium/v2/ciliumClusterwideNetworkPolicyPatch.ts +119 -0
- package/cilium/v2/ciliumNetworkPolicy.ts +112 -0
- package/cilium/v2/ciliumNetworkPolicyList.ts +107 -0
- package/cilium/v2/ciliumNetworkPolicyPatch.ts +118 -0
- package/cilium/v2/index.ts +60 -0
- package/index.ts +30 -0
- package/meta/v1.ts +4 -0
- package/package.json +43 -0
- package/provider.ts +44 -0
- package/scripts/postinstall.js +13 -0
- package/tsconfig.json +31 -0
- package/types/index.ts +13 -0
- package/types/input.ts +20541 -0
- package/types/output.ts +20615 -0
- package/utilities.ts +97 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,iFAAiF"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
5
|
+
export declare const getVersion: () => string;
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
7
|
+
property?: string;
|
8
|
+
}): Promise<T>;
|
package/bin/utilities.js
ADDED
@@ -0,0 +1,102 @@
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
11
|
+
});
|
12
|
+
};
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
+
exports.getVersion = void 0;
|
15
|
+
exports.getEnv = getEnv;
|
16
|
+
exports.getEnvBoolean = getEnvBoolean;
|
17
|
+
exports.getEnvNumber = getEnvNumber;
|
18
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
19
|
+
exports.lazyLoad = lazyLoad;
|
20
|
+
exports.callAsync = callAsync;
|
21
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
22
|
+
function getEnv(...vars) {
|
23
|
+
for (const v of vars) {
|
24
|
+
const value = process.env[v];
|
25
|
+
if (value) {
|
26
|
+
return value;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return undefined;
|
30
|
+
}
|
31
|
+
function getEnvBoolean(...vars) {
|
32
|
+
const s = getEnv(...vars);
|
33
|
+
if (s !== undefined) {
|
34
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
35
|
+
// Terraform uses internally when parsing boolean values.
|
36
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
37
|
+
return true;
|
38
|
+
}
|
39
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
40
|
+
return false;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
return undefined;
|
44
|
+
}
|
45
|
+
function getEnvNumber(...vars) {
|
46
|
+
const s = getEnv(...vars);
|
47
|
+
if (s !== undefined) {
|
48
|
+
const f = parseFloat(s);
|
49
|
+
if (!isNaN(f)) {
|
50
|
+
return f;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
return undefined;
|
54
|
+
}
|
55
|
+
const getVersion = () => "4.18.0";
|
56
|
+
exports.getVersion = getVersion;
|
57
|
+
function unusedGetVersion() {
|
58
|
+
let version = require('./package.json').version;
|
59
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
60
|
+
// If there is a v, strip it off.
|
61
|
+
if (version.indexOf('v') === 0) {
|
62
|
+
version = version.slice(1);
|
63
|
+
}
|
64
|
+
return version;
|
65
|
+
}
|
66
|
+
/** @internal */
|
67
|
+
function resourceOptsDefaults() {
|
68
|
+
return { version: (0, exports.getVersion)() };
|
69
|
+
}
|
70
|
+
/** @internal */
|
71
|
+
function lazyLoad(exports, props, loadModule) {
|
72
|
+
for (let property of props) {
|
73
|
+
Object.defineProperty(exports, property, {
|
74
|
+
enumerable: true,
|
75
|
+
get: function () {
|
76
|
+
return loadModule()[property];
|
77
|
+
},
|
78
|
+
});
|
79
|
+
}
|
80
|
+
}
|
81
|
+
function callAsync(tok, props, res, opts) {
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
83
|
+
const o = runtime.call(tok, props, res);
|
84
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
85
|
+
const isKnown = yield o.isKnown;
|
86
|
+
const isSecret = yield o.isSecret;
|
87
|
+
const problem = !isKnown ? "an unknown value"
|
88
|
+
: isSecret ? "a secret value"
|
89
|
+
: undefined;
|
90
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
91
|
+
if (problem) {
|
92
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
93
|
+
"This is an error in the provider, please report this to the provider developer.");
|
94
|
+
}
|
95
|
+
// Extract a single property if requested.
|
96
|
+
if (opts && opts.property) {
|
97
|
+
return value[opts.property];
|
98
|
+
}
|
99
|
+
return value;
|
100
|
+
});
|
101
|
+
}
|
102
|
+
//# sourceMappingURL=utilities.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":"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"}
|
package/cilium/index.ts
ADDED
@@ -0,0 +1,11 @@
|
|
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 v2 from "./v2";
|
8
|
+
|
9
|
+
export {
|
10
|
+
v2,
|
11
|
+
};
|
@@ -0,0 +1,113 @@
|
|
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
|
+
* CiliumClusterwideNetworkPolicy is a Kubernetes third-party resource with an
|
13
|
+
* modified version of CiliumNetworkPolicy which is cluster scoped rather than
|
14
|
+
* namespace scoped.
|
15
|
+
*/
|
16
|
+
export class CiliumClusterwideNetworkPolicy extends pulumi.CustomResource {
|
17
|
+
/**
|
18
|
+
* Get an existing CiliumClusterwideNetworkPolicy resource's state with the given name, ID, and optional extra
|
19
|
+
* properties used to qualify the lookup.
|
20
|
+
*
|
21
|
+
* @param name The _unique_ name of the resulting resource.
|
22
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
23
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
24
|
+
*/
|
25
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CiliumClusterwideNetworkPolicy {
|
26
|
+
return new CiliumClusterwideNetworkPolicy(name, undefined as any, { ...opts, id: id });
|
27
|
+
}
|
28
|
+
|
29
|
+
/** @internal */
|
30
|
+
public static readonly __pulumiType = 'kubernetes:cilium.io/v2:CiliumClusterwideNetworkPolicy';
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Returns true if the given object is an instance of CiliumClusterwideNetworkPolicy. This is designed to work even
|
34
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
35
|
+
*/
|
36
|
+
public static isInstance(obj: any): obj is CiliumClusterwideNetworkPolicy {
|
37
|
+
if (obj === undefined || obj === null) {
|
38
|
+
return false;
|
39
|
+
}
|
40
|
+
return obj['__pulumiType'] === CiliumClusterwideNetworkPolicy.__pulumiType;
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* 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
|
45
|
+
*/
|
46
|
+
public readonly apiVersion!: pulumi.Output<"cilium.io/v2">;
|
47
|
+
/**
|
48
|
+
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
49
|
+
*/
|
50
|
+
public readonly kind!: pulumi.Output<"CiliumClusterwideNetworkPolicy">;
|
51
|
+
/**
|
52
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
53
|
+
*/
|
54
|
+
public readonly metadata!: pulumi.Output<ObjectMeta>;
|
55
|
+
public readonly spec!: pulumi.Output<outputs.cilium.v2.CiliumClusterwideNetworkPolicySpec>;
|
56
|
+
/**
|
57
|
+
* Specs is a list of desired Cilium specific rule specification.
|
58
|
+
*/
|
59
|
+
public readonly specs!: pulumi.Output<outputs.cilium.v2.CiliumClusterwideNetworkPolicySpecs[]>;
|
60
|
+
public /*out*/ readonly status!: pulumi.Output<outputs.cilium.v2.CiliumClusterwideNetworkPolicyStatus>;
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Create a CiliumClusterwideNetworkPolicy resource with the given unique name, arguments, and options.
|
64
|
+
*
|
65
|
+
* @param name The _unique_ name of the resource.
|
66
|
+
* @param args The arguments to use to populate this resource's properties.
|
67
|
+
* @param opts A bag of options that control this resource's behavior.
|
68
|
+
*/
|
69
|
+
constructor(name: string, args?: CiliumClusterwideNetworkPolicyArgs, opts?: pulumi.CustomResourceOptions) {
|
70
|
+
let resourceInputs: pulumi.Inputs = {};
|
71
|
+
opts = opts || {};
|
72
|
+
if (!opts.id) {
|
73
|
+
resourceInputs["apiVersion"] = "cilium.io/v2";
|
74
|
+
resourceInputs["kind"] = "CiliumClusterwideNetworkPolicy";
|
75
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
76
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
77
|
+
resourceInputs["specs"] = args ? args.specs : undefined;
|
78
|
+
resourceInputs["status"] = undefined /*out*/;
|
79
|
+
} else {
|
80
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
81
|
+
resourceInputs["kind"] = undefined /*out*/;
|
82
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
83
|
+
resourceInputs["spec"] = undefined /*out*/;
|
84
|
+
resourceInputs["specs"] = undefined /*out*/;
|
85
|
+
resourceInputs["status"] = undefined /*out*/;
|
86
|
+
}
|
87
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
88
|
+
super(CiliumClusterwideNetworkPolicy.__pulumiType, name, resourceInputs, opts);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* The set of arguments for constructing a CiliumClusterwideNetworkPolicy resource.
|
94
|
+
*/
|
95
|
+
export interface CiliumClusterwideNetworkPolicyArgs {
|
96
|
+
/**
|
97
|
+
* 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
|
98
|
+
*/
|
99
|
+
apiVersion?: pulumi.Input<"cilium.io/v2">;
|
100
|
+
/**
|
101
|
+
* 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
|
102
|
+
*/
|
103
|
+
kind?: pulumi.Input<"CiliumClusterwideNetworkPolicy">;
|
104
|
+
/**
|
105
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
106
|
+
*/
|
107
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
108
|
+
spec?: pulumi.Input<inputs.cilium.v2.CiliumClusterwideNetworkPolicySpec>;
|
109
|
+
/**
|
110
|
+
* Specs is a list of desired Cilium specific rule specification.
|
111
|
+
*/
|
112
|
+
specs?: pulumi.Input<pulumi.Input<inputs.cilium.v2.CiliumClusterwideNetworkPolicySpecs>[]>;
|
113
|
+
}
|
@@ -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
|
+
* CiliumClusterwideNetworkPolicyList is a list of CiliumClusterwideNetworkPolicy
|
13
|
+
*/
|
14
|
+
export class CiliumClusterwideNetworkPolicyList extends pulumi.CustomResource {
|
15
|
+
/**
|
16
|
+
* Get an existing CiliumClusterwideNetworkPolicyList 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): CiliumClusterwideNetworkPolicyList {
|
24
|
+
return new CiliumClusterwideNetworkPolicyList(name, undefined as any, { ...opts, id: id });
|
25
|
+
}
|
26
|
+
|
27
|
+
/** @internal */
|
28
|
+
public static readonly __pulumiType = 'kubernetes:cilium.io/v2:CiliumClusterwideNetworkPolicyList';
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Returns true if the given object is an instance of CiliumClusterwideNetworkPolicyList. 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 CiliumClusterwideNetworkPolicyList {
|
35
|
+
if (obj === undefined || obj === null) {
|
36
|
+
return false;
|
37
|
+
}
|
38
|
+
return obj['__pulumiType'] === CiliumClusterwideNetworkPolicyList.__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 ciliumclusterwidenetworkpolicies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
47
|
+
*/
|
48
|
+
public readonly items!: pulumi.Output<outputs.cilium.v2.CiliumClusterwideNetworkPolicy[]>;
|
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<"CiliumClusterwideNetworkPolicyList">;
|
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 CiliumClusterwideNetworkPolicyList 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?: CiliumClusterwideNetworkPolicyListArgs, 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"] = "CiliumClusterwideNetworkPolicyList";
|
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(CiliumClusterwideNetworkPolicyList.__pulumiType, name, resourceInputs, opts);
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
/**
|
88
|
+
* The set of arguments for constructing a CiliumClusterwideNetworkPolicyList resource.
|
89
|
+
*/
|
90
|
+
export interface CiliumClusterwideNetworkPolicyListArgs {
|
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 ciliumclusterwidenetworkpolicies. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
|
97
|
+
*/
|
98
|
+
items: pulumi.Input<pulumi.Input<inputs.cilium.v2.CiliumClusterwideNetworkPolicy>[]>;
|
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<"CiliumClusterwideNetworkPolicyList">;
|
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,119 @@
|
|
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
|
+
* CiliumClusterwideNetworkPolicy is a Kubernetes third-party resource with an
|
19
|
+
* modified version of CiliumNetworkPolicy which is cluster scoped rather than
|
20
|
+
* namespace scoped.
|
21
|
+
*/
|
22
|
+
export class CiliumClusterwideNetworkPolicyPatch extends pulumi.CustomResource {
|
23
|
+
/**
|
24
|
+
* Get an existing CiliumClusterwideNetworkPolicyPatch resource's state with the given name, ID, and optional extra
|
25
|
+
* properties used to qualify the lookup.
|
26
|
+
*
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
29
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
30
|
+
*/
|
31
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CiliumClusterwideNetworkPolicyPatch {
|
32
|
+
return new CiliumClusterwideNetworkPolicyPatch(name, undefined as any, { ...opts, id: id });
|
33
|
+
}
|
34
|
+
|
35
|
+
/** @internal */
|
36
|
+
public static readonly __pulumiType = 'kubernetes:cilium.io/v2:CiliumClusterwideNetworkPolicyPatch';
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Returns true if the given object is an instance of CiliumClusterwideNetworkPolicyPatch. This is designed to work even
|
40
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
41
|
+
*/
|
42
|
+
public static isInstance(obj: any): obj is CiliumClusterwideNetworkPolicyPatch {
|
43
|
+
if (obj === undefined || obj === null) {
|
44
|
+
return false;
|
45
|
+
}
|
46
|
+
return obj['__pulumiType'] === CiliumClusterwideNetworkPolicyPatch.__pulumiType;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* 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
|
51
|
+
*/
|
52
|
+
public readonly apiVersion!: pulumi.Output<"cilium.io/v2">;
|
53
|
+
/**
|
54
|
+
* 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
|
55
|
+
*/
|
56
|
+
public readonly kind!: pulumi.Output<"CiliumClusterwideNetworkPolicy">;
|
57
|
+
/**
|
58
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
59
|
+
*/
|
60
|
+
public readonly metadata!: pulumi.Output<ObjectMetaPatch>;
|
61
|
+
public readonly spec!: pulumi.Output<outputs.cilium.v2.CiliumClusterwideNetworkPolicySpecPatch>;
|
62
|
+
/**
|
63
|
+
* Specs is a list of desired Cilium specific rule specification.
|
64
|
+
*/
|
65
|
+
public readonly specs!: pulumi.Output<outputs.cilium.v2.CiliumClusterwideNetworkPolicySpecsPatch[]>;
|
66
|
+
public /*out*/ readonly status!: pulumi.Output<outputs.cilium.v2.CiliumClusterwideNetworkPolicyStatusPatch>;
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Create a CiliumClusterwideNetworkPolicyPatch resource with the given unique name, arguments, and options.
|
70
|
+
*
|
71
|
+
* @param name The _unique_ name of the resource.
|
72
|
+
* @param args The arguments to use to populate this resource's properties.
|
73
|
+
* @param opts A bag of options that control this resource's behavior.
|
74
|
+
*/
|
75
|
+
constructor(name: string, args?: CiliumClusterwideNetworkPolicyPatchArgs, opts?: pulumi.CustomResourceOptions) {
|
76
|
+
let resourceInputs: pulumi.Inputs = {};
|
77
|
+
opts = opts || {};
|
78
|
+
if (!opts.id) {
|
79
|
+
resourceInputs["apiVersion"] = "cilium.io/v2";
|
80
|
+
resourceInputs["kind"] = "CiliumClusterwideNetworkPolicy";
|
81
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
82
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
83
|
+
resourceInputs["specs"] = args ? args.specs : undefined;
|
84
|
+
resourceInputs["status"] = undefined /*out*/;
|
85
|
+
} else {
|
86
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
87
|
+
resourceInputs["kind"] = undefined /*out*/;
|
88
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
89
|
+
resourceInputs["spec"] = undefined /*out*/;
|
90
|
+
resourceInputs["specs"] = undefined /*out*/;
|
91
|
+
resourceInputs["status"] = undefined /*out*/;
|
92
|
+
}
|
93
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
94
|
+
super(CiliumClusterwideNetworkPolicyPatch.__pulumiType, name, resourceInputs, opts);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
/**
|
99
|
+
* The set of arguments for constructing a CiliumClusterwideNetworkPolicyPatch resource.
|
100
|
+
*/
|
101
|
+
export interface CiliumClusterwideNetworkPolicyPatchArgs {
|
102
|
+
/**
|
103
|
+
* 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
|
104
|
+
*/
|
105
|
+
apiVersion?: pulumi.Input<"cilium.io/v2">;
|
106
|
+
/**
|
107
|
+
* 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
|
108
|
+
*/
|
109
|
+
kind?: pulumi.Input<"CiliumClusterwideNetworkPolicy">;
|
110
|
+
/**
|
111
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
112
|
+
*/
|
113
|
+
metadata?: pulumi.Input<ObjectMetaPatch>;
|
114
|
+
spec?: pulumi.Input<inputs.cilium.v2.CiliumClusterwideNetworkPolicySpecPatch>;
|
115
|
+
/**
|
116
|
+
* Specs is a list of desired Cilium specific rule specification.
|
117
|
+
*/
|
118
|
+
specs?: pulumi.Input<pulumi.Input<inputs.cilium.v2.CiliumClusterwideNetworkPolicySpecsPatch>[]>;
|
119
|
+
}
|
@@ -0,0 +1,112 @@
|
|
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
|
+
* CiliumNetworkPolicy is a Kubernetes third-party resource with an extended
|
13
|
+
* version of NetworkPolicy.
|
14
|
+
*/
|
15
|
+
export class CiliumNetworkPolicy extends pulumi.CustomResource {
|
16
|
+
/**
|
17
|
+
* Get an existing CiliumNetworkPolicy 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
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CiliumNetworkPolicy {
|
25
|
+
return new CiliumNetworkPolicy(name, undefined as any, { ...opts, id: id });
|
26
|
+
}
|
27
|
+
|
28
|
+
/** @internal */
|
29
|
+
public static readonly __pulumiType = 'kubernetes:cilium.io/v2:CiliumNetworkPolicy';
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Returns true if the given object is an instance of CiliumNetworkPolicy. This is designed to work even
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
34
|
+
*/
|
35
|
+
public static isInstance(obj: any): obj is CiliumNetworkPolicy {
|
36
|
+
if (obj === undefined || obj === null) {
|
37
|
+
return false;
|
38
|
+
}
|
39
|
+
return obj['__pulumiType'] === CiliumNetworkPolicy.__pulumiType;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* 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
|
44
|
+
*/
|
45
|
+
public readonly apiVersion!: pulumi.Output<"cilium.io/v2">;
|
46
|
+
/**
|
47
|
+
* 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
|
48
|
+
*/
|
49
|
+
public readonly kind!: pulumi.Output<"CiliumNetworkPolicy">;
|
50
|
+
/**
|
51
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
52
|
+
*/
|
53
|
+
public readonly metadata!: pulumi.Output<ObjectMeta>;
|
54
|
+
public readonly spec!: pulumi.Output<outputs.cilium.v2.CiliumNetworkPolicySpec>;
|
55
|
+
/**
|
56
|
+
* Specs is a list of desired Cilium specific rule specification.
|
57
|
+
*/
|
58
|
+
public readonly specs!: pulumi.Output<outputs.cilium.v2.CiliumNetworkPolicySpecs[]>;
|
59
|
+
public /*out*/ readonly status!: pulumi.Output<outputs.cilium.v2.CiliumNetworkPolicyStatus>;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Create a CiliumNetworkPolicy resource with the given unique name, arguments, and options.
|
63
|
+
*
|
64
|
+
* @param name The _unique_ name of the resource.
|
65
|
+
* @param args The arguments to use to populate this resource's properties.
|
66
|
+
* @param opts A bag of options that control this resource's behavior.
|
67
|
+
*/
|
68
|
+
constructor(name: string, args?: CiliumNetworkPolicyArgs, opts?: pulumi.CustomResourceOptions) {
|
69
|
+
let resourceInputs: pulumi.Inputs = {};
|
70
|
+
opts = opts || {};
|
71
|
+
if (!opts.id) {
|
72
|
+
resourceInputs["apiVersion"] = "cilium.io/v2";
|
73
|
+
resourceInputs["kind"] = "CiliumNetworkPolicy";
|
74
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
75
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
76
|
+
resourceInputs["specs"] = args ? args.specs : undefined;
|
77
|
+
resourceInputs["status"] = undefined /*out*/;
|
78
|
+
} else {
|
79
|
+
resourceInputs["apiVersion"] = undefined /*out*/;
|
80
|
+
resourceInputs["kind"] = undefined /*out*/;
|
81
|
+
resourceInputs["metadata"] = undefined /*out*/;
|
82
|
+
resourceInputs["spec"] = undefined /*out*/;
|
83
|
+
resourceInputs["specs"] = undefined /*out*/;
|
84
|
+
resourceInputs["status"] = undefined /*out*/;
|
85
|
+
}
|
86
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
87
|
+
super(CiliumNetworkPolicy.__pulumiType, name, resourceInputs, opts);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* The set of arguments for constructing a CiliumNetworkPolicy resource.
|
93
|
+
*/
|
94
|
+
export interface CiliumNetworkPolicyArgs {
|
95
|
+
/**
|
96
|
+
* 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
|
97
|
+
*/
|
98
|
+
apiVersion?: pulumi.Input<"cilium.io/v2">;
|
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<"CiliumNetworkPolicy">;
|
103
|
+
/**
|
104
|
+
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
105
|
+
*/
|
106
|
+
metadata?: pulumi.Input<ObjectMeta>;
|
107
|
+
spec?: pulumi.Input<inputs.cilium.v2.CiliumNetworkPolicySpec>;
|
108
|
+
/**
|
109
|
+
* Specs is a list of desired Cilium specific rule specification.
|
110
|
+
*/
|
111
|
+
specs?: pulumi.Input<pulumi.Input<inputs.cilium.v2.CiliumNetworkPolicySpecs>[]>;
|
112
|
+
}
|