cdk8s-plus-33 2.0.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 (156) hide show
  1. package/.jsii +98351 -0
  2. package/CODE_OF_CONDUCT.md +3 -0
  3. package/CONTRIBUTING.md +185 -0
  4. package/DCO +34 -0
  5. package/LICENSE +202 -0
  6. package/NOTICE +1 -0
  7. package/OWNERS.md +5 -0
  8. package/README.md +32 -0
  9. package/SECURITY.md +5 -0
  10. package/cdk8s.yaml +10 -0
  11. package/docs/java.md +24323 -0
  12. package/docs/plus/config-map.md +98 -0
  13. package/docs/plus/container.md +133 -0
  14. package/docs/plus/cronjob.md +67 -0
  15. package/docs/plus/deployment.md +232 -0
  16. package/docs/plus/horizontal-pod-autoscaler.md +226 -0
  17. package/docs/plus/ingress.md +68 -0
  18. package/docs/plus/job.md +48 -0
  19. package/docs/plus/namespace.md +58 -0
  20. package/docs/plus/network-policy.md +341 -0
  21. package/docs/plus/pod.md +455 -0
  22. package/docs/plus/pv.md +82 -0
  23. package/docs/plus/pvc.md +77 -0
  24. package/docs/plus/rbac.md +104 -0
  25. package/docs/plus/secret.md +32 -0
  26. package/docs/plus/service-account.md +35 -0
  27. package/docs/plus/service.md +41 -0
  28. package/docs/plus/volume.md +38 -0
  29. package/docs/python.md +26547 -0
  30. package/docs/typescript.md +19825 -0
  31. package/git-hooks/README.md +9 -0
  32. package/git-hooks/prepare-commit-msg +18 -0
  33. package/git-hooks/setup.sh +10 -0
  34. package/lib/_action.d.ts +21 -0
  35. package/lib/_action.js +32 -0
  36. package/lib/api-resource.d.ts +298 -0
  37. package/lib/api-resource.js +430 -0
  38. package/lib/base.d.ts +79 -0
  39. package/lib/base.js +92 -0
  40. package/lib/config-map.d.ts +126 -0
  41. package/lib/config-map.js +159 -0
  42. package/lib/container.d.ts +1057 -0
  43. package/lib/container.js +845 -0
  44. package/lib/cron-job.d.ts +138 -0
  45. package/lib/cron-job.js +103 -0
  46. package/lib/daemon-set.d.ts +45 -0
  47. package/lib/daemon-set.js +55 -0
  48. package/lib/deployment.d.ts +223 -0
  49. package/lib/deployment.js +214 -0
  50. package/lib/handler.d.ts +62 -0
  51. package/lib/handler.js +54 -0
  52. package/lib/horizontal-pod-autoscaler.d.ts +500 -0
  53. package/lib/horizontal-pod-autoscaler.js +569 -0
  54. package/lib/imports/k8s.d.ts +24537 -0
  55. package/lib/imports/k8s.js +18615 -0
  56. package/lib/index.d.ts +26 -0
  57. package/lib/index.js +44 -0
  58. package/lib/ingress.d.ts +230 -0
  59. package/lib/ingress.js +246 -0
  60. package/lib/job.d.ts +64 -0
  61. package/lib/job.js +54 -0
  62. package/lib/namespace.d.ts +128 -0
  63. package/lib/namespace.js +109 -0
  64. package/lib/network-policy.d.ts +311 -0
  65. package/lib/network-policy.js +344 -0
  66. package/lib/pod.d.ts +1097 -0
  67. package/lib/pod.js +1143 -0
  68. package/lib/probe.d.ts +141 -0
  69. package/lib/probe.js +77 -0
  70. package/lib/pv.d.ts +375 -0
  71. package/lib/pv.js +273 -0
  72. package/lib/pvc.d.ts +163 -0
  73. package/lib/pvc.js +154 -0
  74. package/lib/role-binding.d.ts +138 -0
  75. package/lib/role-binding.js +165 -0
  76. package/lib/role.d.ts +268 -0
  77. package/lib/role.js +401 -0
  78. package/lib/secret.d.ts +195 -0
  79. package/lib/secret.js +185 -0
  80. package/lib/service-account.d.ts +83 -0
  81. package/lib/service-account.js +105 -0
  82. package/lib/service.d.ts +289 -0
  83. package/lib/service.js +182 -0
  84. package/lib/stateful-set.d.ts +169 -0
  85. package/lib/stateful-set.js +174 -0
  86. package/lib/utils.d.ts +4 -0
  87. package/lib/utils.js +33 -0
  88. package/lib/volume.d.ts +573 -0
  89. package/lib/volume.js +371 -0
  90. package/lib/workload.d.ts +121 -0
  91. package/lib/workload.js +122 -0
  92. package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  93. package/node_modules/balanced-match/LICENSE.md +21 -0
  94. package/node_modules/balanced-match/README.md +97 -0
  95. package/node_modules/balanced-match/index.js +62 -0
  96. package/node_modules/balanced-match/package.json +48 -0
  97. package/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  98. package/node_modules/brace-expansion/LICENSE +21 -0
  99. package/node_modules/brace-expansion/README.md +135 -0
  100. package/node_modules/brace-expansion/index.js +203 -0
  101. package/node_modules/brace-expansion/package.json +49 -0
  102. package/node_modules/minimatch/LICENSE +15 -0
  103. package/node_modules/minimatch/README.md +454 -0
  104. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  105. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  106. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  107. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  108. package/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
  109. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  110. package/node_modules/minimatch/dist/commonjs/ast.js +592 -0
  111. package/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  112. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  113. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  114. package/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
  115. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  116. package/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
  117. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  118. package/node_modules/minimatch/dist/commonjs/escape.js +22 -0
  119. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  120. package/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
  121. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  122. package/node_modules/minimatch/dist/commonjs/index.js +1017 -0
  123. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  124. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  125. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
  126. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  127. package/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
  128. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  129. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  130. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  131. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  132. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  133. package/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
  134. package/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  135. package/node_modules/minimatch/dist/esm/ast.js +588 -0
  136. package/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  137. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  138. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  139. package/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
  140. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  141. package/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
  142. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  143. package/node_modules/minimatch/dist/esm/escape.js +18 -0
  144. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  145. package/node_modules/minimatch/dist/esm/index.d.ts +94 -0
  146. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  147. package/node_modules/minimatch/dist/esm/index.js +1001 -0
  148. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  149. package/node_modules/minimatch/dist/esm/package.json +3 -0
  150. package/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
  151. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  152. package/node_modules/minimatch/dist/esm/unescape.js +20 -0
  153. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  154. package/node_modules/minimatch/package.json +82 -0
  155. package/package.json +181 -0
  156. package/rotate.md +84 -0
@@ -0,0 +1,9 @@
1
+ # Git Hooks
2
+
3
+ This directory contains git hooks that the core team uses for various tasks.
4
+
5
+ - Commit signoff for automatic compliance of the [DCO](../CONTRIBUTING.md#developer-certificate-of-origin-dco).
6
+
7
+ ## Setup
8
+
9
+ To setup these git hooks, run `./git-hooks/setup.sh` from the root directory of the project.
@@ -0,0 +1,18 @@
1
+ #!/bin/sh
2
+
3
+ NAME=$(git config user.name)
4
+ EMAIL=$(git config user.email)
5
+
6
+ if [ -z "$NAME" ]; then
7
+ echo "empty git config user.name"
8
+ exit 1
9
+ fi
10
+
11
+ if [ -z "$EMAIL" ]; then
12
+ echo "empty git config user.email"
13
+ exit 1
14
+ fi
15
+
16
+ git interpret-trailers --if-exists doNothing --trailer \
17
+ "Signed-off-by: $NAME <$EMAIL>" \
18
+ --in-place "$1"
@@ -0,0 +1,10 @@
1
+ #!/bin/bash
2
+
3
+ ##############################################
4
+ # Setup shared .git hooks for this project.
5
+ #
6
+
7
+ hooksdir="$(cd $(dirname $0) && pwd)"
8
+
9
+ git config core.hooksPath ${hooksdir}
10
+ echo "Configured core.hooksPath to ${hooksdir}"
@@ -0,0 +1,21 @@
1
+ import { Container } from './container';
2
+ import * as k8s from './imports/k8s';
3
+ import { ConnectionScheme } from './probe';
4
+ /**
5
+ * Utility class to implement the conversion between our API and the k8s action
6
+ * structure. Used both for probes and handlers.
7
+ *
8
+ * @internal
9
+ */
10
+ export declare class Action {
11
+ static fromTcpSocket(container: Container, options?: {
12
+ port?: number;
13
+ host?: string;
14
+ }): k8s.TcpSocketAction;
15
+ static fromCommand(command: string[]): k8s.ExecAction;
16
+ static fromHttpGet(container: Container, path: string, options?: {
17
+ port?: number;
18
+ scheme?: ConnectionScheme;
19
+ host?: string;
20
+ }): k8s.HttpGetAction;
21
+ }
package/lib/_action.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Action = void 0;
4
+ const k8s = require("./imports/k8s");
5
+ const probe_1 = require("./probe");
6
+ /**
7
+ * Utility class to implement the conversion between our API and the k8s action
8
+ * structure. Used both for probes and handlers.
9
+ *
10
+ * @internal
11
+ */
12
+ class Action {
13
+ static fromTcpSocket(container, options = {}) {
14
+ return {
15
+ port: k8s.IntOrString.fromNumber(options.port ?? container.portNumber ?? 80),
16
+ host: options.host,
17
+ };
18
+ }
19
+ static fromCommand(command) {
20
+ return { command };
21
+ }
22
+ static fromHttpGet(container, path, options = {}) {
23
+ return {
24
+ path,
25
+ port: k8s.IntOrString.fromNumber(options.port ?? container.portNumber ?? 80),
26
+ scheme: options.scheme ?? probe_1.ConnectionScheme.HTTP,
27
+ host: options.host,
28
+ };
29
+ }
30
+ }
31
+ exports.Action = Action;
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2FjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9fYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHFDQUFxQztBQUNyQyxtQ0FBMkM7QUFFM0M7Ozs7O0dBS0c7QUFDSCxNQUFhLE1BQU07SUFFVixNQUFNLENBQUMsYUFBYSxDQUFDLFNBQW9CLEVBQUUsVUFBNEMsRUFBRTtRQUM5RixPQUFPO1lBQ0wsSUFBSSxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxJQUFJLElBQUksU0FBUyxDQUFDLFVBQVUsSUFBSSxFQUFFLENBQUM7WUFDNUUsSUFBSSxFQUFFLE9BQU8sQ0FBQyxJQUFJO1NBQ25CLENBQUM7SUFDSixDQUFDO0lBRU0sTUFBTSxDQUFDLFdBQVcsQ0FBQyxPQUFpQjtRQUN6QyxPQUFPLEVBQUUsT0FBTyxFQUFFLENBQUM7SUFDckIsQ0FBQztJQUVNLE1BQU0sQ0FBQyxXQUFXLENBQUMsU0FBb0IsRUFBRSxJQUFZLEVBQUUsVUFJMUQsRUFBRTtRQUNKLE9BQU87WUFDTCxJQUFJO1lBQ0osSUFBSSxFQUFFLEdBQUcsQ0FBQyxXQUFXLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxJQUFJLElBQUksU0FBUyxDQUFDLFVBQVUsSUFBSSxFQUFFLENBQUM7WUFDNUUsTUFBTSxFQUFFLE9BQU8sQ0FBQyxNQUFNLElBQUksd0JBQWdCLENBQUMsSUFBSTtZQUMvQyxJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUk7U0FDbkIsQ0FBQztJQUNKLENBQUM7Q0FDRjtBQXpCRCx3QkF5QkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb250YWluZXIgfSBmcm9tICcuL2NvbnRhaW5lcic7XG5pbXBvcnQgKiBhcyBrOHMgZnJvbSAnLi9pbXBvcnRzL2s4cyc7XG5pbXBvcnQgeyBDb25uZWN0aW9uU2NoZW1lIH0gZnJvbSAnLi9wcm9iZSc7XG5cbi8qKlxuICogVXRpbGl0eSBjbGFzcyB0byBpbXBsZW1lbnQgdGhlIGNvbnZlcnNpb24gYmV0d2VlbiBvdXIgQVBJIGFuZCB0aGUgazhzIGFjdGlvblxuICogc3RydWN0dXJlLiBVc2VkIGJvdGggZm9yIHByb2JlcyBhbmQgaGFuZGxlcnMuXG4gKlxuICogQGludGVybmFsXG4gKi9cbmV4cG9ydCBjbGFzcyBBY3Rpb24ge1xuXG4gIHB1YmxpYyBzdGF0aWMgZnJvbVRjcFNvY2tldChjb250YWluZXI6IENvbnRhaW5lciwgb3B0aW9uczogeyBwb3J0PzogbnVtYmVyOyBob3N0Pzogc3RyaW5nIH0gPSB7fSk6IGs4cy5UY3BTb2NrZXRBY3Rpb24ge1xuICAgIHJldHVybiB7XG4gICAgICBwb3J0OiBrOHMuSW50T3JTdHJpbmcuZnJvbU51bWJlcihvcHRpb25zLnBvcnQgPz8gY29udGFpbmVyLnBvcnROdW1iZXIgPz8gODApLFxuICAgICAgaG9zdDogb3B0aW9ucy5ob3N0LFxuICAgIH07XG4gIH1cblxuICBwdWJsaWMgc3RhdGljIGZyb21Db21tYW5kKGNvbW1hbmQ6IHN0cmluZ1tdKTogazhzLkV4ZWNBY3Rpb24ge1xuICAgIHJldHVybiB7IGNvbW1hbmQgfTtcbiAgfVxuXG4gIHB1YmxpYyBzdGF0aWMgZnJvbUh0dHBHZXQoY29udGFpbmVyOiBDb250YWluZXIsIHBhdGg6IHN0cmluZywgb3B0aW9uczoge1xuICAgIHBvcnQ/OiBudW1iZXI7XG4gICAgc2NoZW1lPzogQ29ubmVjdGlvblNjaGVtZTtcbiAgICBob3N0Pzogc3RyaW5nO1xuICB9ID0ge30pOiBrOHMuSHR0cEdldEFjdGlvbiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIHBhdGgsXG4gICAgICBwb3J0OiBrOHMuSW50T3JTdHJpbmcuZnJvbU51bWJlcihvcHRpb25zLnBvcnQgPz8gY29udGFpbmVyLnBvcnROdW1iZXIgPz8gODApLFxuICAgICAgc2NoZW1lOiBvcHRpb25zLnNjaGVtZSA/PyBDb25uZWN0aW9uU2NoZW1lLkhUVFAsXG4gICAgICBob3N0OiBvcHRpb25zLmhvc3QsXG4gICAgfTtcbiAgfVxufVxuIl19
@@ -0,0 +1,298 @@
1
+ /**
2
+ * Represents a resource or collection of resources.
3
+ */
4
+ export interface IApiResource {
5
+ /**
6
+ * The group portion of the API version (e.g. `authorization.k8s.io`).
7
+ */
8
+ readonly apiGroup: string;
9
+ /**
10
+ * The name of a resource type as it appears in the relevant API endpoint.
11
+ * @example - "pods" or "pods/log"
12
+ * @see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
13
+ */
14
+ readonly resourceType: string;
15
+ /**
16
+ * The unique, namespace-global, name of an object inside the Kubernetes cluster.
17
+ *
18
+ * If this is omitted, the ApiResource should represent all objects of the given type.
19
+ */
20
+ readonly resourceName?: string;
21
+ }
22
+ /**
23
+ * An API Endpoint can either be a resource descriptor (e.g /pods)
24
+ * or a non resource url (e.g /healthz). It must be one or the other, and not both.
25
+ */
26
+ export interface IApiEndpoint {
27
+ /**
28
+ * Return the IApiResource this object represents.
29
+ */
30
+ asApiResource(): IApiResource | undefined;
31
+ /**
32
+ * Return the non resource url this object represents.
33
+ */
34
+ asNonApiResource(): string | undefined;
35
+ }
36
+ /**
37
+ * Options for `ApiResource`.
38
+ */
39
+ export interface ApiResourceOptions {
40
+ /**
41
+ * The group portion of the API version (e.g. `authorization.k8s.io`).
42
+ */
43
+ readonly apiGroup: string;
44
+ /**
45
+ * The name of the resource type as it appears in the relevant API endpoint.
46
+ * @example - "pods" or "pods/log"
47
+ * @see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
48
+ */
49
+ readonly resourceType: string;
50
+ }
51
+ /**
52
+ * Represents information about an API resource type.
53
+ */
54
+ export declare class ApiResource implements IApiResource, IApiEndpoint {
55
+ /**
56
+ * API resource information for Binding.
57
+ */
58
+ static readonly BINDINGS: ApiResource;
59
+ /**
60
+ * API resource information for ComponentStatus.
61
+ */
62
+ static readonly COMPONENT_STATUSES: ApiResource;
63
+ /**
64
+ * API resource information for ConfigMap.
65
+ */
66
+ static readonly CONFIG_MAPS: ApiResource;
67
+ /**
68
+ * API resource information for Endpoints.
69
+ */
70
+ static readonly ENDPOINTS: ApiResource;
71
+ /**
72
+ * API resource information for Event.
73
+ */
74
+ static readonly EVENTS: ApiResource;
75
+ /**
76
+ * API resource information for LimitRange.
77
+ */
78
+ static readonly LIMIT_RANGES: ApiResource;
79
+ /**
80
+ * API resource information for Namespace.
81
+ */
82
+ static readonly NAMESPACES: ApiResource;
83
+ /**
84
+ * API resource information for Node.
85
+ */
86
+ static readonly NODES: ApiResource;
87
+ /**
88
+ * API resource information for PersistentVolumeClaim.
89
+ */
90
+ static readonly PERSISTENT_VOLUME_CLAIMS: ApiResource;
91
+ /**
92
+ * API resource information for PersistentVolume.
93
+ */
94
+ static readonly PERSISTENT_VOLUMES: ApiResource;
95
+ /**
96
+ * API resource information for Pod.
97
+ */
98
+ static readonly PODS: ApiResource;
99
+ /**
100
+ * API resource information for PodTemplate.
101
+ */
102
+ static readonly POD_TEMPLATES: ApiResource;
103
+ /**
104
+ * API resource information for ReplicationController.
105
+ */
106
+ static readonly REPLICATION_CONTROLLERS: ApiResource;
107
+ /**
108
+ * API resource information for ResourceQuota.
109
+ */
110
+ static readonly RESOURCE_QUOTAS: ApiResource;
111
+ /**
112
+ * API resource information for Secret.
113
+ */
114
+ static readonly SECRETS: ApiResource;
115
+ /**
116
+ * API resource information for ServiceAccount.
117
+ */
118
+ static readonly SERVICE_ACCOUNTS: ApiResource;
119
+ /**
120
+ * API resource information for Service.
121
+ */
122
+ static readonly SERVICES: ApiResource;
123
+ /**
124
+ * API resource information for MutatingWebhookConfiguration.
125
+ */
126
+ static readonly MUTATING_WEBHOOK_CONFIGURATIONS: ApiResource;
127
+ /**
128
+ * API resource information for ValidatingWebhookConfiguration.
129
+ */
130
+ static readonly VALIDATING_WEBHOOK_CONFIGURATIONS: ApiResource;
131
+ /**
132
+ * API resource information for CustomResourceDefinition.
133
+ */
134
+ static readonly CUSTOM_RESOURCE_DEFINITIONS: ApiResource;
135
+ /**
136
+ * API resource information for APIService.
137
+ */
138
+ static readonly API_SERVICES: ApiResource;
139
+ /**
140
+ * API resource information for ControllerRevision.
141
+ */
142
+ static readonly CONTROLLER_REVISIONS: ApiResource;
143
+ /**
144
+ * API resource information for DaemonSet.
145
+ */
146
+ static readonly DAEMON_SETS: ApiResource;
147
+ /**
148
+ * API resource information for Deployment.
149
+ */
150
+ static readonly DEPLOYMENTS: ApiResource;
151
+ /**
152
+ * API resource information for ReplicaSet.
153
+ */
154
+ static readonly REPLICA_SETS: ApiResource;
155
+ /**
156
+ * API resource information for StatefulSet.
157
+ */
158
+ static readonly STATEFUL_SETS: ApiResource;
159
+ /**
160
+ * API resource information for TokenReview.
161
+ */
162
+ static readonly TOKEN_REVIEWS: ApiResource;
163
+ /**
164
+ * API resource information for LocalSubjectAccessReview.
165
+ */
166
+ static readonly LOCAL_SUBJECT_ACCESS_REVIEWS: ApiResource;
167
+ /**
168
+ * API resource information for SelfSubjectAccessReview.
169
+ */
170
+ static readonly SELF_SUBJECT_ACCESS_REVIEWS: ApiResource;
171
+ /**
172
+ * API resource information for SelfSubjectRulesReview.
173
+ */
174
+ static readonly SELF_SUBJECT_RULES_REVIEWS: ApiResource;
175
+ /**
176
+ * API resource information for SubjectAccessReview.
177
+ */
178
+ static readonly SUBJECT_ACCESS_REVIEWS: ApiResource;
179
+ /**
180
+ * API resource information for HorizontalPodAutoscaler.
181
+ */
182
+ static readonly HORIZONTAL_POD_AUTOSCALERS: ApiResource;
183
+ /**
184
+ * API resource information for CronJob.
185
+ */
186
+ static readonly CRON_JOBS: ApiResource;
187
+ /**
188
+ * API resource information for Job.
189
+ */
190
+ static readonly JOBS: ApiResource;
191
+ /**
192
+ * API resource information for CertificateSigningRequest.
193
+ */
194
+ static readonly CERTIFICATE_SIGNING_REQUESTS: ApiResource;
195
+ /**
196
+ * API resource information for Lease.
197
+ */
198
+ static readonly LEASES: ApiResource;
199
+ /**
200
+ * API resource information for EndpointSlice.
201
+ */
202
+ static readonly ENDPOINT_SLICES: ApiResource;
203
+ /**
204
+ * API resource information for FlowSchema.
205
+ */
206
+ static readonly FLOW_SCHEMAS: ApiResource;
207
+ /**
208
+ * API resource information for PriorityLevelConfiguration.
209
+ */
210
+ static readonly PRIORITY_LEVEL_CONFIGURATIONS: ApiResource;
211
+ /**
212
+ * API resource information for IngressClass.
213
+ */
214
+ static readonly INGRESS_CLASSES: ApiResource;
215
+ /**
216
+ * API resource information for Ingress.
217
+ */
218
+ static readonly INGRESSES: ApiResource;
219
+ /**
220
+ * API resource information for NetworkPolicy.
221
+ */
222
+ static readonly NETWORK_POLICIES: ApiResource;
223
+ /**
224
+ * API resource information for RuntimeClass.
225
+ */
226
+ static readonly RUNTIME_CLASSES: ApiResource;
227
+ /**
228
+ * API resource information for PodDisruptionBudget.
229
+ */
230
+ static readonly POD_DISRUPTION_BUDGETS: ApiResource;
231
+ /**
232
+ * API resource information for ClusterRoleBinding.
233
+ */
234
+ static readonly CLUSTER_ROLE_BINDINGS: ApiResource;
235
+ /**
236
+ * API resource information for ClusterRole.
237
+ */
238
+ static readonly CLUSTER_ROLES: ApiResource;
239
+ /**
240
+ * API resource information for RoleBinding.
241
+ */
242
+ static readonly ROLE_BINDINGS: ApiResource;
243
+ /**
244
+ * API resource information for Role.
245
+ */
246
+ static readonly ROLES: ApiResource;
247
+ /**
248
+ * API resource information for PriorityClass.
249
+ */
250
+ static readonly PRIORITY_CLASSES: ApiResource;
251
+ /**
252
+ * API resource information for CSIDriver.
253
+ */
254
+ static readonly CSI_DRIVERS: ApiResource;
255
+ /**
256
+ * API resource information for CSINode.
257
+ */
258
+ static readonly CSI_NODES: ApiResource;
259
+ /**
260
+ * API resource information for CSIStorageCapacity.
261
+ */
262
+ static readonly CSI_STORAGE_CAPACITIES: ApiResource;
263
+ /**
264
+ * API resource information for StorageClass.
265
+ */
266
+ static readonly STORAGE_CLASSES: ApiResource;
267
+ /**
268
+ * API resource information for VolumeAttachment.
269
+ */
270
+ static readonly VOLUME_ATTACHMENTS: ApiResource;
271
+ /**
272
+ * API resource information for a custom resource type.
273
+ */
274
+ static custom(options: ApiResourceOptions): ApiResource;
275
+ /**
276
+ * The group portion of the API version (e.g. `authorization.k8s.io`).
277
+ */
278
+ readonly apiGroup: string;
279
+ /**
280
+ * The name of the resource type as it appears in the relevant API endpoint.
281
+ * @example - "pods" or "pods/log"
282
+ * @see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources
283
+ */
284
+ readonly resourceType: string;
285
+ private constructor();
286
+ asApiResource(): IApiResource | undefined;
287
+ asNonApiResource(): string | undefined;
288
+ }
289
+ /**
290
+ * Factory for creating non api resources.
291
+ */
292
+ export declare class NonApiResource implements IApiEndpoint {
293
+ private readonly nonResourceUrl;
294
+ static of(url: string): NonApiResource;
295
+ private constructor();
296
+ asApiResource(): IApiResource | undefined;
297
+ asNonApiResource(): string | undefined;
298
+ }