@overkube/kube-types 0.0.0 → 0.1.4

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 (109) hide show
  1. package/APACHE-2.0.txt +55 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +7 -0
  4. package/README.md +13 -1
  5. package/dist/gen/admissionregistration/v1.d.ts +888 -0
  6. package/dist/gen/admissionregistration/v1.d.ts.map +1 -0
  7. package/dist/gen/admissionregistration/v1.js +4 -0
  8. package/dist/gen/admissionregistration/v1.js.map +1 -0
  9. package/dist/gen/apiextensions/v1.d.ts +562 -0
  10. package/dist/gen/apiextensions/v1.d.ts.map +1 -0
  11. package/dist/gen/apiextensions/v1.js +4 -0
  12. package/dist/gen/apiextensions/v1.js.map +1 -0
  13. package/dist/gen/apiregistration/v1.d.ts +132 -0
  14. package/dist/gen/apiregistration/v1.d.ts.map +1 -0
  15. package/dist/gen/apiregistration/v1.js +4 -0
  16. package/dist/gen/apiregistration/v1.js.map +1 -0
  17. package/dist/gen/apps/v1.d.ts +760 -0
  18. package/dist/gen/apps/v1.d.ts.map +1 -0
  19. package/dist/gen/apps/v1.js +4 -0
  20. package/dist/gen/apps/v1.js.map +1 -0
  21. package/dist/gen/authentication/v1.d.ts +188 -0
  22. package/dist/gen/authentication/v1.d.ts.map +1 -0
  23. package/dist/gen/authentication/v1.js +4 -0
  24. package/dist/gen/authentication/v1.js.map +1 -0
  25. package/dist/gen/authorization/v1.d.ts +310 -0
  26. package/dist/gen/authorization/v1.d.ts.map +1 -0
  27. package/dist/gen/authorization/v1.js +4 -0
  28. package/dist/gen/authorization/v1.js.map +1 -0
  29. package/dist/gen/autoscaling/v1.d.ts +158 -0
  30. package/dist/gen/autoscaling/v1.d.ts.map +1 -0
  31. package/dist/gen/autoscaling/v1.js +4 -0
  32. package/dist/gen/autoscaling/v1.js.map +1 -0
  33. package/dist/gen/autoscaling/v2.d.ts +461 -0
  34. package/dist/gen/autoscaling/v2.d.ts.map +1 -0
  35. package/dist/gen/autoscaling/v2.js +4 -0
  36. package/dist/gen/autoscaling/v2.js.map +1 -0
  37. package/dist/gen/batch/v1.d.ts +469 -0
  38. package/dist/gen/batch/v1.d.ts.map +1 -0
  39. package/dist/gen/batch/v1.js +4 -0
  40. package/dist/gen/batch/v1.js.map +1 -0
  41. package/dist/gen/certificates/v1.d.ts +202 -0
  42. package/dist/gen/certificates/v1.d.ts.map +1 -0
  43. package/dist/gen/certificates/v1.js +4 -0
  44. package/dist/gen/certificates/v1.js.map +1 -0
  45. package/dist/gen/coordination/v1.d.ts +77 -0
  46. package/dist/gen/coordination/v1.d.ts.map +1 -0
  47. package/dist/gen/coordination/v1.js +4 -0
  48. package/dist/gen/coordination/v1.js.map +1 -0
  49. package/dist/gen/core/v1.d.ts +5809 -0
  50. package/dist/gen/core/v1.d.ts.map +1 -0
  51. package/dist/gen/core/v1.js +4 -0
  52. package/dist/gen/core/v1.js.map +1 -0
  53. package/dist/gen/discovery/v1.d.ts +178 -0
  54. package/dist/gen/discovery/v1.d.ts.map +1 -0
  55. package/dist/gen/discovery/v1.js +4 -0
  56. package/dist/gen/discovery/v1.js.map +1 -0
  57. package/dist/gen/events/v1.d.ts +110 -0
  58. package/dist/gen/events/v1.d.ts.map +1 -0
  59. package/dist/gen/events/v1.js +4 -0
  60. package/dist/gen/events/v1.js.map +1 -0
  61. package/dist/gen/flowcontrol/v1.d.ts +417 -0
  62. package/dist/gen/flowcontrol/v1.d.ts.map +1 -0
  63. package/dist/gen/flowcontrol/v1.js +4 -0
  64. package/dist/gen/flowcontrol/v1.js.map +1 -0
  65. package/dist/gen/kinds.d.ts +889 -0
  66. package/dist/gen/kinds.d.ts.map +1 -0
  67. package/dist/gen/kinds.js +791 -0
  68. package/dist/gen/kinds.js.map +1 -0
  69. package/dist/gen/meta/v1.d.ts +476 -0
  70. package/dist/gen/meta/v1.d.ts.map +1 -0
  71. package/dist/gen/meta/v1.js +4 -0
  72. package/dist/gen/meta/v1.js.map +1 -0
  73. package/dist/gen/networking/v1.d.ts +601 -0
  74. package/dist/gen/networking/v1.d.ts.map +1 -0
  75. package/dist/gen/networking/v1.js +4 -0
  76. package/dist/gen/networking/v1.js.map +1 -0
  77. package/dist/gen/node/v1.d.ts +76 -0
  78. package/dist/gen/node/v1.d.ts.map +1 -0
  79. package/dist/gen/node/v1.js +4 -0
  80. package/dist/gen/node/v1.js.map +1 -0
  81. package/dist/gen/policy/v1.d.ts +143 -0
  82. package/dist/gen/policy/v1.d.ts.map +1 -0
  83. package/dist/gen/policy/v1.js +4 -0
  84. package/dist/gen/policy/v1.js.map +1 -0
  85. package/dist/gen/rbac/v1.d.ts +254 -0
  86. package/dist/gen/rbac/v1.d.ts.map +1 -0
  87. package/dist/gen/rbac/v1.js +4 -0
  88. package/dist/gen/rbac/v1.js.map +1 -0
  89. package/dist/gen/resource/v1.d.ts +1175 -0
  90. package/dist/gen/resource/v1.d.ts.map +1 -0
  91. package/dist/gen/resource/v1.js +4 -0
  92. package/dist/gen/resource/v1.js.map +1 -0
  93. package/dist/gen/scheduling/v1.d.ts +60 -0
  94. package/dist/gen/scheduling/v1.d.ts.map +1 -0
  95. package/dist/gen/scheduling/v1.js +4 -0
  96. package/dist/gen/scheduling/v1.js.map +1 -0
  97. package/dist/gen/storage/v1.d.ts +552 -0
  98. package/dist/gen/storage/v1.d.ts.map +1 -0
  99. package/dist/gen/storage/v1.js +4 -0
  100. package/dist/gen/storage/v1.js.map +1 -0
  101. package/dist/index.d.ts +19 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +16 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/object.d.ts +33 -0
  106. package/dist/object.d.ts.map +1 -0
  107. package/dist/object.js +5 -0
  108. package/dist/object.js.map +1 -0
  109. package/package.json +34 -3
@@ -0,0 +1,76 @@
1
+ import type { Toleration } from '../core/v1.js';
2
+ import type { ListMeta, ObjectMeta } from '../meta/v1.js';
3
+ /**
4
+ * Overhead structure represents the resource overhead associated with running a pod.
5
+ */
6
+ export interface Overhead {
7
+ /**
8
+ * podFixed represents the fixed resource overhead associated with running a pod.
9
+ */
10
+ podFixed?: Record<string, string>;
11
+ }
12
+ /**
13
+ * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
14
+ */
15
+ export interface RuntimeClass {
16
+ /**
17
+ * 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
18
+ */
19
+ apiVersion?: string;
20
+ /**
21
+ * handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
22
+ */
23
+ handler: string;
24
+ /**
25
+ * 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
26
+ */
27
+ kind?: string;
28
+ /**
29
+ * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
30
+ */
31
+ metadata?: ObjectMeta;
32
+ /**
33
+ * overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
34
+ * https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
35
+ */
36
+ overhead?: Overhead;
37
+ /**
38
+ * scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
39
+ */
40
+ scheduling?: Scheduling;
41
+ }
42
+ /**
43
+ * RuntimeClassList is a list of RuntimeClass objects.
44
+ */
45
+ export interface RuntimeClassList {
46
+ /**
47
+ * 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
48
+ */
49
+ apiVersion?: string;
50
+ /**
51
+ * items is a list of schema objects.
52
+ */
53
+ items: RuntimeClass[];
54
+ /**
55
+ * 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
56
+ */
57
+ kind?: string;
58
+ /**
59
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
60
+ */
61
+ metadata?: ListMeta;
62
+ }
63
+ /**
64
+ * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
65
+ */
66
+ export interface Scheduling {
67
+ /**
68
+ * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
69
+ */
70
+ nodeSelector?: Record<string, string>;
71
+ /**
72
+ * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
73
+ */
74
+ tolerations?: Toleration[];
75
+ }
76
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/gen/node/v1.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;CAC5B"}
@@ -0,0 +1,4 @@
1
+ // Generated by @overkube/typegen from Kubernetes v1.35.7+kubesolo-v1.2.1's OpenAPI v3 schemas. Do not edit.
2
+ // Descriptions: Copyright The Kubernetes Authors, Apache License 2.0.
3
+ export {};
4
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/gen/node/v1.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,sEAAsE"}
@@ -0,0 +1,143 @@
1
+ import type { Condition, DeleteOptions, LabelSelector, ListMeta, ObjectMeta, Time } from '../meta/v1.js';
2
+ /**
3
+ * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions.
4
+ */
5
+ export interface Eviction {
6
+ /**
7
+ * 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
8
+ */
9
+ apiVersion?: string;
10
+ /**
11
+ * DeleteOptions may be provided
12
+ */
13
+ deleteOptions?: DeleteOptions;
14
+ /**
15
+ * 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
16
+ */
17
+ kind?: string;
18
+ /**
19
+ * ObjectMeta describes the pod that is being evicted.
20
+ */
21
+ metadata?: ObjectMeta;
22
+ }
23
+ /**
24
+ * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
25
+ */
26
+ export interface PodDisruptionBudget {
27
+ /**
28
+ * 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
29
+ */
30
+ apiVersion?: string;
31
+ /**
32
+ * 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
33
+ */
34
+ kind?: string;
35
+ /**
36
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
37
+ */
38
+ metadata?: ObjectMeta;
39
+ /**
40
+ * Specification of the desired behavior of the PodDisruptionBudget.
41
+ */
42
+ spec?: PodDisruptionBudgetSpec;
43
+ /**
44
+ * Most recently observed status of the PodDisruptionBudget.
45
+ */
46
+ status?: PodDisruptionBudgetStatus;
47
+ }
48
+ /**
49
+ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
50
+ */
51
+ export interface PodDisruptionBudgetList {
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?: string;
56
+ /**
57
+ * Items is a list of PodDisruptionBudgets
58
+ */
59
+ items: PodDisruptionBudget[];
60
+ /**
61
+ * 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
62
+ */
63
+ kind?: string;
64
+ /**
65
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
66
+ */
67
+ metadata?: ListMeta;
68
+ }
69
+ /**
70
+ * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
71
+ */
72
+ export interface PodDisruptionBudgetSpec {
73
+ /**
74
+ * An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable".
75
+ */
76
+ maxUnavailable?: number | string;
77
+ /**
78
+ * An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%".
79
+ */
80
+ minAvailable?: number | string;
81
+ /**
82
+ * Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.
83
+ */
84
+ selector?: LabelSelector;
85
+ /**
86
+ * UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type="Ready",status="True".
87
+ *
88
+ * Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.
89
+ *
90
+ * IfHealthyBudget policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.
91
+ *
92
+ * AlwaysAllow policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.
93
+ *
94
+ * Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.
95
+ *
96
+ * Possible enum values:
97
+ * - `"AlwaysAllow"` policy means that all running pods (status.phase="Running"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.
98
+ * - `"IfHealthyBudget"` policy means that running pods (status.phase="Running"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.
99
+ */
100
+ unhealthyPodEvictionPolicy?: 'AlwaysAllow' | 'IfHealthyBudget';
101
+ }
102
+ /**
103
+ * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.
104
+ */
105
+ export interface PodDisruptionBudgetStatus {
106
+ /**
107
+ * Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute
108
+ * the number of allowed disruptions. Therefore no disruptions are
109
+ * allowed and the status of the condition will be False.
110
+ * - InsufficientPods: The number of pods are either at or below the number
111
+ * required by the PodDisruptionBudget. No disruptions are
112
+ * allowed and the status of the condition will be False.
113
+ * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
114
+ * The condition will be True, and the number of allowed
115
+ * disruptions are provided by the disruptionsAllowed property.
116
+ */
117
+ conditions?: Condition[];
118
+ /**
119
+ * current number of healthy pods
120
+ */
121
+ currentHealthy: number;
122
+ /**
123
+ * minimum desired number of healthy pods
124
+ */
125
+ desiredHealthy: number;
126
+ /**
127
+ * DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.
128
+ */
129
+ disruptedPods?: Record<string, Time>;
130
+ /**
131
+ * Number of pod disruptions that are currently allowed.
132
+ */
133
+ disruptionsAllowed: number;
134
+ /**
135
+ * total number of pods counted by this disruption budget
136
+ */
137
+ expectedPods: number;
138
+ /**
139
+ * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.
140
+ */
141
+ observedGeneration?: number;
142
+ }
143
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/gen/policy/v1.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEzG;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB;;;;;;;;;;;;;;OAcG;IACH,0BAA0B,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAAC;CAChE;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACrC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
@@ -0,0 +1,4 @@
1
+ // Generated by @overkube/typegen from Kubernetes v1.35.7+kubesolo-v1.2.1's OpenAPI v3 schemas. Do not edit.
2
+ // Descriptions: Copyright The Kubernetes Authors, Apache License 2.0.
3
+ export {};
4
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/gen/policy/v1.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,sEAAsE"}
@@ -0,0 +1,254 @@
1
+ import type { LabelSelector, ListMeta, ObjectMeta } from '../meta/v1.js';
2
+ /**
3
+ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
4
+ */
5
+ export interface AggregationRule {
6
+ /**
7
+ * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
8
+ */
9
+ clusterRoleSelectors?: LabelSelector[];
10
+ }
11
+ /**
12
+ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
13
+ */
14
+ export interface ClusterRole {
15
+ /**
16
+ * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
17
+ */
18
+ aggregationRule?: AggregationRule;
19
+ /**
20
+ * 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
21
+ */
22
+ apiVersion?: string;
23
+ /**
24
+ * 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
25
+ */
26
+ kind?: string;
27
+ /**
28
+ * Standard object's metadata.
29
+ */
30
+ metadata?: ObjectMeta;
31
+ /**
32
+ * Rules holds all the PolicyRules for this ClusterRole
33
+ */
34
+ rules?: PolicyRule[];
35
+ }
36
+ /**
37
+ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.
38
+ */
39
+ export interface ClusterRoleBinding {
40
+ /**
41
+ * 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
42
+ */
43
+ apiVersion?: string;
44
+ /**
45
+ * 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
46
+ */
47
+ kind?: string;
48
+ /**
49
+ * Standard object's metadata.
50
+ */
51
+ metadata?: ObjectMeta;
52
+ /**
53
+ * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.
54
+ */
55
+ roleRef: RoleRef;
56
+ /**
57
+ * Subjects holds references to the objects the role applies to.
58
+ */
59
+ subjects?: Subject[];
60
+ }
61
+ /**
62
+ * ClusterRoleBindingList is a collection of ClusterRoleBindings
63
+ */
64
+ export interface ClusterRoleBindingList {
65
+ /**
66
+ * 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
67
+ */
68
+ apiVersion?: string;
69
+ /**
70
+ * Items is a list of ClusterRoleBindings
71
+ */
72
+ items: ClusterRoleBinding[];
73
+ /**
74
+ * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
75
+ */
76
+ kind?: string;
77
+ /**
78
+ * Standard object's metadata.
79
+ */
80
+ metadata?: ListMeta;
81
+ }
82
+ /**
83
+ * ClusterRoleList is a collection of ClusterRoles
84
+ */
85
+ export interface ClusterRoleList {
86
+ /**
87
+ * 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
88
+ */
89
+ apiVersion?: string;
90
+ /**
91
+ * Items is a list of ClusterRoles
92
+ */
93
+ items: ClusterRole[];
94
+ /**
95
+ * 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
96
+ */
97
+ kind?: string;
98
+ /**
99
+ * Standard object's metadata.
100
+ */
101
+ metadata?: ListMeta;
102
+ }
103
+ /**
104
+ * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
105
+ */
106
+ export interface PolicyRule {
107
+ /**
108
+ * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups.
109
+ */
110
+ apiGroups?: string[];
111
+ /**
112
+ * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
113
+ */
114
+ nonResourceURLs?: string[];
115
+ /**
116
+ * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
117
+ */
118
+ resourceNames?: string[];
119
+ /**
120
+ * Resources is a list of resources this rule applies to. '*' represents all resources.
121
+ */
122
+ resources?: string[];
123
+ /**
124
+ * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
125
+ */
126
+ verbs: string[];
127
+ }
128
+ /**
129
+ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.
130
+ */
131
+ export interface Role {
132
+ /**
133
+ * 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
134
+ */
135
+ apiVersion?: string;
136
+ /**
137
+ * 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
138
+ */
139
+ kind?: string;
140
+ /**
141
+ * Standard object's metadata.
142
+ */
143
+ metadata?: ObjectMeta;
144
+ /**
145
+ * Rules holds all the PolicyRules for this Role
146
+ */
147
+ rules?: PolicyRule[];
148
+ }
149
+ /**
150
+ * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.
151
+ */
152
+ export interface RoleBinding {
153
+ /**
154
+ * 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
155
+ */
156
+ apiVersion?: string;
157
+ /**
158
+ * 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
159
+ */
160
+ kind?: string;
161
+ /**
162
+ * Standard object's metadata.
163
+ */
164
+ metadata?: ObjectMeta;
165
+ /**
166
+ * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.
167
+ */
168
+ roleRef: RoleRef;
169
+ /**
170
+ * Subjects holds references to the objects the role applies to.
171
+ */
172
+ subjects?: Subject[];
173
+ }
174
+ /**
175
+ * RoleBindingList is a collection of RoleBindings
176
+ */
177
+ export interface RoleBindingList {
178
+ /**
179
+ * 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
180
+ */
181
+ apiVersion?: string;
182
+ /**
183
+ * Items is a list of RoleBindings
184
+ */
185
+ items: RoleBinding[];
186
+ /**
187
+ * 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
188
+ */
189
+ kind?: string;
190
+ /**
191
+ * Standard object's metadata.
192
+ */
193
+ metadata?: ListMeta;
194
+ }
195
+ /**
196
+ * RoleList is a collection of Roles
197
+ */
198
+ export interface RoleList {
199
+ /**
200
+ * 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
201
+ */
202
+ apiVersion?: string;
203
+ /**
204
+ * Items is a list of Roles
205
+ */
206
+ items: Role[];
207
+ /**
208
+ * 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
209
+ */
210
+ kind?: string;
211
+ /**
212
+ * Standard object's metadata.
213
+ */
214
+ metadata?: ListMeta;
215
+ }
216
+ /**
217
+ * RoleRef contains information that points to the role being used
218
+ */
219
+ export interface RoleRef {
220
+ /**
221
+ * APIGroup is the group for the resource being referenced
222
+ */
223
+ apiGroup: string;
224
+ /**
225
+ * Kind is the type of resource being referenced
226
+ */
227
+ kind: string;
228
+ /**
229
+ * Name is the name of resource being referenced
230
+ */
231
+ name: string;
232
+ }
233
+ /**
234
+ * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.
235
+ */
236
+ export interface Subject {
237
+ /**
238
+ * APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
239
+ */
240
+ apiGroup?: string;
241
+ /**
242
+ * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
243
+ */
244
+ kind: string;
245
+ /**
246
+ * Name of the object being referenced.
247
+ */
248
+ name: string;
249
+ /**
250
+ * Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
251
+ */
252
+ namespace?: string;
253
+ }
254
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/gen/rbac/v1.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ // Generated by @overkube/typegen from Kubernetes v1.35.7+kubesolo-v1.2.1's OpenAPI v3 schemas. Do not edit.
2
+ // Descriptions: Copyright The Kubernetes Authors, Apache License 2.0.
3
+ export {};
4
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/gen/rbac/v1.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,sEAAsE"}