@mcpg-dev/pulumi-crds 0.1.0-beta.8

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 (171) hide show
  1. package/.gitattributes +1 -0
  2. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  3. package/.github/workflows/ci.yml +29 -0
  4. package/.github/workflows/release.yml +18 -0
  5. package/CONTRIBUTING.md +24 -0
  6. package/README.md +63 -0
  7. package/bin/index.d.ts +7 -0
  8. package/bin/index.d.ts.map +1 -0
  9. package/bin/index.js +47 -0
  10. package/bin/index.js.map +1 -0
  11. package/bin/mcpg/index.d.ts +3 -0
  12. package/bin/mcpg/index.d.ts.map +1 -0
  13. package/bin/mcpg/index.js +32 -0
  14. package/bin/mcpg/index.js.map +1 -0
  15. package/bin/mcpg/v1alpha1/index.d.ts +73 -0
  16. package/bin/mcpg/v1alpha1/index.d.ts.map +1 -0
  17. package/bin/mcpg/v1alpha1/index.js +137 -0
  18. package/bin/mcpg/v1alpha1/index.js.map +1 -0
  19. package/bin/mcpg/v1alpha1/mcpgcluster.d.ts +63 -0
  20. package/bin/mcpg/v1alpha1/mcpgcluster.d.ts.map +1 -0
  21. package/bin/mcpg/v1alpha1/mcpgcluster.js +87 -0
  22. package/bin/mcpg/v1alpha1/mcpgcluster.js.map +1 -0
  23. package/bin/mcpg/v1alpha1/mcpgclusterList.d.ts +68 -0
  24. package/bin/mcpg/v1alpha1/mcpgclusterList.d.ts.map +1 -0
  25. package/bin/mcpg/v1alpha1/mcpgclusterList.js +88 -0
  26. package/bin/mcpg/v1alpha1/mcpgclusterList.js.map +1 -0
  27. package/bin/mcpg/v1alpha1/mcpgclusterPatch.d.ts +69 -0
  28. package/bin/mcpg/v1alpha1/mcpgclusterPatch.d.ts.map +1 -0
  29. package/bin/mcpg/v1alpha1/mcpgclusterPatch.js +93 -0
  30. package/bin/mcpg/v1alpha1/mcpgclusterPatch.js.map +1 -0
  31. package/bin/mcpg/v1alpha1/mcpggateway.d.ts +63 -0
  32. package/bin/mcpg/v1alpha1/mcpggateway.d.ts.map +1 -0
  33. package/bin/mcpg/v1alpha1/mcpggateway.js +87 -0
  34. package/bin/mcpg/v1alpha1/mcpggateway.js.map +1 -0
  35. package/bin/mcpg/v1alpha1/mcpggatewayList.d.ts +68 -0
  36. package/bin/mcpg/v1alpha1/mcpggatewayList.d.ts.map +1 -0
  37. package/bin/mcpg/v1alpha1/mcpggatewayList.js +88 -0
  38. package/bin/mcpg/v1alpha1/mcpggatewayList.js.map +1 -0
  39. package/bin/mcpg/v1alpha1/mcpggatewayPatch.d.ts +69 -0
  40. package/bin/mcpg/v1alpha1/mcpggatewayPatch.d.ts.map +1 -0
  41. package/bin/mcpg/v1alpha1/mcpggatewayPatch.js +93 -0
  42. package/bin/mcpg/v1alpha1/mcpggatewayPatch.js.map +1 -0
  43. package/bin/mcpg/v1alpha1/mcpgplugin.d.ts +63 -0
  44. package/bin/mcpg/v1alpha1/mcpgplugin.d.ts.map +1 -0
  45. package/bin/mcpg/v1alpha1/mcpgplugin.js +87 -0
  46. package/bin/mcpg/v1alpha1/mcpgplugin.js.map +1 -0
  47. package/bin/mcpg/v1alpha1/mcpgpluginList.d.ts +68 -0
  48. package/bin/mcpg/v1alpha1/mcpgpluginList.d.ts.map +1 -0
  49. package/bin/mcpg/v1alpha1/mcpgpluginList.js +88 -0
  50. package/bin/mcpg/v1alpha1/mcpgpluginList.js.map +1 -0
  51. package/bin/mcpg/v1alpha1/mcpgpluginMirror.d.ts +63 -0
  52. package/bin/mcpg/v1alpha1/mcpgpluginMirror.d.ts.map +1 -0
  53. package/bin/mcpg/v1alpha1/mcpgpluginMirror.js +87 -0
  54. package/bin/mcpg/v1alpha1/mcpgpluginMirror.js.map +1 -0
  55. package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.d.ts +68 -0
  56. package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.d.ts.map +1 -0
  57. package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.js +88 -0
  58. package/bin/mcpg/v1alpha1/mcpgpluginMirrorList.js.map +1 -0
  59. package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.d.ts +69 -0
  60. package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.d.ts.map +1 -0
  61. package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.js +93 -0
  62. package/bin/mcpg/v1alpha1/mcpgpluginMirrorPatch.js.map +1 -0
  63. package/bin/mcpg/v1alpha1/mcpgpluginPatch.d.ts +69 -0
  64. package/bin/mcpg/v1alpha1/mcpgpluginPatch.d.ts.map +1 -0
  65. package/bin/mcpg/v1alpha1/mcpgpluginPatch.js +93 -0
  66. package/bin/mcpg/v1alpha1/mcpgpluginPatch.js.map +1 -0
  67. package/bin/mcpg/v1alpha1/mcpgpluginSet.d.ts +63 -0
  68. package/bin/mcpg/v1alpha1/mcpgpluginSet.d.ts.map +1 -0
  69. package/bin/mcpg/v1alpha1/mcpgpluginSet.js +87 -0
  70. package/bin/mcpg/v1alpha1/mcpgpluginSet.js.map +1 -0
  71. package/bin/mcpg/v1alpha1/mcpgpluginSetList.d.ts +68 -0
  72. package/bin/mcpg/v1alpha1/mcpgpluginSetList.d.ts.map +1 -0
  73. package/bin/mcpg/v1alpha1/mcpgpluginSetList.js +88 -0
  74. package/bin/mcpg/v1alpha1/mcpgpluginSetList.js.map +1 -0
  75. package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.d.ts +69 -0
  76. package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.d.ts.map +1 -0
  77. package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.js +93 -0
  78. package/bin/mcpg/v1alpha1/mcpgpluginSetPatch.js.map +1 -0
  79. package/bin/mcpg/v1alpha1/mcpgrevocationList.d.ts +63 -0
  80. package/bin/mcpg/v1alpha1/mcpgrevocationList.d.ts.map +1 -0
  81. package/bin/mcpg/v1alpha1/mcpgrevocationList.js +87 -0
  82. package/bin/mcpg/v1alpha1/mcpgrevocationList.js.map +1 -0
  83. package/bin/mcpg/v1alpha1/mcpgrevocationListList.d.ts +68 -0
  84. package/bin/mcpg/v1alpha1/mcpgrevocationListList.d.ts.map +1 -0
  85. package/bin/mcpg/v1alpha1/mcpgrevocationListList.js +88 -0
  86. package/bin/mcpg/v1alpha1/mcpgrevocationListList.js.map +1 -0
  87. package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.d.ts +69 -0
  88. package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.d.ts.map +1 -0
  89. package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.js +93 -0
  90. package/bin/mcpg/v1alpha1/mcpgrevocationListPatch.js.map +1 -0
  91. package/bin/mcpg/v1alpha1/mcpgroute.d.ts +63 -0
  92. package/bin/mcpg/v1alpha1/mcpgroute.d.ts.map +1 -0
  93. package/bin/mcpg/v1alpha1/mcpgroute.js +87 -0
  94. package/bin/mcpg/v1alpha1/mcpgroute.js.map +1 -0
  95. package/bin/mcpg/v1alpha1/mcpgrouteList.d.ts +68 -0
  96. package/bin/mcpg/v1alpha1/mcpgrouteList.d.ts.map +1 -0
  97. package/bin/mcpg/v1alpha1/mcpgrouteList.js +88 -0
  98. package/bin/mcpg/v1alpha1/mcpgrouteList.js.map +1 -0
  99. package/bin/mcpg/v1alpha1/mcpgroutePatch.d.ts +69 -0
  100. package/bin/mcpg/v1alpha1/mcpgroutePatch.d.ts.map +1 -0
  101. package/bin/mcpg/v1alpha1/mcpgroutePatch.js +93 -0
  102. package/bin/mcpg/v1alpha1/mcpgroutePatch.js.map +1 -0
  103. package/bin/mcpg/v1alpha1/mcpgtenant.d.ts +63 -0
  104. package/bin/mcpg/v1alpha1/mcpgtenant.d.ts.map +1 -0
  105. package/bin/mcpg/v1alpha1/mcpgtenant.js +87 -0
  106. package/bin/mcpg/v1alpha1/mcpgtenant.js.map +1 -0
  107. package/bin/mcpg/v1alpha1/mcpgtenantList.d.ts +68 -0
  108. package/bin/mcpg/v1alpha1/mcpgtenantList.d.ts.map +1 -0
  109. package/bin/mcpg/v1alpha1/mcpgtenantList.js +88 -0
  110. package/bin/mcpg/v1alpha1/mcpgtenantList.js.map +1 -0
  111. package/bin/mcpg/v1alpha1/mcpgtenantPatch.d.ts +69 -0
  112. package/bin/mcpg/v1alpha1/mcpgtenantPatch.d.ts.map +1 -0
  113. package/bin/mcpg/v1alpha1/mcpgtenantPatch.js +93 -0
  114. package/bin/mcpg/v1alpha1/mcpgtenantPatch.js.map +1 -0
  115. package/bin/package.json +36 -0
  116. package/bin/provider.d.ts +22 -0
  117. package/bin/provider.d.ts.map +1 -0
  118. package/bin/provider.js +61 -0
  119. package/bin/provider.js.map +1 -0
  120. package/bin/types/index.d.ts +4 -0
  121. package/bin/types/index.d.ts.map +1 -0
  122. package/bin/types/index.js +34 -0
  123. package/bin/types/index.js.map +1 -0
  124. package/bin/types/input.d.ts +2965 -0
  125. package/bin/types/input.d.ts.map +1 -0
  126. package/bin/types/input.js +5 -0
  127. package/bin/types/input.js.map +1 -0
  128. package/bin/types/output.d.ts +3538 -0
  129. package/bin/types/output.d.ts.map +1 -0
  130. package/bin/types/output.js +5 -0
  131. package/bin/types/output.js.map +1 -0
  132. package/bin/utilities.d.ts +5 -0
  133. package/bin/utilities.d.ts.map +1 -0
  134. package/bin/utilities.js +115 -0
  135. package/bin/utilities.js.map +1 -0
  136. package/index.ts +30 -0
  137. package/mcpg/index.ts +11 -0
  138. package/mcpg/v1alpha1/index.ts +186 -0
  139. package/mcpg/v1alpha1/mcpgcluster.ts +99 -0
  140. package/mcpg/v1alpha1/mcpgclusterList.ts +105 -0
  141. package/mcpg/v1alpha1/mcpgclusterPatch.ts +105 -0
  142. package/mcpg/v1alpha1/mcpggateway.ts +99 -0
  143. package/mcpg/v1alpha1/mcpggatewayList.ts +105 -0
  144. package/mcpg/v1alpha1/mcpggatewayPatch.ts +105 -0
  145. package/mcpg/v1alpha1/mcpgplugin.ts +99 -0
  146. package/mcpg/v1alpha1/mcpgpluginList.ts +105 -0
  147. package/mcpg/v1alpha1/mcpgpluginMirror.ts +99 -0
  148. package/mcpg/v1alpha1/mcpgpluginMirrorList.ts +105 -0
  149. package/mcpg/v1alpha1/mcpgpluginMirrorPatch.ts +105 -0
  150. package/mcpg/v1alpha1/mcpgpluginPatch.ts +105 -0
  151. package/mcpg/v1alpha1/mcpgpluginSet.ts +99 -0
  152. package/mcpg/v1alpha1/mcpgpluginSetList.ts +105 -0
  153. package/mcpg/v1alpha1/mcpgpluginSetPatch.ts +105 -0
  154. package/mcpg/v1alpha1/mcpgrevocationList.ts +99 -0
  155. package/mcpg/v1alpha1/mcpgrevocationListList.ts +105 -0
  156. package/mcpg/v1alpha1/mcpgrevocationListPatch.ts +105 -0
  157. package/mcpg/v1alpha1/mcpgroute.ts +99 -0
  158. package/mcpg/v1alpha1/mcpgrouteList.ts +105 -0
  159. package/mcpg/v1alpha1/mcpgroutePatch.ts +105 -0
  160. package/mcpg/v1alpha1/mcpgtenant.ts +99 -0
  161. package/mcpg/v1alpha1/mcpgtenantList.ts +105 -0
  162. package/mcpg/v1alpha1/mcpgtenantPatch.ts +105 -0
  163. package/meta/v1.ts +4 -0
  164. package/package.json +36 -0
  165. package/provider.ts +44 -0
  166. package/scripts/postinstall.js +20 -0
  167. package/tsconfig.json +55 -0
  168. package/types/index.ts +13 -0
  169. package/types/input.ts +3030 -0
  170. package/types/output.ts +3622 -0
  171. package/utilities.ts +98 -0
@@ -0,0 +1,3622 @@
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
+
8
+ export namespace mcpg {
9
+ export namespace v1alpha1 {
10
+ /**
11
+ * Auto-generated derived type for MCPGClusterSpec via `CustomResource`
12
+ */
13
+ export interface MCPGCluster {
14
+ /**
15
+ * 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
16
+ */
17
+ apiVersion: "mcpg.dev/v1alpha1";
18
+ /**
19
+ * 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
20
+ */
21
+ kind: "MCPGCluster";
22
+ /**
23
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
24
+ */
25
+ metadata: outputs.meta.v1.ObjectMeta;
26
+ spec: outputs.mcpg.v1alpha1.MCPGClusterSpec;
27
+ status: outputs.mcpg.v1alpha1.MCPGClusterStatus;
28
+ }
29
+
30
+ /**
31
+ * Cluster-coordination backend binding.
32
+ * Cluster-scoped coordination-backend binding. Gateways reference
33
+ * it via `spec.clusterRef`; the operator injects the rendered
34
+ * `cluster:` config block (and the matching cluster cdylib entry)
35
+ * into each bound gateway's config.
36
+ */
37
+ export interface MCPGClusterSpec {
38
+ /**
39
+ * Which coordination backend this cluster provides.
40
+ */
41
+ backend: string;
42
+ /**
43
+ * Per-backend configuration, rendered verbatim into the
44
+ * gateway's `cluster:` block alongside `kind:` (the gateway
45
+ * flattens these — e.g. `url`, `key_prefix` for redis;
46
+ * `servers`, `bucket` for nats). Schema-blind: the gateway's
47
+ * own validator is the source of truth. Ignored for
48
+ * `single_node`.
49
+ */
50
+ config: {[key: string]: any};
51
+ /**
52
+ * Optional secret references whose keys are surfaced to the
53
+ * gateway as `${cluster.<key>}` config-substitution values —
54
+ * e.g. a Redis password or NATS credentials file. The operator
55
+ * projects these into the gateway pod the same way plugin
56
+ * Secrets are projected; the gateway resolves the `cred://`
57
+ * reference at config-load time. Keeps backend credentials out
58
+ * of the (world-readable) `MCPGCluster` spec.
59
+ */
60
+ credentialRefs: outputs.mcpg.v1alpha1.MCPGClusterSpecCredentialRefs[];
61
+ pluginRef: outputs.mcpg.v1alpha1.MCPGClusterSpecPluginRef;
62
+ }
63
+
64
+ /**
65
+ * A backend credential projected into bound gateway pods. The
66
+ * `secretName` lives in the operator's namespace (same trust
67
+ * boundary as plugin signing keys); `key` selects the entry.
68
+ */
69
+ export interface MCPGClusterSpecCredentialRefs {
70
+ /**
71
+ * Key within the Secret. Defaults to `name`.
72
+ */
73
+ key: string;
74
+ /**
75
+ * Logical name the gateway config references (e.g. `password`).
76
+ * Surfaced as `cred://cluster/<name>` to the gateway.
77
+ */
78
+ name: string;
79
+ /**
80
+ * Secret name in the operator namespace.
81
+ */
82
+ secretName: string;
83
+ }
84
+
85
+ /**
86
+ * A backend credential projected into bound gateway pods. The
87
+ * `secretName` lives in the operator's namespace (same trust
88
+ * boundary as plugin signing keys); `key` selects the entry.
89
+ */
90
+ export interface MCPGClusterSpecCredentialRefsPatch {
91
+ /**
92
+ * Key within the Secret. Defaults to `name`.
93
+ */
94
+ key: string;
95
+ /**
96
+ * Logical name the gateway config references (e.g. `password`).
97
+ * Surfaced as `cred://cluster/<name>` to the gateway.
98
+ */
99
+ name: string;
100
+ /**
101
+ * Secret name in the operator namespace.
102
+ */
103
+ secretName: string;
104
+ }
105
+
106
+ /**
107
+ * Cluster-coordination backend binding.
108
+ * Cluster-scoped coordination-backend binding. Gateways reference
109
+ * it via `spec.clusterRef`; the operator injects the rendered
110
+ * `cluster:` config block (and the matching cluster cdylib entry)
111
+ * into each bound gateway's config.
112
+ */
113
+ export interface MCPGClusterSpecPatch {
114
+ /**
115
+ * Which coordination backend this cluster provides.
116
+ */
117
+ backend: string;
118
+ /**
119
+ * Per-backend configuration, rendered verbatim into the
120
+ * gateway's `cluster:` block alongside `kind:` (the gateway
121
+ * flattens these — e.g. `url`, `key_prefix` for redis;
122
+ * `servers`, `bucket` for nats). Schema-blind: the gateway's
123
+ * own validator is the source of truth. Ignored for
124
+ * `single_node`.
125
+ */
126
+ config: {[key: string]: any};
127
+ /**
128
+ * Optional secret references whose keys are surfaced to the
129
+ * gateway as `${cluster.<key>}` config-substitution values —
130
+ * e.g. a Redis password or NATS credentials file. The operator
131
+ * projects these into the gateway pod the same way plugin
132
+ * Secrets are projected; the gateway resolves the `cred://`
133
+ * reference at config-load time. Keeps backend credentials out
134
+ * of the (world-readable) `MCPGCluster` spec.
135
+ */
136
+ credentialRefs: outputs.mcpg.v1alpha1.MCPGClusterSpecCredentialRefsPatch[];
137
+ pluginRef: outputs.mcpg.v1alpha1.MCPGClusterSpecPluginRefPatch;
138
+ }
139
+
140
+ /**
141
+ * Optional reference to the cluster cdylib's OCI source via a
142
+ * cluster-scoped `MCPGPlugin`. When set, the operator requires
143
+ * the named plugin to be `Ready` (verified + not revoked)
144
+ * before binding — so a coordinator can't come up against an
145
+ * unverified cluster plugin. When unset, the operator assumes
146
+ * the gateway's `pluginSetRef` already supplies the
147
+ * `dev.mcpg.cluster.<backend>` cdylib and only renders the
148
+ * `cluster:` config block.
149
+ */
150
+ export interface MCPGClusterSpecPluginRef {
151
+ name: string;
152
+ }
153
+
154
+ /**
155
+ * Optional reference to the cluster cdylib's OCI source via a
156
+ * cluster-scoped `MCPGPlugin`. When set, the operator requires
157
+ * the named plugin to be `Ready` (verified + not revoked)
158
+ * before binding — so a coordinator can't come up against an
159
+ * unverified cluster plugin. When unset, the operator assumes
160
+ * the gateway's `pluginSetRef` already supplies the
161
+ * `dev.mcpg.cluster.<backend>` cdylib and only renders the
162
+ * `cluster:` config block.
163
+ */
164
+ export interface MCPGClusterSpecPluginRefPatch {
165
+ name: string;
166
+ }
167
+
168
+ /**
169
+ * Observed state for `MCPGCluster`.
170
+ */
171
+ export interface MCPGClusterStatus {
172
+ /**
173
+ * Count of `MCPGGateway`s currently bound to this cluster via
174
+ * `spec.clusterRef`. Lets ops see blast radius before editing.
175
+ */
176
+ boundGateways: number;
177
+ /**
178
+ * Standard `metav1.Condition[]`. The operator sets `Ready=True`
179
+ * when the backend is bindable (plugin verified when
180
+ * `pluginRef` is set; always for `single_node`).
181
+ */
182
+ conditions: outputs.mcpg.v1alpha1.MCPGClusterStatusConditions[];
183
+ /**
184
+ * SHA-256 of the rendered `cluster:` config block. Bound
185
+ * gateways fold this into their pod-roll hash, so a cluster
186
+ * config edit rolls every bound gateway.
187
+ */
188
+ configHash: string;
189
+ lastReconcileTime: string;
190
+ observedGeneration: number;
191
+ /**
192
+ * The resolved cluster cdylib plugin id (`None`/absent for
193
+ * `single_node`). Surfaced so ops can confirm the backend
194
+ * mapping without reading the spec enum.
195
+ */
196
+ pluginId: string;
197
+ }
198
+
199
+ /**
200
+ * One status condition. Serde shape matches K8s
201
+ * `metav1.Condition` exactly so generic tooling (kubectl,
202
+ * kustomize, Argo CD) interprets it correctly.
203
+ */
204
+ export interface MCPGClusterStatusConditions {
205
+ /**
206
+ * RFC3339 timestamp of the most recent transition.
207
+ */
208
+ lastTransitionTime: string;
209
+ /**
210
+ * Free-text human-readable detail. May be empty.
211
+ */
212
+ message: string;
213
+ /**
214
+ * `metadata.generation` the controller had observed when
215
+ * it set this condition. Lets clients detect stale status.
216
+ */
217
+ observedGeneration: number;
218
+ /**
219
+ * CamelCase enum the operator defines per controller.
220
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
221
+ * `SignatureMismatch`.
222
+ */
223
+ reason: string;
224
+ /**
225
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
226
+ * keep this as a string (not a bool) so `Unknown` is
227
+ * representable.
228
+ */
229
+ status: string;
230
+ /**
231
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
232
+ * `Progressing`, `Failed`, plus per-CRD types.
233
+ */
234
+ type: string;
235
+ }
236
+
237
+ /**
238
+ * One status condition. Serde shape matches K8s
239
+ * `metav1.Condition` exactly so generic tooling (kubectl,
240
+ * kustomize, Argo CD) interprets it correctly.
241
+ */
242
+ export interface MCPGClusterStatusConditionsPatch {
243
+ /**
244
+ * RFC3339 timestamp of the most recent transition.
245
+ */
246
+ lastTransitionTime: string;
247
+ /**
248
+ * Free-text human-readable detail. May be empty.
249
+ */
250
+ message: string;
251
+ /**
252
+ * `metadata.generation` the controller had observed when
253
+ * it set this condition. Lets clients detect stale status.
254
+ */
255
+ observedGeneration: number;
256
+ /**
257
+ * CamelCase enum the operator defines per controller.
258
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
259
+ * `SignatureMismatch`.
260
+ */
261
+ reason: string;
262
+ /**
263
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
264
+ * keep this as a string (not a bool) so `Unknown` is
265
+ * representable.
266
+ */
267
+ status: string;
268
+ /**
269
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
270
+ * `Progressing`, `Failed`, plus per-CRD types.
271
+ */
272
+ type: string;
273
+ }
274
+
275
+ /**
276
+ * Observed state for `MCPGCluster`.
277
+ */
278
+ export interface MCPGClusterStatusPatch {
279
+ /**
280
+ * Count of `MCPGGateway`s currently bound to this cluster via
281
+ * `spec.clusterRef`. Lets ops see blast radius before editing.
282
+ */
283
+ boundGateways: number;
284
+ /**
285
+ * Standard `metav1.Condition[]`. The operator sets `Ready=True`
286
+ * when the backend is bindable (plugin verified when
287
+ * `pluginRef` is set; always for `single_node`).
288
+ */
289
+ conditions: outputs.mcpg.v1alpha1.MCPGClusterStatusConditionsPatch[];
290
+ /**
291
+ * SHA-256 of the rendered `cluster:` config block. Bound
292
+ * gateways fold this into their pod-roll hash, so a cluster
293
+ * config edit rolls every bound gateway.
294
+ */
295
+ configHash: string;
296
+ lastReconcileTime: string;
297
+ observedGeneration: number;
298
+ /**
299
+ * The resolved cluster cdylib plugin id (`None`/absent for
300
+ * `single_node`). Surfaced so ops can confirm the backend
301
+ * mapping without reading the spec enum.
302
+ */
303
+ pluginId: string;
304
+ }
305
+
306
+ /**
307
+ * Auto-generated derived type for MCPGGatewaySpec via `CustomResource`
308
+ */
309
+ export interface MCPGGateway {
310
+ /**
311
+ * 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
312
+ */
313
+ apiVersion: "mcpg.dev/v1alpha1";
314
+ /**
315
+ * 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
316
+ */
317
+ kind: "MCPGGateway";
318
+ /**
319
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
320
+ */
321
+ metadata: outputs.meta.v1.ObjectMeta;
322
+ spec: outputs.mcpg.v1alpha1.MCPGGatewaySpec;
323
+ status: outputs.mcpg.v1alpha1.MCPGGatewayStatus;
324
+ }
325
+
326
+ /**
327
+ * Desired state for a tenant's `MCPGGateway`.
328
+ *
329
+ * The operator's gateway controller renders this into a
330
+ * Deployment + Service + ConfigMap (+ optional Ingress,
331
+ * NetworkPolicy, PDB, ServiceMonitor) and reconciles them into
332
+ * the gateway's namespace. Every field maps either directly to
333
+ * a Kubernetes shape or to a gateway-config key that lands in
334
+ * the rendered ConfigMap.
335
+ *
336
+ * Cross-cutting fields (`pluginSetRef`, `revocationListRef`)
337
+ * pull in resources from the cluster-level plugin lifecycle —
338
+ * see [`crate::v1alpha1::MCPGPluginSet`] and
339
+ * [`crate::v1alpha1::MCPGRevocationList`].
340
+ */
341
+ export interface MCPGGatewaySpec {
342
+ /**
343
+ * Soft-tenancy allow-list: namespaces permitted to attach an
344
+ * `MCPGRoute` to this gateway. A route in a namespace NOT listed
345
+ * here is rejected at admission (and ignored by the route
346
+ * controller). Empty/unset ⇒ this gateway accepts no external
347
+ * routes (routes in the gateway's own namespace are always
348
+ * allowed). This is the platform team's explicit opt-in to which
349
+ * tenant namespaces may share the gateway.
350
+ */
351
+ acceptedRouteNamespaces: string[];
352
+ autoscaling: outputs.mcpg.v1alpha1.MCPGGatewaySpecAutoscaling;
353
+ cloud: outputs.mcpg.v1alpha1.MCPGGatewaySpecCloud;
354
+ clusterRef: outputs.mcpg.v1alpha1.MCPGGatewaySpecClusterRef;
355
+ config: {[key: string]: any};
356
+ image: outputs.mcpg.v1alpha1.MCPGGatewaySpecImage;
357
+ imagePullSecrets: outputs.mcpg.v1alpha1.MCPGGatewaySpecImagePullSecrets[];
358
+ ingress: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngress;
359
+ monitoring: outputs.mcpg.v1alpha1.MCPGGatewaySpecMonitoring;
360
+ networkPolicy: outputs.mcpg.v1alpha1.MCPGGatewaySpecNetworkPolicy;
361
+ pluginSetRef: outputs.mcpg.v1alpha1.MCPGGatewaySpecPluginSetRef;
362
+ podAnnotations: {[key: string]: string};
363
+ podDisruptionBudget: outputs.mcpg.v1alpha1.MCPGGatewaySpecPodDisruptionBudget;
364
+ podLabels: {[key: string]: string};
365
+ probes: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbes;
366
+ replicas: number;
367
+ resources: outputs.mcpg.v1alpha1.MCPGGatewaySpecResources;
368
+ revocationListRef: outputs.mcpg.v1alpha1.MCPGGatewaySpecRevocationListRef;
369
+ scheduling: outputs.mcpg.v1alpha1.MCPGGatewaySpecScheduling;
370
+ service: outputs.mcpg.v1alpha1.MCPGGatewaySpecService;
371
+ workloadIdentity: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentity;
372
+ }
373
+
374
+ /**
375
+ * Optional HPA shape. When `enabled = true` the operator renders
376
+ * an `autoscaling/v2.HorizontalPodAutoscaler` targeting the
377
+ * gateway Deployment. Disabled by default — `replicas` is the
378
+ * canonical knob for most users.
379
+ */
380
+ export interface MCPGGatewaySpecAutoscaling {
381
+ enabled: boolean;
382
+ maxReplicas: number;
383
+ metrics: outputs.mcpg.v1alpha1.MCPGGatewaySpecAutoscalingMetrics[];
384
+ minReplicas: number;
385
+ }
386
+
387
+ export interface MCPGGatewaySpecAutoscalingMetrics {
388
+ external: {[key: string]: any};
389
+ object: {[key: string]: any};
390
+ pods: {[key: string]: any};
391
+ resource: {[key: string]: any};
392
+ type: string;
393
+ }
394
+
395
+ export interface MCPGGatewaySpecAutoscalingMetricsPatch {
396
+ external: {[key: string]: any};
397
+ object: {[key: string]: any};
398
+ pods: {[key: string]: any};
399
+ resource: {[key: string]: any};
400
+ type: string;
401
+ }
402
+
403
+ /**
404
+ * Optional HPA shape. When `enabled = true` the operator renders
405
+ * an `autoscaling/v2.HorizontalPodAutoscaler` targeting the
406
+ * gateway Deployment. Disabled by default — `replicas` is the
407
+ * canonical knob for most users.
408
+ */
409
+ export interface MCPGGatewaySpecAutoscalingPatch {
410
+ enabled: boolean;
411
+ maxReplicas: number;
412
+ metrics: outputs.mcpg.v1alpha1.MCPGGatewaySpecAutoscalingMetricsPatch[];
413
+ minReplicas: number;
414
+ }
415
+
416
+ /**
417
+ * Managed-fleet (mcpg.cloud) routing + identity. Present only on
418
+ * Cloud-provisioned gateways; absent for self-host, where a CR renders
419
+ * byte-identical to before. Consumed by the deploy-spine HTTPRoute
420
+ * renderer + the resource-metadata injector.
421
+ */
422
+ export interface MCPGGatewaySpecCloud {
423
+ /**
424
+ * Additional customer-owned hostnames (CNAME -> the instance edge); each
425
+ * gets its own HTTPRoute host match + TLS certificate.
426
+ */
427
+ customDomains: string[];
428
+ /**
429
+ * Canonical external URL (`https://{instanceSlug}.mcpg.cloud/mcp`). The
430
+ * operator injects this into `governance.access.resource_metadata.resource`
431
+ * so OAuth resource-indicator validation works; never trusted from a
432
+ * published config.
433
+ */
434
+ externalUrl: string;
435
+ /**
436
+ * Globally-unique instance slug — the public DNS label addressing the
437
+ * gateway at `{instanceSlug}.mcpg.cloud/mcp`. Drives the HTTPRoute host
438
+ * match + per-instance resource naming.
439
+ */
440
+ instanceSlug: string;
441
+ /**
442
+ * Tenant/org slug — billing + console grouping.
443
+ */
444
+ orgSlug: string;
445
+ }
446
+
447
+ /**
448
+ * Managed-fleet (mcpg.cloud) routing + identity. Present only on
449
+ * Cloud-provisioned gateways; absent for self-host, where a CR renders
450
+ * byte-identical to before. Consumed by the deploy-spine HTTPRoute
451
+ * renderer + the resource-metadata injector.
452
+ */
453
+ export interface MCPGGatewaySpecCloudPatch {
454
+ /**
455
+ * Additional customer-owned hostnames (CNAME -> the instance edge); each
456
+ * gets its own HTTPRoute host match + TLS certificate.
457
+ */
458
+ customDomains: string[];
459
+ /**
460
+ * Canonical external URL (`https://{instanceSlug}.mcpg.cloud/mcp`). The
461
+ * operator injects this into `governance.access.resource_metadata.resource`
462
+ * so OAuth resource-indicator validation works; never trusted from a
463
+ * published config.
464
+ */
465
+ externalUrl: string;
466
+ /**
467
+ * Globally-unique instance slug — the public DNS label addressing the
468
+ * gateway at `{instanceSlug}.mcpg.cloud/mcp`. Drives the HTTPRoute host
469
+ * match + per-instance resource naming.
470
+ */
471
+ instanceSlug: string;
472
+ /**
473
+ * Tenant/org slug — billing + console grouping.
474
+ */
475
+ orgSlug: string;
476
+ }
477
+
478
+ /**
479
+ * Reference to a cluster-scoped `MCPGCluster`. When set, the
480
+ * operator renders that backend's `cluster:` config block into
481
+ * this gateway's config (and folds the cluster's config-hash
482
+ * into the pod-roll trigger), so every replica binds the same
483
+ * coordinator. When unset the gateway runs `single_node`
484
+ * (in-process) — correct only for a single replica.
485
+ */
486
+ export interface MCPGGatewaySpecClusterRef {
487
+ /**
488
+ * Cluster-scoped `MCPGCluster` resource name.
489
+ */
490
+ name: string;
491
+ }
492
+
493
+ /**
494
+ * Reference to a cluster-scoped `MCPGCluster`. When set, the
495
+ * operator renders that backend's `cluster:` config block into
496
+ * this gateway's config (and folds the cluster's config-hash
497
+ * into the pod-roll trigger), so every replica binds the same
498
+ * coordinator. When unset the gateway runs `single_node`
499
+ * (in-process) — correct only for a single replica.
500
+ */
501
+ export interface MCPGGatewaySpecClusterRefPatch {
502
+ /**
503
+ * Cluster-scoped `MCPGCluster` resource name.
504
+ */
505
+ name: string;
506
+ }
507
+
508
+ /**
509
+ * Container image coordinates for the rendered gateway pod.
510
+ * All three fields default at reconcile time — `repository`
511
+ * from operator config, `tag` from the chart's appVersion,
512
+ * `pullPolicy` to `IfNotPresent`.
513
+ */
514
+ export interface MCPGGatewaySpecImage {
515
+ pullPolicy: string;
516
+ repository: string;
517
+ tag: string;
518
+ }
519
+
520
+ /**
521
+ * Container image coordinates for the rendered gateway pod.
522
+ * All three fields default at reconcile time — `repository`
523
+ * from operator config, `tag` from the chart's appVersion,
524
+ * `pullPolicy` to `IfNotPresent`.
525
+ */
526
+ export interface MCPGGatewaySpecImagePatch {
527
+ pullPolicy: string;
528
+ repository: string;
529
+ tag: string;
530
+ }
531
+
532
+ /**
533
+ * Same shape as `core/v1.LocalObjectReference`. Used wherever
534
+ * the spec needs to point at another in-namespace resource —
535
+ * imagePullSecrets, plugin refs, etc.
536
+ */
537
+ export interface MCPGGatewaySpecImagePullSecrets {
538
+ name: string;
539
+ }
540
+
541
+ /**
542
+ * Same shape as `core/v1.LocalObjectReference`. Used wherever
543
+ * the spec needs to point at another in-namespace resource —
544
+ * imagePullSecrets, plugin refs, etc.
545
+ */
546
+ export interface MCPGGatewaySpecImagePullSecretsPatch {
547
+ name: string;
548
+ }
549
+
550
+ export interface MCPGGatewaySpecIngress {
551
+ annotations: {[key: string]: string};
552
+ hosts: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngressHosts[];
553
+ ingressClassName: string;
554
+ tls: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngressTls[];
555
+ }
556
+
557
+ export interface MCPGGatewaySpecIngressHosts {
558
+ host: string;
559
+ paths: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngressHostsPaths[];
560
+ }
561
+
562
+ export interface MCPGGatewaySpecIngressHostsPatch {
563
+ host: string;
564
+ paths: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngressHostsPathsPatch[];
565
+ }
566
+
567
+ export interface MCPGGatewaySpecIngressHostsPaths {
568
+ path: string;
569
+ pathType: string;
570
+ }
571
+
572
+ export interface MCPGGatewaySpecIngressHostsPathsPatch {
573
+ path: string;
574
+ pathType: string;
575
+ }
576
+
577
+ export interface MCPGGatewaySpecIngressPatch {
578
+ annotations: {[key: string]: string};
579
+ hosts: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngressHostsPatch[];
580
+ ingressClassName: string;
581
+ tls: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngressTlsPatch[];
582
+ }
583
+
584
+ export interface MCPGGatewaySpecIngressTls {
585
+ hosts: string[];
586
+ secretName: string;
587
+ }
588
+
589
+ export interface MCPGGatewaySpecIngressTlsPatch {
590
+ hosts: string[];
591
+ secretName: string;
592
+ }
593
+
594
+ /**
595
+ * Toggles ServiceMonitor + PrometheusRule rendering. Both
596
+ * require the cluster to have the Prometheus Operator CRDs
597
+ * installed; the operator will skip rendering if the API
598
+ * group is absent (and surface a degraded status).
599
+ */
600
+ export interface MCPGGatewaySpecMonitoring {
601
+ prometheusRule: outputs.mcpg.v1alpha1.MCPGGatewaySpecMonitoringPrometheusRule;
602
+ serviceMonitor: outputs.mcpg.v1alpha1.MCPGGatewaySpecMonitoringServiceMonitor;
603
+ }
604
+
605
+ /**
606
+ * Toggles ServiceMonitor + PrometheusRule rendering. Both
607
+ * require the cluster to have the Prometheus Operator CRDs
608
+ * installed; the operator will skip rendering if the API
609
+ * group is absent (and surface a degraded status).
610
+ */
611
+ export interface MCPGGatewaySpecMonitoringPatch {
612
+ prometheusRule: outputs.mcpg.v1alpha1.MCPGGatewaySpecMonitoringPrometheusRulePatch;
613
+ serviceMonitor: outputs.mcpg.v1alpha1.MCPGGatewaySpecMonitoringServiceMonitorPatch;
614
+ }
615
+
616
+ /**
617
+ * Knobs for the rendered PrometheusRule. `severity` is
618
+ * stamped on every alert in the rendered group; defaults to
619
+ * `warning`.
620
+ */
621
+ export interface MCPGGatewaySpecMonitoringPrometheusRule {
622
+ enabled: boolean;
623
+ severity: string;
624
+ }
625
+
626
+ /**
627
+ * Knobs for the rendered PrometheusRule. `severity` is
628
+ * stamped on every alert in the rendered group; defaults to
629
+ * `warning`.
630
+ */
631
+ export interface MCPGGatewaySpecMonitoringPrometheusRulePatch {
632
+ enabled: boolean;
633
+ severity: string;
634
+ }
635
+
636
+ /**
637
+ * Knobs for the rendered ServiceMonitor. `interval` /
638
+ * `scrapeTimeout` follow Prometheus duration syntax (`30s`,
639
+ * `1m`).
640
+ */
641
+ export interface MCPGGatewaySpecMonitoringServiceMonitor {
642
+ enabled: boolean;
643
+ interval: string;
644
+ labels: {[key: string]: string};
645
+ scrapeTimeout: string;
646
+ }
647
+
648
+ /**
649
+ * Knobs for the rendered ServiceMonitor. `interval` /
650
+ * `scrapeTimeout` follow Prometheus duration syntax (`30s`,
651
+ * `1m`).
652
+ */
653
+ export interface MCPGGatewaySpecMonitoringServiceMonitorPatch {
654
+ enabled: boolean;
655
+ interval: string;
656
+ labels: {[key: string]: string};
657
+ scrapeTimeout: string;
658
+ }
659
+
660
+ /**
661
+ * Toggles whether the operator renders a NetworkPolicy alongside
662
+ * the gateway Deployment. The default policy denies all
663
+ * ingress/egress except the gateway listen port +
664
+ * management traffic; `extraIngressFrom` / `extraEgressTo`
665
+ * supply caller-specific exceptions (e.g. database egress).
666
+ */
667
+ export interface MCPGGatewaySpecNetworkPolicy {
668
+ enabled: boolean;
669
+ extraEgressTo: {[key: string]: any}[];
670
+ extraIngressFrom: {[key: string]: any}[];
671
+ }
672
+
673
+ /**
674
+ * Toggles whether the operator renders a NetworkPolicy alongside
675
+ * the gateway Deployment. The default policy denies all
676
+ * ingress/egress except the gateway listen port +
677
+ * management traffic; `extraIngressFrom` / `extraEgressTo`
678
+ * supply caller-specific exceptions (e.g. database egress).
679
+ */
680
+ export interface MCPGGatewaySpecNetworkPolicyPatch {
681
+ enabled: boolean;
682
+ extraEgressTo: {[key: string]: any}[];
683
+ extraIngressFrom: {[key: string]: any}[];
684
+ }
685
+
686
+ /**
687
+ * Desired state for a tenant's `MCPGGateway`.
688
+ *
689
+ * The operator's gateway controller renders this into a
690
+ * Deployment + Service + ConfigMap (+ optional Ingress,
691
+ * NetworkPolicy, PDB, ServiceMonitor) and reconciles them into
692
+ * the gateway's namespace. Every field maps either directly to
693
+ * a Kubernetes shape or to a gateway-config key that lands in
694
+ * the rendered ConfigMap.
695
+ *
696
+ * Cross-cutting fields (`pluginSetRef`, `revocationListRef`)
697
+ * pull in resources from the cluster-level plugin lifecycle —
698
+ * see [`crate::v1alpha1::MCPGPluginSet`] and
699
+ * [`crate::v1alpha1::MCPGRevocationList`].
700
+ */
701
+ export interface MCPGGatewaySpecPatch {
702
+ /**
703
+ * Soft-tenancy allow-list: namespaces permitted to attach an
704
+ * `MCPGRoute` to this gateway. A route in a namespace NOT listed
705
+ * here is rejected at admission (and ignored by the route
706
+ * controller). Empty/unset ⇒ this gateway accepts no external
707
+ * routes (routes in the gateway's own namespace are always
708
+ * allowed). This is the platform team's explicit opt-in to which
709
+ * tenant namespaces may share the gateway.
710
+ */
711
+ acceptedRouteNamespaces: string[];
712
+ autoscaling: outputs.mcpg.v1alpha1.MCPGGatewaySpecAutoscalingPatch;
713
+ cloud: outputs.mcpg.v1alpha1.MCPGGatewaySpecCloudPatch;
714
+ clusterRef: outputs.mcpg.v1alpha1.MCPGGatewaySpecClusterRefPatch;
715
+ config: {[key: string]: any};
716
+ image: outputs.mcpg.v1alpha1.MCPGGatewaySpecImagePatch;
717
+ imagePullSecrets: outputs.mcpg.v1alpha1.MCPGGatewaySpecImagePullSecretsPatch[];
718
+ ingress: outputs.mcpg.v1alpha1.MCPGGatewaySpecIngressPatch;
719
+ monitoring: outputs.mcpg.v1alpha1.MCPGGatewaySpecMonitoringPatch;
720
+ networkPolicy: outputs.mcpg.v1alpha1.MCPGGatewaySpecNetworkPolicyPatch;
721
+ pluginSetRef: outputs.mcpg.v1alpha1.MCPGGatewaySpecPluginSetRefPatch;
722
+ podAnnotations: {[key: string]: string};
723
+ podDisruptionBudget: outputs.mcpg.v1alpha1.MCPGGatewaySpecPodDisruptionBudgetPatch;
724
+ podLabels: {[key: string]: string};
725
+ probes: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbesPatch;
726
+ replicas: number;
727
+ resources: outputs.mcpg.v1alpha1.MCPGGatewaySpecResourcesPatch;
728
+ revocationListRef: outputs.mcpg.v1alpha1.MCPGGatewaySpecRevocationListRefPatch;
729
+ scheduling: outputs.mcpg.v1alpha1.MCPGGatewaySpecSchedulingPatch;
730
+ service: outputs.mcpg.v1alpha1.MCPGGatewaySpecServicePatch;
731
+ workloadIdentity: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentityPatch;
732
+ }
733
+
734
+ /**
735
+ * Reference to a `MCPGPluginSet` in the same namespace.
736
+ * When set, the gateway pod's projected volume includes the
737
+ * resolved per-plugin Secrets, and `plugins[]` in the
738
+ * rendered config is sourced from the set. Optional —
739
+ * gateways without a plugin set boot with whatever lives in
740
+ * `spec.config.plugins[]`.
741
+ */
742
+ export interface MCPGGatewaySpecPluginSetRef {
743
+ /**
744
+ * `MCPGPluginSet` resource name, in the same namespace as
745
+ * the gateway.
746
+ */
747
+ name: string;
748
+ }
749
+
750
+ /**
751
+ * Reference to a `MCPGPluginSet` in the same namespace.
752
+ * When set, the gateway pod's projected volume includes the
753
+ * resolved per-plugin Secrets, and `plugins[]` in the
754
+ * rendered config is sourced from the set. Optional —
755
+ * gateways without a plugin set boot with whatever lives in
756
+ * `spec.config.plugins[]`.
757
+ */
758
+ export interface MCPGGatewaySpecPluginSetRefPatch {
759
+ /**
760
+ * `MCPGPluginSet` resource name, in the same namespace as
761
+ * the gateway.
762
+ */
763
+ name: string;
764
+ }
765
+
766
+ /**
767
+ * Wraps `policy/v1.PodDisruptionBudgetSpec`. Both threshold
768
+ * fields are int-or-string to mirror the upstream API; pass
769
+ * either `"50%"` or `2`.
770
+ */
771
+ export interface MCPGGatewaySpecPodDisruptionBudget {
772
+ enabled: boolean;
773
+ maxUnavailable: number | string;
774
+ minAvailable: number | string;
775
+ }
776
+
777
+ /**
778
+ * Wraps `policy/v1.PodDisruptionBudgetSpec`. Both threshold
779
+ * fields are int-or-string to mirror the upstream API; pass
780
+ * either `"50%"` or `2`.
781
+ */
782
+ export interface MCPGGatewaySpecPodDisruptionBudgetPatch {
783
+ enabled: boolean;
784
+ maxUnavailable: number | string;
785
+ minAvailable: number | string;
786
+ }
787
+
788
+ /**
789
+ * Optional per-probe overrides. When `None`, the operator's
790
+ * rendered Deployment uses the chart defaults (which target
791
+ * `/healthz` + `/readyz` on the management port).
792
+ */
793
+ export interface MCPGGatewaySpecProbes {
794
+ liveness: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbesLiveness;
795
+ readiness: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbesReadiness;
796
+ startup: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbesStartup;
797
+ }
798
+
799
+ /**
800
+ * Per-probe knobs. Maps directly to `core/v1.Probe` minus the
801
+ * handler — handler is always HTTP GET on the management port
802
+ * for the gateway (see the rendered Deployment template).
803
+ */
804
+ export interface MCPGGatewaySpecProbesLiveness {
805
+ failureThreshold: number;
806
+ initialDelaySeconds: number;
807
+ path: string;
808
+ periodSeconds: number;
809
+ successThreshold: number;
810
+ timeoutSeconds: number;
811
+ }
812
+
813
+ /**
814
+ * Per-probe knobs. Maps directly to `core/v1.Probe` minus the
815
+ * handler — handler is always HTTP GET on the management port
816
+ * for the gateway (see the rendered Deployment template).
817
+ */
818
+ export interface MCPGGatewaySpecProbesLivenessPatch {
819
+ failureThreshold: number;
820
+ initialDelaySeconds: number;
821
+ path: string;
822
+ periodSeconds: number;
823
+ successThreshold: number;
824
+ timeoutSeconds: number;
825
+ }
826
+
827
+ /**
828
+ * Optional per-probe overrides. When `None`, the operator's
829
+ * rendered Deployment uses the chart defaults (which target
830
+ * `/healthz` + `/readyz` on the management port).
831
+ */
832
+ export interface MCPGGatewaySpecProbesPatch {
833
+ liveness: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbesLivenessPatch;
834
+ readiness: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbesReadinessPatch;
835
+ startup: outputs.mcpg.v1alpha1.MCPGGatewaySpecProbesStartupPatch;
836
+ }
837
+
838
+ /**
839
+ * Per-probe knobs. Maps directly to `core/v1.Probe` minus the
840
+ * handler — handler is always HTTP GET on the management port
841
+ * for the gateway (see the rendered Deployment template).
842
+ */
843
+ export interface MCPGGatewaySpecProbesReadiness {
844
+ failureThreshold: number;
845
+ initialDelaySeconds: number;
846
+ path: string;
847
+ periodSeconds: number;
848
+ successThreshold: number;
849
+ timeoutSeconds: number;
850
+ }
851
+
852
+ /**
853
+ * Per-probe knobs. Maps directly to `core/v1.Probe` minus the
854
+ * handler — handler is always HTTP GET on the management port
855
+ * for the gateway (see the rendered Deployment template).
856
+ */
857
+ export interface MCPGGatewaySpecProbesReadinessPatch {
858
+ failureThreshold: number;
859
+ initialDelaySeconds: number;
860
+ path: string;
861
+ periodSeconds: number;
862
+ successThreshold: number;
863
+ timeoutSeconds: number;
864
+ }
865
+
866
+ /**
867
+ * Per-probe knobs. Maps directly to `core/v1.Probe` minus the
868
+ * handler — handler is always HTTP GET on the management port
869
+ * for the gateway (see the rendered Deployment template).
870
+ */
871
+ export interface MCPGGatewaySpecProbesStartup {
872
+ failureThreshold: number;
873
+ initialDelaySeconds: number;
874
+ path: string;
875
+ periodSeconds: number;
876
+ successThreshold: number;
877
+ timeoutSeconds: number;
878
+ }
879
+
880
+ /**
881
+ * Per-probe knobs. Maps directly to `core/v1.Probe` minus the
882
+ * handler — handler is always HTTP GET on the management port
883
+ * for the gateway (see the rendered Deployment template).
884
+ */
885
+ export interface MCPGGatewaySpecProbesStartupPatch {
886
+ failureThreshold: number;
887
+ initialDelaySeconds: number;
888
+ path: string;
889
+ periodSeconds: number;
890
+ successThreshold: number;
891
+ timeoutSeconds: number;
892
+ }
893
+
894
+ /**
895
+ * Maps directly to `core/v1.ResourceRequirements`. We carry our
896
+ * own type rather than depending on `k8s-openapi` here because
897
+ * `operator-api` is `k8s-openapi`-version-agnostic — see the
898
+ * crate-level docs.
899
+ */
900
+ export interface MCPGGatewaySpecResources {
901
+ limits: {[key: string]: string};
902
+ requests: {[key: string]: string};
903
+ }
904
+
905
+ /**
906
+ * Maps directly to `core/v1.ResourceRequirements`. We carry our
907
+ * own type rather than depending on `k8s-openapi` here because
908
+ * `operator-api` is `k8s-openapi`-version-agnostic — see the
909
+ * crate-level docs.
910
+ */
911
+ export interface MCPGGatewaySpecResourcesPatch {
912
+ limits: {[key: string]: string};
913
+ requests: {[key: string]: string};
914
+ }
915
+
916
+ /**
917
+ * Reference to a cluster-scoped `MCPGRevocationList`. Defaults
918
+ * to the operator's `cluster-default` resource when unset.
919
+ * The operator materialises the revocation list into the
920
+ * gateway's namespace and mounts it; gateway pods enforce
921
+ * at plugin-load time.
922
+ */
923
+ export interface MCPGGatewaySpecRevocationListRef {
924
+ /**
925
+ * Cluster-scoped `MCPGRevocationList` resource name.
926
+ */
927
+ name: string;
928
+ }
929
+
930
+ /**
931
+ * Reference to a cluster-scoped `MCPGRevocationList`. Defaults
932
+ * to the operator's `cluster-default` resource when unset.
933
+ * The operator materialises the revocation list into the
934
+ * gateway's namespace and mounts it; gateway pods enforce
935
+ * at plugin-load time.
936
+ */
937
+ export interface MCPGGatewaySpecRevocationListRefPatch {
938
+ /**
939
+ * Cluster-scoped `MCPGRevocationList` resource name.
940
+ */
941
+ name: string;
942
+ }
943
+
944
+ /**
945
+ * Pod-scheduling pass-through fields. Each maps directly to
946
+ * the matching `PodSpec` field; the operator does not interpret
947
+ * them. `tolerations` and `affinity` are
948
+ * `x-kubernetes-preserve-unknown-fields` so we don't have to
949
+ * version-shift the operator's `k8s-openapi` dependency every
950
+ * time upstream adds a knob.
951
+ */
952
+ export interface MCPGGatewaySpecScheduling {
953
+ affinity: {[key: string]: any};
954
+ nodeSelector: {[key: string]: string};
955
+ priorityClassName: string;
956
+ terminationGracePeriodSeconds: number;
957
+ tolerations: {[key: string]: any}[];
958
+ topologySpreadConstraints: outputs.mcpg.v1alpha1.MCPGGatewaySpecSchedulingTopologySpreadConstraints[];
959
+ }
960
+
961
+ /**
962
+ * Pod-scheduling pass-through fields. Each maps directly to
963
+ * the matching `PodSpec` field; the operator does not interpret
964
+ * them. `tolerations` and `affinity` are
965
+ * `x-kubernetes-preserve-unknown-fields` so we don't have to
966
+ * version-shift the operator's `k8s-openapi` dependency every
967
+ * time upstream adds a knob.
968
+ */
969
+ export interface MCPGGatewaySpecSchedulingPatch {
970
+ affinity: {[key: string]: any};
971
+ nodeSelector: {[key: string]: string};
972
+ priorityClassName: string;
973
+ terminationGracePeriodSeconds: number;
974
+ tolerations: {[key: string]: any}[];
975
+ topologySpreadConstraints: outputs.mcpg.v1alpha1.MCPGGatewaySpecSchedulingTopologySpreadConstraintsPatch[];
976
+ }
977
+
978
+ export interface MCPGGatewaySpecSchedulingTopologySpreadConstraints {
979
+ labelSelectorMatchLabels: {[key: string]: string};
980
+ maxSkew: number;
981
+ topologyKey: string;
982
+ whenUnsatisfiable: string;
983
+ }
984
+
985
+ export interface MCPGGatewaySpecSchedulingTopologySpreadConstraintsPatch {
986
+ labelSelectorMatchLabels: {[key: string]: string};
987
+ maxSkew: number;
988
+ topologyKey: string;
989
+ whenUnsatisfiable: string;
990
+ }
991
+
992
+ export interface MCPGGatewaySpecService {
993
+ annotations: {[key: string]: string};
994
+ port: number;
995
+ type: string;
996
+ }
997
+
998
+ export interface MCPGGatewaySpecServicePatch {
999
+ annotations: {[key: string]: string};
1000
+ port: number;
1001
+ type: string;
1002
+ }
1003
+
1004
+ /**
1005
+ * One-of: pick exactly one cloud provider. The operator
1006
+ * translates the chosen variant into the right ServiceAccount
1007
+ * annotations / projected-volume mounts at render time.
1008
+ * Multiple variants set simultaneously is an admission error.
1009
+ */
1010
+ export interface MCPGGatewaySpecWorkloadIdentity {
1011
+ aws: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentityAws;
1012
+ azure: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentityAzure;
1013
+ gcp: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentityGcp;
1014
+ spiffe: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentitySpiffe;
1015
+ }
1016
+
1017
+ export interface MCPGGatewaySpecWorkloadIdentityAws {
1018
+ iamRoleArn: string;
1019
+ }
1020
+
1021
+ export interface MCPGGatewaySpecWorkloadIdentityAwsPatch {
1022
+ iamRoleArn: string;
1023
+ }
1024
+
1025
+ export interface MCPGGatewaySpecWorkloadIdentityAzure {
1026
+ clientId: string;
1027
+ }
1028
+
1029
+ export interface MCPGGatewaySpecWorkloadIdentityAzurePatch {
1030
+ clientId: string;
1031
+ }
1032
+
1033
+ export interface MCPGGatewaySpecWorkloadIdentityGcp {
1034
+ googleServiceAccount: string;
1035
+ }
1036
+
1037
+ export interface MCPGGatewaySpecWorkloadIdentityGcpPatch {
1038
+ googleServiceAccount: string;
1039
+ }
1040
+
1041
+ /**
1042
+ * One-of: pick exactly one cloud provider. The operator
1043
+ * translates the chosen variant into the right ServiceAccount
1044
+ * annotations / projected-volume mounts at render time.
1045
+ * Multiple variants set simultaneously is an admission error.
1046
+ */
1047
+ export interface MCPGGatewaySpecWorkloadIdentityPatch {
1048
+ aws: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentityAwsPatch;
1049
+ azure: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentityAzurePatch;
1050
+ gcp: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentityGcpPatch;
1051
+ spiffe: outputs.mcpg.v1alpha1.MCPGGatewaySpecWorkloadIdentitySpiffePatch;
1052
+ }
1053
+
1054
+ export interface MCPGGatewaySpecWorkloadIdentitySpiffe {
1055
+ svid: string;
1056
+ trustDomain: string;
1057
+ }
1058
+
1059
+ export interface MCPGGatewaySpecWorkloadIdentitySpiffePatch {
1060
+ svid: string;
1061
+ trustDomain: string;
1062
+ }
1063
+
1064
+ /**
1065
+ * Observed state for `MCPGGateway`. `conditions` is the
1066
+ * authoritative readiness signal; the hash fields let
1067
+ * operators verify "the right plugin set / revocation list
1068
+ * has actually been folded in".
1069
+ */
1070
+ export interface MCPGGatewayStatus {
1071
+ availableReplicas: number;
1072
+ conditions: outputs.mcpg.v1alpha1.MCPGGatewayStatusConditions[];
1073
+ /**
1074
+ * SHA-256 of the rendered config — flips on any spec change
1075
+ * that propagates to the pod template. Operators watch this
1076
+ * to confirm "operator has applied my edit".
1077
+ */
1078
+ configHash: string;
1079
+ lastReconcileTime: string;
1080
+ observedGeneration: number;
1081
+ /**
1082
+ * Resolved hash of the active `MCPGPluginSet` — non-null when
1083
+ * `spec.pluginSetRef` is set + the set is `Ready`.
1084
+ */
1085
+ pluginSetHash: string;
1086
+ readyReplicas: number;
1087
+ replicas: number;
1088
+ /**
1089
+ * Hash of the active `MCPGRevocationList`'s materialised
1090
+ * content. Lets operators verify "every gateway is on the
1091
+ * same revocation rev" cluster-wide.
1092
+ */
1093
+ revocationListHash: string;
1094
+ updatedReplicas: number;
1095
+ }
1096
+
1097
+ /**
1098
+ * One status condition. Serde shape matches K8s
1099
+ * `metav1.Condition` exactly so generic tooling (kubectl,
1100
+ * kustomize, Argo CD) interprets it correctly.
1101
+ */
1102
+ export interface MCPGGatewayStatusConditions {
1103
+ /**
1104
+ * RFC3339 timestamp of the most recent transition.
1105
+ */
1106
+ lastTransitionTime: string;
1107
+ /**
1108
+ * Free-text human-readable detail. May be empty.
1109
+ */
1110
+ message: string;
1111
+ /**
1112
+ * `metadata.generation` the controller had observed when
1113
+ * it set this condition. Lets clients detect stale status.
1114
+ */
1115
+ observedGeneration: number;
1116
+ /**
1117
+ * CamelCase enum the operator defines per controller.
1118
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
1119
+ * `SignatureMismatch`.
1120
+ */
1121
+ reason: string;
1122
+ /**
1123
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
1124
+ * keep this as a string (not a bool) so `Unknown` is
1125
+ * representable.
1126
+ */
1127
+ status: string;
1128
+ /**
1129
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
1130
+ * `Progressing`, `Failed`, plus per-CRD types.
1131
+ */
1132
+ type: string;
1133
+ }
1134
+
1135
+ /**
1136
+ * One status condition. Serde shape matches K8s
1137
+ * `metav1.Condition` exactly so generic tooling (kubectl,
1138
+ * kustomize, Argo CD) interprets it correctly.
1139
+ */
1140
+ export interface MCPGGatewayStatusConditionsPatch {
1141
+ /**
1142
+ * RFC3339 timestamp of the most recent transition.
1143
+ */
1144
+ lastTransitionTime: string;
1145
+ /**
1146
+ * Free-text human-readable detail. May be empty.
1147
+ */
1148
+ message: string;
1149
+ /**
1150
+ * `metadata.generation` the controller had observed when
1151
+ * it set this condition. Lets clients detect stale status.
1152
+ */
1153
+ observedGeneration: number;
1154
+ /**
1155
+ * CamelCase enum the operator defines per controller.
1156
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
1157
+ * `SignatureMismatch`.
1158
+ */
1159
+ reason: string;
1160
+ /**
1161
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
1162
+ * keep this as a string (not a bool) so `Unknown` is
1163
+ * representable.
1164
+ */
1165
+ status: string;
1166
+ /**
1167
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
1168
+ * `Progressing`, `Failed`, plus per-CRD types.
1169
+ */
1170
+ type: string;
1171
+ }
1172
+
1173
+ /**
1174
+ * Observed state for `MCPGGateway`. `conditions` is the
1175
+ * authoritative readiness signal; the hash fields let
1176
+ * operators verify "the right plugin set / revocation list
1177
+ * has actually been folded in".
1178
+ */
1179
+ export interface MCPGGatewayStatusPatch {
1180
+ availableReplicas: number;
1181
+ conditions: outputs.mcpg.v1alpha1.MCPGGatewayStatusConditionsPatch[];
1182
+ /**
1183
+ * SHA-256 of the rendered config — flips on any spec change
1184
+ * that propagates to the pod template. Operators watch this
1185
+ * to confirm "operator has applied my edit".
1186
+ */
1187
+ configHash: string;
1188
+ lastReconcileTime: string;
1189
+ observedGeneration: number;
1190
+ /**
1191
+ * Resolved hash of the active `MCPGPluginSet` — non-null when
1192
+ * `spec.pluginSetRef` is set + the set is `Ready`.
1193
+ */
1194
+ pluginSetHash: string;
1195
+ readyReplicas: number;
1196
+ replicas: number;
1197
+ /**
1198
+ * Hash of the active `MCPGRevocationList`'s materialised
1199
+ * content. Lets operators verify "every gateway is on the
1200
+ * same revocation rev" cluster-wide.
1201
+ */
1202
+ revocationListHash: string;
1203
+ updatedReplicas: number;
1204
+ }
1205
+
1206
+ /**
1207
+ * Auto-generated derived type for MCPGPluginSpec via `CustomResource`
1208
+ */
1209
+ export interface MCPGPlugin {
1210
+ /**
1211
+ * 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
1212
+ */
1213
+ apiVersion: "mcpg.dev/v1alpha1";
1214
+ /**
1215
+ * 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
1216
+ */
1217
+ kind: "MCPGPlugin";
1218
+ /**
1219
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1220
+ */
1221
+ metadata: outputs.meta.v1.ObjectMeta;
1222
+ spec: outputs.mcpg.v1alpha1.MCPGPluginSpec;
1223
+ status: outputs.mcpg.v1alpha1.MCPGPluginStatus;
1224
+ }
1225
+
1226
+ /**
1227
+ * Auto-generated derived type for MCPGPluginMirrorSpec via `CustomResource`
1228
+ */
1229
+ export interface MCPGPluginMirror {
1230
+ /**
1231
+ * 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
1232
+ */
1233
+ apiVersion: "mcpg.dev/v1alpha1";
1234
+ /**
1235
+ * 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
1236
+ */
1237
+ kind: "MCPGPluginMirror";
1238
+ /**
1239
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1240
+ */
1241
+ metadata: outputs.meta.v1.ObjectMeta;
1242
+ spec: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpec;
1243
+ status: outputs.mcpg.v1alpha1.MCPGPluginMirrorStatus;
1244
+ }
1245
+
1246
+ /**
1247
+ * In-cluster OCI mirror for air-gapped plugin pulls.
1248
+ * Cluster-scoped OCI mirror. `MCPGPlugin.spec.oci.mirrorRef` points
1249
+ * here; the operator rewrites the upstream ref onto this mirror's
1250
+ * endpoint before pulling.
1251
+ */
1252
+ export interface MCPGPluginMirrorSpec {
1253
+ auth: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecAuth;
1254
+ endpoint: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecEndpoint;
1255
+ /**
1256
+ * Optional reachability re-check cadence (informational; e.g.
1257
+ * `1h`). The operator re-reconciles the mirror on its normal
1258
+ * resync regardless — this is a hint for future scheduled probes.
1259
+ */
1260
+ resyncInterval: string;
1261
+ upstream: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecUpstream;
1262
+ }
1263
+
1264
+ /**
1265
+ * Optional pull credentials for the mirror (a
1266
+ * `kubernetes.io/dockerconfigjson` Secret in the operator
1267
+ * namespace). When set, the operator pulls from the mirror with
1268
+ * these instead of the plugin's own `oci.pullSecretRef`.
1269
+ */
1270
+ export interface MCPGPluginMirrorSpecAuth {
1271
+ secretRef: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecAuthSecretRef;
1272
+ }
1273
+
1274
+ /**
1275
+ * Optional pull credentials for the mirror (a
1276
+ * `kubernetes.io/dockerconfigjson` Secret in the operator
1277
+ * namespace). When set, the operator pulls from the mirror with
1278
+ * these instead of the plugin's own `oci.pullSecretRef`.
1279
+ */
1280
+ export interface MCPGPluginMirrorSpecAuthPatch {
1281
+ secretRef: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecAuthSecretRefPatch;
1282
+ }
1283
+
1284
+ /**
1285
+ * Reference to a `dockerconfigjson` Secret in the operator namespace.
1286
+ */
1287
+ export interface MCPGPluginMirrorSpecAuthSecretRef {
1288
+ /**
1289
+ * Key within the Secret. Defaults to `.dockerconfigjson` when
1290
+ * unset (the standard key for `kubernetes.io/dockerconfigjson`).
1291
+ */
1292
+ key: string;
1293
+ secretName: string;
1294
+ }
1295
+
1296
+ /**
1297
+ * Reference to a `dockerconfigjson` Secret in the operator namespace.
1298
+ */
1299
+ export interface MCPGPluginMirrorSpecAuthSecretRefPatch {
1300
+ /**
1301
+ * Key within the Secret. Defaults to `.dockerconfigjson` when
1302
+ * unset (the standard key for `kubernetes.io/dockerconfigjson`).
1303
+ */
1304
+ key: string;
1305
+ secretName: string;
1306
+ }
1307
+
1308
+ /**
1309
+ * Where the mirror registry lives in-cluster.
1310
+ */
1311
+ export interface MCPGPluginMirrorSpecEndpoint {
1312
+ /**
1313
+ * When true, the operator treats the mirror as plain-HTTP /
1314
+ * self-signed (added to the OCI client's insecure-registry list).
1315
+ * In-cluster mirrors on `:80` are the common case.
1316
+ */
1317
+ insecure: boolean;
1318
+ service: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecEndpointService;
1319
+ }
1320
+
1321
+ /**
1322
+ * Where the mirror registry lives in-cluster.
1323
+ */
1324
+ export interface MCPGPluginMirrorSpecEndpointPatch {
1325
+ /**
1326
+ * When true, the operator treats the mirror as plain-HTTP /
1327
+ * self-signed (added to the OCI client's insecure-registry list).
1328
+ * In-cluster mirrors on `:80` are the common case.
1329
+ */
1330
+ insecure: boolean;
1331
+ service: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecEndpointServicePatch;
1332
+ }
1333
+
1334
+ /**
1335
+ * Service coordinates for the mirror registry.
1336
+ */
1337
+ export interface MCPGPluginMirrorSpecEndpointService {
1338
+ name: string;
1339
+ namespace: string;
1340
+ /**
1341
+ * Optional path prefix the mirror serves repositories under
1342
+ * (e.g. `/v2/mirror`). Joined between the registry host and the
1343
+ * upstream repository path. Leading/trailing slashes are
1344
+ * normalised.
1345
+ */
1346
+ pathPrefix: string;
1347
+ /**
1348
+ * Service port the registry listens on (e.g. `80`).
1349
+ */
1350
+ port: number;
1351
+ }
1352
+
1353
+ /**
1354
+ * Service coordinates for the mirror registry.
1355
+ */
1356
+ export interface MCPGPluginMirrorSpecEndpointServicePatch {
1357
+ name: string;
1358
+ namespace: string;
1359
+ /**
1360
+ * Optional path prefix the mirror serves repositories under
1361
+ * (e.g. `/v2/mirror`). Joined between the registry host and the
1362
+ * upstream repository path. Leading/trailing slashes are
1363
+ * normalised.
1364
+ */
1365
+ pathPrefix: string;
1366
+ /**
1367
+ * Service port the registry listens on (e.g. `80`).
1368
+ */
1369
+ port: number;
1370
+ }
1371
+
1372
+ /**
1373
+ * In-cluster OCI mirror for air-gapped plugin pulls.
1374
+ * Cluster-scoped OCI mirror. `MCPGPlugin.spec.oci.mirrorRef` points
1375
+ * here; the operator rewrites the upstream ref onto this mirror's
1376
+ * endpoint before pulling.
1377
+ */
1378
+ export interface MCPGPluginMirrorSpecPatch {
1379
+ auth: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecAuthPatch;
1380
+ endpoint: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecEndpointPatch;
1381
+ /**
1382
+ * Optional reachability re-check cadence (informational; e.g.
1383
+ * `1h`). The operator re-reconciles the mirror on its normal
1384
+ * resync regardless — this is a hint for future scheduled probes.
1385
+ */
1386
+ resyncInterval: string;
1387
+ upstream: outputs.mcpg.v1alpha1.MCPGPluginMirrorSpecUpstreamPatch;
1388
+ }
1389
+
1390
+ /**
1391
+ * The public registry + namespace this mirror stands in for. Only
1392
+ * plugin refs whose `image` starts with `<registry>/<namespace>`
1393
+ * are rewritten; a ref pointing elsewhere is left untouched (and
1394
+ * the air-gap admission gate, when enforced, rejects it).
1395
+ */
1396
+ export interface MCPGPluginMirrorSpecUpstream {
1397
+ /**
1398
+ * Namespace/org path under the registry, e.g.
1399
+ * `mcpg-dev/source-code`. The repository segment after this
1400
+ * prefix is preserved verbatim on the mirror.
1401
+ */
1402
+ namespace: string;
1403
+ /**
1404
+ * Registry hostname, e.g. `ghcr.io`.
1405
+ */
1406
+ registry: string;
1407
+ }
1408
+
1409
+ /**
1410
+ * The public registry + namespace this mirror stands in for. Only
1411
+ * plugin refs whose `image` starts with `<registry>/<namespace>`
1412
+ * are rewritten; a ref pointing elsewhere is left untouched (and
1413
+ * the air-gap admission gate, when enforced, rejects it).
1414
+ */
1415
+ export interface MCPGPluginMirrorSpecUpstreamPatch {
1416
+ /**
1417
+ * Namespace/org path under the registry, e.g.
1418
+ * `mcpg-dev/source-code`. The repository segment after this
1419
+ * prefix is preserved verbatim on the mirror.
1420
+ */
1421
+ namespace: string;
1422
+ /**
1423
+ * Registry hostname, e.g. `ghcr.io`.
1424
+ */
1425
+ registry: string;
1426
+ }
1427
+
1428
+ /**
1429
+ * Observed state for `MCPGPluginMirror`.
1430
+ */
1431
+ export interface MCPGPluginMirrorStatus {
1432
+ conditions: outputs.mcpg.v1alpha1.MCPGPluginMirrorStatusConditions[];
1433
+ /**
1434
+ * The resolved in-cluster registry host
1435
+ * (`<name>.<namespace>.svc.cluster.local:<port>`), surfaced so ops
1436
+ * can confirm the rewrite target without parsing the spec.
1437
+ */
1438
+ endpointHost: string;
1439
+ lastReconcileTime: string;
1440
+ observedGeneration: number;
1441
+ /**
1442
+ * Count of `MCPGPlugin`s currently referencing this mirror via
1443
+ * `oci.mirrorRef`. Blast-radius signal for ops.
1444
+ */
1445
+ proxiedReferences: number;
1446
+ /**
1447
+ * Whether the operator could reach the mirror's `/v2/` endpoint at
1448
+ * last reconcile. `false` (with a `Ready=False` condition) means
1449
+ * plugin pulls through this mirror will fail.
1450
+ */
1451
+ reachable: boolean;
1452
+ }
1453
+
1454
+ /**
1455
+ * One status condition. Serde shape matches K8s
1456
+ * `metav1.Condition` exactly so generic tooling (kubectl,
1457
+ * kustomize, Argo CD) interprets it correctly.
1458
+ */
1459
+ export interface MCPGPluginMirrorStatusConditions {
1460
+ /**
1461
+ * RFC3339 timestamp of the most recent transition.
1462
+ */
1463
+ lastTransitionTime: string;
1464
+ /**
1465
+ * Free-text human-readable detail. May be empty.
1466
+ */
1467
+ message: string;
1468
+ /**
1469
+ * `metadata.generation` the controller had observed when
1470
+ * it set this condition. Lets clients detect stale status.
1471
+ */
1472
+ observedGeneration: number;
1473
+ /**
1474
+ * CamelCase enum the operator defines per controller.
1475
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
1476
+ * `SignatureMismatch`.
1477
+ */
1478
+ reason: string;
1479
+ /**
1480
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
1481
+ * keep this as a string (not a bool) so `Unknown` is
1482
+ * representable.
1483
+ */
1484
+ status: string;
1485
+ /**
1486
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
1487
+ * `Progressing`, `Failed`, plus per-CRD types.
1488
+ */
1489
+ type: string;
1490
+ }
1491
+
1492
+ /**
1493
+ * One status condition. Serde shape matches K8s
1494
+ * `metav1.Condition` exactly so generic tooling (kubectl,
1495
+ * kustomize, Argo CD) interprets it correctly.
1496
+ */
1497
+ export interface MCPGPluginMirrorStatusConditionsPatch {
1498
+ /**
1499
+ * RFC3339 timestamp of the most recent transition.
1500
+ */
1501
+ lastTransitionTime: string;
1502
+ /**
1503
+ * Free-text human-readable detail. May be empty.
1504
+ */
1505
+ message: string;
1506
+ /**
1507
+ * `metadata.generation` the controller had observed when
1508
+ * it set this condition. Lets clients detect stale status.
1509
+ */
1510
+ observedGeneration: number;
1511
+ /**
1512
+ * CamelCase enum the operator defines per controller.
1513
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
1514
+ * `SignatureMismatch`.
1515
+ */
1516
+ reason: string;
1517
+ /**
1518
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
1519
+ * keep this as a string (not a bool) so `Unknown` is
1520
+ * representable.
1521
+ */
1522
+ status: string;
1523
+ /**
1524
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
1525
+ * `Progressing`, `Failed`, plus per-CRD types.
1526
+ */
1527
+ type: string;
1528
+ }
1529
+
1530
+ /**
1531
+ * Observed state for `MCPGPluginMirror`.
1532
+ */
1533
+ export interface MCPGPluginMirrorStatusPatch {
1534
+ conditions: outputs.mcpg.v1alpha1.MCPGPluginMirrorStatusConditionsPatch[];
1535
+ /**
1536
+ * The resolved in-cluster registry host
1537
+ * (`<name>.<namespace>.svc.cluster.local:<port>`), surfaced so ops
1538
+ * can confirm the rewrite target without parsing the spec.
1539
+ */
1540
+ endpointHost: string;
1541
+ lastReconcileTime: string;
1542
+ observedGeneration: number;
1543
+ /**
1544
+ * Count of `MCPGPlugin`s currently referencing this mirror via
1545
+ * `oci.mirrorRef`. Blast-radius signal for ops.
1546
+ */
1547
+ proxiedReferences: number;
1548
+ /**
1549
+ * Whether the operator could reach the mirror's `/v2/` endpoint at
1550
+ * last reconcile. `false` (with a `Ready=False` condition) means
1551
+ * plugin pulls through this mirror will fail.
1552
+ */
1553
+ reachable: boolean;
1554
+ }
1555
+
1556
+ /**
1557
+ * Auto-generated derived type for MCPGPluginSetSpec via `CustomResource`
1558
+ */
1559
+ export interface MCPGPluginSet {
1560
+ /**
1561
+ * 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
1562
+ */
1563
+ apiVersion: "mcpg.dev/v1alpha1";
1564
+ /**
1565
+ * 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
1566
+ */
1567
+ kind: "MCPGPluginSet";
1568
+ /**
1569
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1570
+ */
1571
+ metadata: outputs.meta.v1.ObjectMeta;
1572
+ spec: outputs.mcpg.v1alpha1.MCPGPluginSetSpec;
1573
+ status: outputs.mcpg.v1alpha1.MCPGPluginSetStatus;
1574
+ }
1575
+
1576
+ export interface MCPGPluginSetSpec {
1577
+ /**
1578
+ * Per-plugin capability grants. Keyed by plugin id; values
1579
+ * are subsets of the plugin descriptor's
1580
+ * `required_capabilities`. The operator's admission
1581
+ * webhook validates the subset relationship.
1582
+ */
1583
+ capabilityGrants: {[key: string]: string[]};
1584
+ /**
1585
+ * One entry per plugin the set installs. Order is
1586
+ * preserved in the rendered gateway config (some plugin
1587
+ * chains are order-sensitive — e.g. identity → policy).
1588
+ */
1589
+ entries: outputs.mcpg.v1alpha1.MCPGPluginSetSpecEntries[];
1590
+ }
1591
+
1592
+ /**
1593
+ * One plugin in a `MCPGPluginSet`. Order in the spec is the
1594
+ * order the gateway sees in its boot config — order-sensitive
1595
+ * chains (identity → policy → audit) must rely on this.
1596
+ */
1597
+ export interface MCPGPluginSetSpecEntries {
1598
+ /**
1599
+ * Inline plugin runtime config — passes through verbatim
1600
+ * to the gateway's `plugins[].config`. Schema
1601
+ * varies per plugin; the operator does not validate it
1602
+ * (the gateway's own boot-time validators do). The
1603
+ * `preserve_object` schema annotation marks this field
1604
+ * `x-kubernetes-preserve-unknown-fields` so the API server
1605
+ * keeps the arbitrary nested config intact.
1606
+ */
1607
+ config: {[key: string]: any};
1608
+ /**
1609
+ * Whether this entry is active. Disabled entries pass
1610
+ * through to status (so operators see what's configured)
1611
+ * but the operator skips them when rendering the gateway
1612
+ * config + materialising plugin Secrets.
1613
+ */
1614
+ enabled: boolean;
1615
+ /**
1616
+ * Whether the plugin is enforced (default) or runs in
1617
+ * shadow mode. Shadow plugins evaluate, log, and emit
1618
+ * metrics, but their Deny/Challenge decisions are mapped
1619
+ * to Allow before reaching the request flow. Operators
1620
+ * use this to roll out a new policy plugin in observation
1621
+ * mode before promoting to enforce.
1622
+ *
1623
+ * Maps to `PluginEntryConfig.enforce` in the gateway boot
1624
+ * config. Defaults to `true` — pre-1.0 we bias toward
1625
+ * fail-closed: operators must explicitly opt in to shadow
1626
+ * mode.
1627
+ */
1628
+ enforce: boolean;
1629
+ /**
1630
+ * Plugin id — e.g. `dev.mcpg.identity.workload`. Must
1631
+ * match the referenced `MCPGPlugin.spec.pluginId`; the
1632
+ * admission webhook flags mismatches.
1633
+ */
1634
+ id: string;
1635
+ pluginRef: outputs.mcpg.v1alpha1.MCPGPluginSetSpecEntriesPluginRef;
1636
+ }
1637
+
1638
+ /**
1639
+ * One plugin in a `MCPGPluginSet`. Order in the spec is the
1640
+ * order the gateway sees in its boot config — order-sensitive
1641
+ * chains (identity → policy → audit) must rely on this.
1642
+ */
1643
+ export interface MCPGPluginSetSpecEntriesPatch {
1644
+ /**
1645
+ * Inline plugin runtime config — passes through verbatim
1646
+ * to the gateway's `plugins[].config`. Schema
1647
+ * varies per plugin; the operator does not validate it
1648
+ * (the gateway's own boot-time validators do). The
1649
+ * `preserve_object` schema annotation marks this field
1650
+ * `x-kubernetes-preserve-unknown-fields` so the API server
1651
+ * keeps the arbitrary nested config intact.
1652
+ */
1653
+ config: {[key: string]: any};
1654
+ /**
1655
+ * Whether this entry is active. Disabled entries pass
1656
+ * through to status (so operators see what's configured)
1657
+ * but the operator skips them when rendering the gateway
1658
+ * config + materialising plugin Secrets.
1659
+ */
1660
+ enabled: boolean;
1661
+ /**
1662
+ * Whether the plugin is enforced (default) or runs in
1663
+ * shadow mode. Shadow plugins evaluate, log, and emit
1664
+ * metrics, but their Deny/Challenge decisions are mapped
1665
+ * to Allow before reaching the request flow. Operators
1666
+ * use this to roll out a new policy plugin in observation
1667
+ * mode before promoting to enforce.
1668
+ *
1669
+ * Maps to `PluginEntryConfig.enforce` in the gateway boot
1670
+ * config. Defaults to `true` — pre-1.0 we bias toward
1671
+ * fail-closed: operators must explicitly opt in to shadow
1672
+ * mode.
1673
+ */
1674
+ enforce: boolean;
1675
+ /**
1676
+ * Plugin id — e.g. `dev.mcpg.identity.workload`. Must
1677
+ * match the referenced `MCPGPlugin.spec.pluginId`; the
1678
+ * admission webhook flags mismatches.
1679
+ */
1680
+ id: string;
1681
+ pluginRef: outputs.mcpg.v1alpha1.MCPGPluginSetSpecEntriesPluginRefPatch;
1682
+ }
1683
+
1684
+ /**
1685
+ * Reference to a cluster-scoped `MCPGPlugin`. Operator
1686
+ * validates the plugin exists + is in `Ready` status before
1687
+ * allowing the set to converge.
1688
+ */
1689
+ export interface MCPGPluginSetSpecEntriesPluginRef {
1690
+ name: string;
1691
+ }
1692
+
1693
+ /**
1694
+ * Reference to a cluster-scoped `MCPGPlugin`. Operator
1695
+ * validates the plugin exists + is in `Ready` status before
1696
+ * allowing the set to converge.
1697
+ */
1698
+ export interface MCPGPluginSetSpecEntriesPluginRefPatch {
1699
+ name: string;
1700
+ }
1701
+
1702
+ export interface MCPGPluginSetSpecPatch {
1703
+ /**
1704
+ * Per-plugin capability grants. Keyed by plugin id; values
1705
+ * are subsets of the plugin descriptor's
1706
+ * `required_capabilities`. The operator's admission
1707
+ * webhook validates the subset relationship.
1708
+ */
1709
+ capabilityGrants: {[key: string]: string[]};
1710
+ /**
1711
+ * One entry per plugin the set installs. Order is
1712
+ * preserved in the rendered gateway config (some plugin
1713
+ * chains are order-sensitive — e.g. identity → policy).
1714
+ */
1715
+ entries: outputs.mcpg.v1alpha1.MCPGPluginSetSpecEntriesPatch[];
1716
+ }
1717
+
1718
+ /**
1719
+ * Observed state for `MCPGPluginSet`. `resolved_entries` ==
1720
+ * `total_entries` is the canonical Ready signal; partial
1721
+ * failures land in `failed_entries` so operators can read
1722
+ * the per-entry reason without grepping logs.
1723
+ */
1724
+ export interface MCPGPluginSetStatus {
1725
+ conditions: outputs.mcpg.v1alpha1.MCPGPluginSetStatusConditions[];
1726
+ /**
1727
+ * Per-entry resolution errors (referenced plugin missing,
1728
+ * revoked, capability grant out of bounds, etc.). Empty
1729
+ * when the set is `Ready`.
1730
+ */
1731
+ failedEntries: outputs.mcpg.v1alpha1.MCPGPluginSetStatusFailedEntries[];
1732
+ lastReconcileTime: string;
1733
+ observedGeneration: number;
1734
+ /**
1735
+ * Number of entries the operator successfully resolved
1736
+ * (referenced `MCPGPlugin` exists + Ready + not revoked).
1737
+ */
1738
+ resolvedEntries: number;
1739
+ /**
1740
+ * SHA-256 of the rendered config (entries + per-entry
1741
+ * configs + grants). Lets dependent gateways detect
1742
+ * "plugin set changed → roll pods" without diffing the
1743
+ * full spec.
1744
+ */
1745
+ resolvedHash: string;
1746
+ /**
1747
+ * Total entries in spec — `resolved_entries` should equal
1748
+ * this when the set is `Ready`.
1749
+ */
1750
+ totalEntries: number;
1751
+ }
1752
+
1753
+ /**
1754
+ * One status condition. Serde shape matches K8s
1755
+ * `metav1.Condition` exactly so generic tooling (kubectl,
1756
+ * kustomize, Argo CD) interprets it correctly.
1757
+ */
1758
+ export interface MCPGPluginSetStatusConditions {
1759
+ /**
1760
+ * RFC3339 timestamp of the most recent transition.
1761
+ */
1762
+ lastTransitionTime: string;
1763
+ /**
1764
+ * Free-text human-readable detail. May be empty.
1765
+ */
1766
+ message: string;
1767
+ /**
1768
+ * `metadata.generation` the controller had observed when
1769
+ * it set this condition. Lets clients detect stale status.
1770
+ */
1771
+ observedGeneration: number;
1772
+ /**
1773
+ * CamelCase enum the operator defines per controller.
1774
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
1775
+ * `SignatureMismatch`.
1776
+ */
1777
+ reason: string;
1778
+ /**
1779
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
1780
+ * keep this as a string (not a bool) so `Unknown` is
1781
+ * representable.
1782
+ */
1783
+ status: string;
1784
+ /**
1785
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
1786
+ * `Progressing`, `Failed`, plus per-CRD types.
1787
+ */
1788
+ type: string;
1789
+ }
1790
+
1791
+ /**
1792
+ * One status condition. Serde shape matches K8s
1793
+ * `metav1.Condition` exactly so generic tooling (kubectl,
1794
+ * kustomize, Argo CD) interprets it correctly.
1795
+ */
1796
+ export interface MCPGPluginSetStatusConditionsPatch {
1797
+ /**
1798
+ * RFC3339 timestamp of the most recent transition.
1799
+ */
1800
+ lastTransitionTime: string;
1801
+ /**
1802
+ * Free-text human-readable detail. May be empty.
1803
+ */
1804
+ message: string;
1805
+ /**
1806
+ * `metadata.generation` the controller had observed when
1807
+ * it set this condition. Lets clients detect stale status.
1808
+ */
1809
+ observedGeneration: number;
1810
+ /**
1811
+ * CamelCase enum the operator defines per controller.
1812
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
1813
+ * `SignatureMismatch`.
1814
+ */
1815
+ reason: string;
1816
+ /**
1817
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
1818
+ * keep this as a string (not a bool) so `Unknown` is
1819
+ * representable.
1820
+ */
1821
+ status: string;
1822
+ /**
1823
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
1824
+ * `Progressing`, `Failed`, plus per-CRD types.
1825
+ */
1826
+ type: string;
1827
+ }
1828
+
1829
+ /**
1830
+ * One per-entry resolution failure surfaced into status.
1831
+ * `reason` is a stable enum so consumers can branch on it;
1832
+ * `message` is free-text human detail.
1833
+ */
1834
+ export interface MCPGPluginSetStatusFailedEntries {
1835
+ /**
1836
+ * Plugin id the failure pertains to.
1837
+ */
1838
+ id: string;
1839
+ /**
1840
+ * Free-text human-readable detail.
1841
+ */
1842
+ message: string;
1843
+ /**
1844
+ * Camel-case enum reason: `PluginNotFound`,
1845
+ * `PluginNotReady`, `PluginRevoked`, `PluginIdMismatch`,
1846
+ * `ArtefactSecretMissing`. (Capability-grant violations are
1847
+ * rejected at admission, not surfaced here.)
1848
+ */
1849
+ reason: string;
1850
+ }
1851
+
1852
+ /**
1853
+ * One per-entry resolution failure surfaced into status.
1854
+ * `reason` is a stable enum so consumers can branch on it;
1855
+ * `message` is free-text human detail.
1856
+ */
1857
+ export interface MCPGPluginSetStatusFailedEntriesPatch {
1858
+ /**
1859
+ * Plugin id the failure pertains to.
1860
+ */
1861
+ id: string;
1862
+ /**
1863
+ * Free-text human-readable detail.
1864
+ */
1865
+ message: string;
1866
+ /**
1867
+ * Camel-case enum reason: `PluginNotFound`,
1868
+ * `PluginNotReady`, `PluginRevoked`, `PluginIdMismatch`,
1869
+ * `ArtefactSecretMissing`. (Capability-grant violations are
1870
+ * rejected at admission, not surfaced here.)
1871
+ */
1872
+ reason: string;
1873
+ }
1874
+
1875
+ /**
1876
+ * Observed state for `MCPGPluginSet`. `resolved_entries` ==
1877
+ * `total_entries` is the canonical Ready signal; partial
1878
+ * failures land in `failed_entries` so operators can read
1879
+ * the per-entry reason without grepping logs.
1880
+ */
1881
+ export interface MCPGPluginSetStatusPatch {
1882
+ conditions: outputs.mcpg.v1alpha1.MCPGPluginSetStatusConditionsPatch[];
1883
+ /**
1884
+ * Per-entry resolution errors (referenced plugin missing,
1885
+ * revoked, capability grant out of bounds, etc.). Empty
1886
+ * when the set is `Ready`.
1887
+ */
1888
+ failedEntries: outputs.mcpg.v1alpha1.MCPGPluginSetStatusFailedEntriesPatch[];
1889
+ lastReconcileTime: string;
1890
+ observedGeneration: number;
1891
+ /**
1892
+ * Number of entries the operator successfully resolved
1893
+ * (referenced `MCPGPlugin` exists + Ready + not revoked).
1894
+ */
1895
+ resolvedEntries: number;
1896
+ /**
1897
+ * SHA-256 of the rendered config (entries + per-entry
1898
+ * configs + grants). Lets dependent gateways detect
1899
+ * "plugin set changed → roll pods" without diffing the
1900
+ * full spec.
1901
+ */
1902
+ resolvedHash: string;
1903
+ /**
1904
+ * Total entries in spec — `resolved_entries` should equal
1905
+ * this when the set is `Ready`.
1906
+ */
1907
+ totalEntries: number;
1908
+ }
1909
+
1910
+ /**
1911
+ * Single OCI-published, signed plugin artefact + the trust
1912
+ * policy under which the operator verifies it.
1913
+ */
1914
+ export interface MCPGPluginSpec {
1915
+ oci: outputs.mcpg.v1alpha1.MCPGPluginSpecOci;
1916
+ /**
1917
+ * Plugin class — advisory routing hint. The operator
1918
+ * re-checks this against the descriptor.
1919
+ * Values follow `mcpg_plugin_protocol::PluginClass`.
1920
+ * Examples: `identity_provider`, `policy_engine`,
1921
+ * `credential_issuer`, `audit_sink`, `cluster_backend`,
1922
+ * `binding`, `transport`.
1923
+ */
1924
+ pluginClass: string;
1925
+ /**
1926
+ * Plugin id matching the descriptor's id (e.g.
1927
+ * `dev.mcpg.identity.workload`). Must equal the descriptor
1928
+ * embedded in the OCI artefact; the operator verifies on
1929
+ * pull.
1930
+ */
1931
+ pluginId: string;
1932
+ trust: outputs.mcpg.v1alpha1.MCPGPluginSpecTrust;
1933
+ /**
1934
+ * Plugin version. Should match the OCI tag's semver
1935
+ * component when the operator can extract it; admission
1936
+ * rejects mismatches.
1937
+ */
1938
+ version: string;
1939
+ }
1940
+
1941
+ /**
1942
+ * OCI artefact reference + optional in-cluster mirror.
1943
+ */
1944
+ export interface MCPGPluginSpecOci {
1945
+ /**
1946
+ * Full OCI ref, e.g.
1947
+ * `ghcr.io/mcpg-dev/source-code/plugins/identity-workload:1.2.3-linux-amd64`
1948
+ * (tag) or `...@sha256:abcd...` (digest pin — recommended
1949
+ * for production).
1950
+ */
1951
+ image: string;
1952
+ mirrorRef: outputs.mcpg.v1alpha1.MCPGPluginSpecOciMirrorRef;
1953
+ pullSecretRef: outputs.mcpg.v1alpha1.MCPGPluginSpecOciPullSecretRef;
1954
+ }
1955
+
1956
+ /**
1957
+ * Pull through an in-cluster mirror (a future
1958
+ * `MCPGPluginMirror` resource). When set, the operator
1959
+ * translates the upstream `image` URL through the mirror's
1960
+ * pathPrefix.
1961
+ */
1962
+ export interface MCPGPluginSpecOciMirrorRef {
1963
+ name: string;
1964
+ }
1965
+
1966
+ /**
1967
+ * Pull through an in-cluster mirror (a future
1968
+ * `MCPGPluginMirror` resource). When set, the operator
1969
+ * translates the upstream `image` URL through the mirror's
1970
+ * pathPrefix.
1971
+ */
1972
+ export interface MCPGPluginSpecOciMirrorRefPatch {
1973
+ name: string;
1974
+ }
1975
+
1976
+ /**
1977
+ * OCI artefact reference + optional in-cluster mirror.
1978
+ */
1979
+ export interface MCPGPluginSpecOciPatch {
1980
+ /**
1981
+ * Full OCI ref, e.g.
1982
+ * `ghcr.io/mcpg-dev/source-code/plugins/identity-workload:1.2.3-linux-amd64`
1983
+ * (tag) or `...@sha256:abcd...` (digest pin — recommended
1984
+ * for production).
1985
+ */
1986
+ image: string;
1987
+ mirrorRef: outputs.mcpg.v1alpha1.MCPGPluginSpecOciMirrorRefPatch;
1988
+ pullSecretRef: outputs.mcpg.v1alpha1.MCPGPluginSpecOciPullSecretRefPatch;
1989
+ }
1990
+
1991
+ /**
1992
+ * Optional pull-secret reference (in the operator's
1993
+ * namespace).
1994
+ */
1995
+ export interface MCPGPluginSpecOciPullSecretRef {
1996
+ name: string;
1997
+ }
1998
+
1999
+ /**
2000
+ * Optional pull-secret reference (in the operator's
2001
+ * namespace).
2002
+ */
2003
+ export interface MCPGPluginSpecOciPullSecretRefPatch {
2004
+ name: string;
2005
+ }
2006
+
2007
+ /**
2008
+ * Single OCI-published, signed plugin artefact + the trust
2009
+ * policy under which the operator verifies it.
2010
+ */
2011
+ export interface MCPGPluginSpecPatch {
2012
+ oci: outputs.mcpg.v1alpha1.MCPGPluginSpecOciPatch;
2013
+ /**
2014
+ * Plugin class — advisory routing hint. The operator
2015
+ * re-checks this against the descriptor.
2016
+ * Values follow `mcpg_plugin_protocol::PluginClass`.
2017
+ * Examples: `identity_provider`, `policy_engine`,
2018
+ * `credential_issuer`, `audit_sink`, `cluster_backend`,
2019
+ * `binding`, `transport`.
2020
+ */
2021
+ pluginClass: string;
2022
+ /**
2023
+ * Plugin id matching the descriptor's id (e.g.
2024
+ * `dev.mcpg.identity.workload`). Must equal the descriptor
2025
+ * embedded in the OCI artefact; the operator verifies on
2026
+ * pull.
2027
+ */
2028
+ pluginId: string;
2029
+ trust: outputs.mcpg.v1alpha1.MCPGPluginSpecTrustPatch;
2030
+ /**
2031
+ * Plugin version. Should match the OCI tag's semver
2032
+ * component when the operator can extract it; admission
2033
+ * rejects mismatches.
2034
+ */
2035
+ version: string;
2036
+ }
2037
+
2038
+ /**
2039
+ * Trust policy: signing key, cosign identity, SLSA
2040
+ * provenance source. The operator must be able to verify
2041
+ * every layer before mounting the plugin into a gateway pod.
2042
+ */
2043
+ export interface MCPGPluginSpecTrust {
2044
+ cosignIdentity: outputs.mcpg.v1alpha1.MCPGPluginSpecTrustCosignIdentity;
2045
+ signingKeyRef: outputs.mcpg.v1alpha1.MCPGPluginSpecTrustSigningKeyRef;
2046
+ slsaProvenance: outputs.mcpg.v1alpha1.MCPGPluginSpecTrustSlsaProvenance;
2047
+ }
2048
+
2049
+ /**
2050
+ * Cosign keyless identity. Operator verifies the OCI
2051
+ * manifest's sigstore signature against this identity.
2052
+ * Optional in v1alpha1 — operators with cosign trust
2053
+ * configured here run an extra verification layer.
2054
+ */
2055
+ export interface MCPGPluginSpecTrustCosignIdentity {
2056
+ /**
2057
+ * Regex matching the OIDC subject baked into the cosign
2058
+ * certificate. Example:
2059
+ * `^https://github\.com/mcpg-dev/source-code/`.
2060
+ */
2061
+ certificateIdentityRegexp: string;
2062
+ /**
2063
+ * OIDC issuer the cosign cert chains back to.
2064
+ * Example: `https://token.actions.githubusercontent.com`.
2065
+ */
2066
+ oidcIssuer: string;
2067
+ }
2068
+
2069
+ /**
2070
+ * Cosign keyless identity. Operator verifies the OCI
2071
+ * manifest's sigstore signature against this identity.
2072
+ * Optional in v1alpha1 — operators with cosign trust
2073
+ * configured here run an extra verification layer.
2074
+ */
2075
+ export interface MCPGPluginSpecTrustCosignIdentityPatch {
2076
+ /**
2077
+ * Regex matching the OIDC subject baked into the cosign
2078
+ * certificate. Example:
2079
+ * `^https://github\.com/mcpg-dev/source-code/`.
2080
+ */
2081
+ certificateIdentityRegexp: string;
2082
+ /**
2083
+ * OIDC issuer the cosign cert chains back to.
2084
+ * Example: `https://token.actions.githubusercontent.com`.
2085
+ */
2086
+ oidcIssuer: string;
2087
+ }
2088
+
2089
+ /**
2090
+ * Trust policy: signing key, cosign identity, SLSA
2091
+ * provenance source. The operator must be able to verify
2092
+ * every layer before mounting the plugin into a gateway pod.
2093
+ */
2094
+ export interface MCPGPluginSpecTrustPatch {
2095
+ cosignIdentity: outputs.mcpg.v1alpha1.MCPGPluginSpecTrustCosignIdentityPatch;
2096
+ signingKeyRef: outputs.mcpg.v1alpha1.MCPGPluginSpecTrustSigningKeyRefPatch;
2097
+ slsaProvenance: outputs.mcpg.v1alpha1.MCPGPluginSpecTrustSlsaProvenancePatch;
2098
+ }
2099
+
2100
+ /**
2101
+ * Ed25519 public key the operator verifies the cdylib's
2102
+ * `mcpg-plugin sign` signature against. Mandatory in v1alpha1;
2103
+ * signature verification is the baseline trust gate that
2104
+ * every plugin must pass.
2105
+ */
2106
+ export interface MCPGPluginSpecTrustSigningKeyRef {
2107
+ /**
2108
+ * Secret key holding the Ed25519 public key bytes (raw
2109
+ * 32 bytes, base64-decoded by the operator at load time).
2110
+ * Default: `release.pub`.
2111
+ */
2112
+ key: string;
2113
+ /**
2114
+ * Secret name in the operator's namespace.
2115
+ */
2116
+ secretName: string;
2117
+ }
2118
+
2119
+ /**
2120
+ * Ed25519 public key the operator verifies the cdylib's
2121
+ * `mcpg-plugin sign` signature against. Mandatory in v1alpha1;
2122
+ * signature verification is the baseline trust gate that
2123
+ * every plugin must pass.
2124
+ */
2125
+ export interface MCPGPluginSpecTrustSigningKeyRefPatch {
2126
+ /**
2127
+ * Secret key holding the Ed25519 public key bytes (raw
2128
+ * 32 bytes, base64-decoded by the operator at load time).
2129
+ * Default: `release.pub`.
2130
+ */
2131
+ key: string;
2132
+ /**
2133
+ * Secret name in the operator's namespace.
2134
+ */
2135
+ secretName: string;
2136
+ }
2137
+
2138
+ /**
2139
+ * SLSA L3 provenance verification. Optional in v1alpha1 —
2140
+ * operators with SLSA-enforced supply chains gate on it.
2141
+ */
2142
+ export interface MCPGPluginSpecTrustSlsaProvenance {
2143
+ /**
2144
+ * Name of a ConfigMap (in the operator's namespace) holding
2145
+ * the `*.intoto.jsonl` provenance file under
2146
+ * `data.provenance.intoto.jsonl`.
2147
+ */
2148
+ configMapName: string;
2149
+ /**
2150
+ * Source tag the provenance must record. Example: `v1.2.3`.
2151
+ */
2152
+ sourceTag: string;
2153
+ /**
2154
+ * Source URI the provenance must be pinned to. Example:
2155
+ * `github.com/mcpg-dev/source-code`.
2156
+ */
2157
+ sourceUri: string;
2158
+ }
2159
+
2160
+ /**
2161
+ * SLSA L3 provenance verification. Optional in v1alpha1 —
2162
+ * operators with SLSA-enforced supply chains gate on it.
2163
+ */
2164
+ export interface MCPGPluginSpecTrustSlsaProvenancePatch {
2165
+ /**
2166
+ * Name of a ConfigMap (in the operator's namespace) holding
2167
+ * the `*.intoto.jsonl` provenance file under
2168
+ * `data.provenance.intoto.jsonl`.
2169
+ */
2170
+ configMapName: string;
2171
+ /**
2172
+ * Source tag the provenance must record. Example: `v1.2.3`.
2173
+ */
2174
+ sourceTag: string;
2175
+ /**
2176
+ * Source URI the provenance must be pinned to. Example:
2177
+ * `github.com/mcpg-dev/source-code`.
2178
+ */
2179
+ sourceUri: string;
2180
+ }
2181
+
2182
+ /**
2183
+ * Observed state for a `MCPGPlugin`. Boolean fields are
2184
+ * reported as `Option<bool>` so absent ⇒ "not yet evaluated"
2185
+ * vs. `Some(false)` ⇒ "evaluated, refused". Operators reading
2186
+ * status should treat absence as "not Ready" rather than
2187
+ * defaulting to `false`.
2188
+ */
2189
+ export interface MCPGPluginStatus {
2190
+ /**
2191
+ * Name of the operator-managed Secret holding the verified
2192
+ * bytes (in the operator's namespace).
2193
+ */
2194
+ artefactSecretName: string;
2195
+ conditions: outputs.mcpg.v1alpha1.MCPGPluginStatusConditions[];
2196
+ cosignVerified: boolean;
2197
+ lastReconcileTime: string;
2198
+ observedGeneration: number;
2199
+ pulledAt: string;
2200
+ /**
2201
+ * SHA-256 of the verified cdylib bytes (lower-case hex).
2202
+ * Operators check this against the cluster
2203
+ * `MCPGRevocationList`; revoked entries flip
2204
+ * `revoked_by_sha = true`.
2205
+ */
2206
+ resolvedDigest: string;
2207
+ /**
2208
+ * True when [`Self::resolved_digest`] matches an entry in
2209
+ * the cluster `MCPGRevocationList`. The operator refuses
2210
+ * to materialise the plugin into any
2211
+ * `MCPGPluginSet` while this is true.
2212
+ */
2213
+ revokedBySha: boolean;
2214
+ signatureValid: boolean;
2215
+ slsaVerified: boolean;
2216
+ }
2217
+
2218
+ /**
2219
+ * One status condition. Serde shape matches K8s
2220
+ * `metav1.Condition` exactly so generic tooling (kubectl,
2221
+ * kustomize, Argo CD) interprets it correctly.
2222
+ */
2223
+ export interface MCPGPluginStatusConditions {
2224
+ /**
2225
+ * RFC3339 timestamp of the most recent transition.
2226
+ */
2227
+ lastTransitionTime: string;
2228
+ /**
2229
+ * Free-text human-readable detail. May be empty.
2230
+ */
2231
+ message: string;
2232
+ /**
2233
+ * `metadata.generation` the controller had observed when
2234
+ * it set this condition. Lets clients detect stale status.
2235
+ */
2236
+ observedGeneration: number;
2237
+ /**
2238
+ * CamelCase enum the operator defines per controller.
2239
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
2240
+ * `SignatureMismatch`.
2241
+ */
2242
+ reason: string;
2243
+ /**
2244
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
2245
+ * keep this as a string (not a bool) so `Unknown` is
2246
+ * representable.
2247
+ */
2248
+ status: string;
2249
+ /**
2250
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
2251
+ * `Progressing`, `Failed`, plus per-CRD types.
2252
+ */
2253
+ type: string;
2254
+ }
2255
+
2256
+ /**
2257
+ * One status condition. Serde shape matches K8s
2258
+ * `metav1.Condition` exactly so generic tooling (kubectl,
2259
+ * kustomize, Argo CD) interprets it correctly.
2260
+ */
2261
+ export interface MCPGPluginStatusConditionsPatch {
2262
+ /**
2263
+ * RFC3339 timestamp of the most recent transition.
2264
+ */
2265
+ lastTransitionTime: string;
2266
+ /**
2267
+ * Free-text human-readable detail. May be empty.
2268
+ */
2269
+ message: string;
2270
+ /**
2271
+ * `metadata.generation` the controller had observed when
2272
+ * it set this condition. Lets clients detect stale status.
2273
+ */
2274
+ observedGeneration: number;
2275
+ /**
2276
+ * CamelCase enum the operator defines per controller.
2277
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
2278
+ * `SignatureMismatch`.
2279
+ */
2280
+ reason: string;
2281
+ /**
2282
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
2283
+ * keep this as a string (not a bool) so `Unknown` is
2284
+ * representable.
2285
+ */
2286
+ status: string;
2287
+ /**
2288
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
2289
+ * `Progressing`, `Failed`, plus per-CRD types.
2290
+ */
2291
+ type: string;
2292
+ }
2293
+
2294
+ /**
2295
+ * Observed state for a `MCPGPlugin`. Boolean fields are
2296
+ * reported as `Option<bool>` so absent ⇒ "not yet evaluated"
2297
+ * vs. `Some(false)` ⇒ "evaluated, refused". Operators reading
2298
+ * status should treat absence as "not Ready" rather than
2299
+ * defaulting to `false`.
2300
+ */
2301
+ export interface MCPGPluginStatusPatch {
2302
+ /**
2303
+ * Name of the operator-managed Secret holding the verified
2304
+ * bytes (in the operator's namespace).
2305
+ */
2306
+ artefactSecretName: string;
2307
+ conditions: outputs.mcpg.v1alpha1.MCPGPluginStatusConditionsPatch[];
2308
+ cosignVerified: boolean;
2309
+ lastReconcileTime: string;
2310
+ observedGeneration: number;
2311
+ pulledAt: string;
2312
+ /**
2313
+ * SHA-256 of the verified cdylib bytes (lower-case hex).
2314
+ * Operators check this against the cluster
2315
+ * `MCPGRevocationList`; revoked entries flip
2316
+ * `revoked_by_sha = true`.
2317
+ */
2318
+ resolvedDigest: string;
2319
+ /**
2320
+ * True when [`Self::resolved_digest`] matches an entry in
2321
+ * the cluster `MCPGRevocationList`. The operator refuses
2322
+ * to materialise the plugin into any
2323
+ * `MCPGPluginSet` while this is true.
2324
+ */
2325
+ revokedBySha: boolean;
2326
+ signatureValid: boolean;
2327
+ slsaVerified: boolean;
2328
+ }
2329
+
2330
+ /**
2331
+ * Auto-generated derived type for MCPGRevocationListSpec via `CustomResource`
2332
+ */
2333
+ export interface MCPGRevocationList {
2334
+ /**
2335
+ * 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
2336
+ */
2337
+ apiVersion: "mcpg.dev/v1alpha1";
2338
+ /**
2339
+ * 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
2340
+ */
2341
+ kind: "MCPGRevocationList";
2342
+ /**
2343
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
2344
+ */
2345
+ metadata: outputs.meta.v1.ObjectMeta;
2346
+ spec: outputs.mcpg.v1alpha1.MCPGRevocationListSpec;
2347
+ status: outputs.mcpg.v1alpha1.MCPGRevocationListStatus;
2348
+ }
2349
+
2350
+ /**
2351
+ * Cluster-wide list of revoked plugin SHA-256 hashes. Materialised
2352
+ * into per-namespace `mcpg-revocation-list` ConfigMaps that
2353
+ * gateway pods mount under the path declared in
2354
+ * `plugins.trust.revocation_list_path`.
2355
+ * Cluster-scoped revocation list. The operator fans this out
2356
+ * into every namespace running a gateway as a per-namespace
2357
+ * `<gateway>-revocations` ConfigMap, mounted read-only into
2358
+ * the gateway pod at `/etc/mcpg/revocations/`. Gateway pods
2359
+ * enforce at plugin-load time — a list update plus a pod roll
2360
+ * is the full revocation cycle.
2361
+ */
2362
+ export interface MCPGRevocationListSpec {
2363
+ /**
2364
+ * RFC3339 audit-only timestamp. The operator does not gate
2365
+ * freshness on this — it's surfaced in operator logs +
2366
+ * status for incident-response correlation.
2367
+ */
2368
+ issuedAt: string;
2369
+ /**
2370
+ * One entry per revoked plugin artefact. Operators consolidate
2371
+ * into a single entry per SHA-256 hash; duplicates are
2372
+ * rejected at admission.
2373
+ */
2374
+ revocations: outputs.mcpg.v1alpha1.MCPGRevocationListSpecRevocations[];
2375
+ /**
2376
+ * Format version. Currently `1`. Unknown versions cause the
2377
+ * admission webhook to reject the resource.
2378
+ */
2379
+ version: number;
2380
+ }
2381
+
2382
+ /**
2383
+ * Cluster-wide list of revoked plugin SHA-256 hashes. Materialised
2384
+ * into per-namespace `mcpg-revocation-list` ConfigMaps that
2385
+ * gateway pods mount under the path declared in
2386
+ * `plugins.trust.revocation_list_path`.
2387
+ * Cluster-scoped revocation list. The operator fans this out
2388
+ * into every namespace running a gateway as a per-namespace
2389
+ * `<gateway>-revocations` ConfigMap, mounted read-only into
2390
+ * the gateway pod at `/etc/mcpg/revocations/`. Gateway pods
2391
+ * enforce at plugin-load time — a list update plus a pod roll
2392
+ * is the full revocation cycle.
2393
+ */
2394
+ export interface MCPGRevocationListSpecPatch {
2395
+ /**
2396
+ * RFC3339 audit-only timestamp. The operator does not gate
2397
+ * freshness on this — it's surfaced in operator logs +
2398
+ * status for incident-response correlation.
2399
+ */
2400
+ issuedAt: string;
2401
+ /**
2402
+ * One entry per revoked plugin artefact. Operators consolidate
2403
+ * into a single entry per SHA-256 hash; duplicates are
2404
+ * rejected at admission.
2405
+ */
2406
+ revocations: outputs.mcpg.v1alpha1.MCPGRevocationListSpecRevocationsPatch[];
2407
+ /**
2408
+ * Format version. Currently `1`. Unknown versions cause the
2409
+ * admission webhook to reject the resource.
2410
+ */
2411
+ version: number;
2412
+ }
2413
+
2414
+ /**
2415
+ * One revoked artefact. The hash MUST be the SHA-256 of the
2416
+ * verified cdylib bytes (post-cosign-extract), not the OCI
2417
+ * manifest digest — operators want to revoke a specific
2418
+ * compiled artefact, even if it's been published under multiple
2419
+ * tags or registries.
2420
+ */
2421
+ export interface MCPGRevocationListSpecRevocations {
2422
+ /**
2423
+ * Lower-case hex, exactly 64 chars. Operators SHOULD ship
2424
+ * lowercase to match `mcpg-plugin hash` output. The
2425
+ * admission webhook normalises uppercase to lowercase.
2426
+ */
2427
+ artifactSha256: string;
2428
+ /**
2429
+ * Free-form reason. Surfaced in the gateway's load-time
2430
+ * error message + audit event. Empty / whitespace-only
2431
+ * reasons are rejected at admission.
2432
+ */
2433
+ reason: string;
2434
+ /**
2435
+ * RFC3339 timestamp the entry was issued. Audit-only.
2436
+ */
2437
+ revokedAt: string;
2438
+ }
2439
+
2440
+ /**
2441
+ * One revoked artefact. The hash MUST be the SHA-256 of the
2442
+ * verified cdylib bytes (post-cosign-extract), not the OCI
2443
+ * manifest digest — operators want to revoke a specific
2444
+ * compiled artefact, even if it's been published under multiple
2445
+ * tags or registries.
2446
+ */
2447
+ export interface MCPGRevocationListSpecRevocationsPatch {
2448
+ /**
2449
+ * Lower-case hex, exactly 64 chars. Operators SHOULD ship
2450
+ * lowercase to match `mcpg-plugin hash` output. The
2451
+ * admission webhook normalises uppercase to lowercase.
2452
+ */
2453
+ artifactSha256: string;
2454
+ /**
2455
+ * Free-form reason. Surfaced in the gateway's load-time
2456
+ * error message + audit event. Empty / whitespace-only
2457
+ * reasons are rejected at admission.
2458
+ */
2459
+ reason: string;
2460
+ /**
2461
+ * RFC3339 timestamp the entry was issued. Audit-only.
2462
+ */
2463
+ revokedAt: string;
2464
+ }
2465
+
2466
+ /**
2467
+ * Observed state for `MCPGRevocationList`. `materialised_namespaces`
2468
+ * counts the per-namespace ConfigMaps the operator has fanned
2469
+ * the list out into; `content_hash` lets ops detect rollout drift
2470
+ * across consumer namespaces.
2471
+ */
2472
+ export interface MCPGRevocationListStatus {
2473
+ /**
2474
+ * Standard `metav1.Condition[]`.
2475
+ */
2476
+ conditions: outputs.mcpg.v1alpha1.MCPGRevocationListStatusConditions[];
2477
+ /**
2478
+ * SHA-256 fingerprint of the rendered ConfigMap content
2479
+ * (`revocations.json` key). Lets ops verify rollout status
2480
+ * without reading every namespace.
2481
+ */
2482
+ contentHash: string;
2483
+ lastReconcileTime: string;
2484
+ /**
2485
+ * Count of namespaces that have a materialised
2486
+ * `mcpg-revocation-list` ConfigMap mirroring this resource.
2487
+ */
2488
+ materialisedNamespaces: number;
2489
+ observedGeneration: number;
2490
+ /**
2491
+ * Number of entries the operator last observed in spec.
2492
+ */
2493
+ observedRevocations: number;
2494
+ /**
2495
+ * Plugin names (cluster-scoped `MCPGPlugin` resources) the
2496
+ * operator has flagged as `revokedBySha = true` due to
2497
+ * matches against this list.
2498
+ */
2499
+ pluginsBlocked: string[];
2500
+ }
2501
+
2502
+ /**
2503
+ * One status condition. Serde shape matches K8s
2504
+ * `metav1.Condition` exactly so generic tooling (kubectl,
2505
+ * kustomize, Argo CD) interprets it correctly.
2506
+ */
2507
+ export interface MCPGRevocationListStatusConditions {
2508
+ /**
2509
+ * RFC3339 timestamp of the most recent transition.
2510
+ */
2511
+ lastTransitionTime: string;
2512
+ /**
2513
+ * Free-text human-readable detail. May be empty.
2514
+ */
2515
+ message: string;
2516
+ /**
2517
+ * `metadata.generation` the controller had observed when
2518
+ * it set this condition. Lets clients detect stale status.
2519
+ */
2520
+ observedGeneration: number;
2521
+ /**
2522
+ * CamelCase enum the operator defines per controller.
2523
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
2524
+ * `SignatureMismatch`.
2525
+ */
2526
+ reason: string;
2527
+ /**
2528
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
2529
+ * keep this as a string (not a bool) so `Unknown` is
2530
+ * representable.
2531
+ */
2532
+ status: string;
2533
+ /**
2534
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
2535
+ * `Progressing`, `Failed`, plus per-CRD types.
2536
+ */
2537
+ type: string;
2538
+ }
2539
+
2540
+ /**
2541
+ * One status condition. Serde shape matches K8s
2542
+ * `metav1.Condition` exactly so generic tooling (kubectl,
2543
+ * kustomize, Argo CD) interprets it correctly.
2544
+ */
2545
+ export interface MCPGRevocationListStatusConditionsPatch {
2546
+ /**
2547
+ * RFC3339 timestamp of the most recent transition.
2548
+ */
2549
+ lastTransitionTime: string;
2550
+ /**
2551
+ * Free-text human-readable detail. May be empty.
2552
+ */
2553
+ message: string;
2554
+ /**
2555
+ * `metadata.generation` the controller had observed when
2556
+ * it set this condition. Lets clients detect stale status.
2557
+ */
2558
+ observedGeneration: number;
2559
+ /**
2560
+ * CamelCase enum the operator defines per controller.
2561
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
2562
+ * `SignatureMismatch`.
2563
+ */
2564
+ reason: string;
2565
+ /**
2566
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
2567
+ * keep this as a string (not a bool) so `Unknown` is
2568
+ * representable.
2569
+ */
2570
+ status: string;
2571
+ /**
2572
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
2573
+ * `Progressing`, `Failed`, plus per-CRD types.
2574
+ */
2575
+ type: string;
2576
+ }
2577
+
2578
+ /**
2579
+ * Observed state for `MCPGRevocationList`. `materialised_namespaces`
2580
+ * counts the per-namespace ConfigMaps the operator has fanned
2581
+ * the list out into; `content_hash` lets ops detect rollout drift
2582
+ * across consumer namespaces.
2583
+ */
2584
+ export interface MCPGRevocationListStatusPatch {
2585
+ /**
2586
+ * Standard `metav1.Condition[]`.
2587
+ */
2588
+ conditions: outputs.mcpg.v1alpha1.MCPGRevocationListStatusConditionsPatch[];
2589
+ /**
2590
+ * SHA-256 fingerprint of the rendered ConfigMap content
2591
+ * (`revocations.json` key). Lets ops verify rollout status
2592
+ * without reading every namespace.
2593
+ */
2594
+ contentHash: string;
2595
+ lastReconcileTime: string;
2596
+ /**
2597
+ * Count of namespaces that have a materialised
2598
+ * `mcpg-revocation-list` ConfigMap mirroring this resource.
2599
+ */
2600
+ materialisedNamespaces: number;
2601
+ observedGeneration: number;
2602
+ /**
2603
+ * Number of entries the operator last observed in spec.
2604
+ */
2605
+ observedRevocations: number;
2606
+ /**
2607
+ * Plugin names (cluster-scoped `MCPGPlugin` resources) the
2608
+ * operator has flagged as `revokedBySha = true` due to
2609
+ * matches against this list.
2610
+ */
2611
+ pluginsBlocked: string[];
2612
+ }
2613
+
2614
+ /**
2615
+ * Auto-generated derived type for MCPGRouteSpec via `CustomResource`
2616
+ */
2617
+ export interface MCPGRoute {
2618
+ /**
2619
+ * 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
2620
+ */
2621
+ apiVersion: "mcpg.dev/v1alpha1";
2622
+ /**
2623
+ * 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
2624
+ */
2625
+ kind: "MCPGRoute";
2626
+ /**
2627
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
2628
+ */
2629
+ metadata: outputs.meta.v1.ObjectMeta;
2630
+ spec: outputs.mcpg.v1alpha1.MCPGRouteSpec;
2631
+ status: outputs.mcpg.v1alpha1.MCPGRouteStatus;
2632
+ }
2633
+
2634
+ /**
2635
+ * Per-tenant route into a shared gateway.
2636
+ * Namespace-scoped route binding a tenant's tools to a shared
2637
+ * gateway, with the identity / policy / audit chains and per-tenant
2638
+ * attributes that govern them.
2639
+ */
2640
+ export interface MCPGRouteSpec {
2641
+ /**
2642
+ * Per-tenant metadata. `attributes.tenant` is special: it's the
2643
+ * identity attribute the rendered tool-access CEL rules key on
2644
+ * (`$identity.attributes.tenant == "<value>"`), so the shared
2645
+ * gateway only exposes this route's tools to that tenant's
2646
+ * callers. All attributes are also available to audit sinks for
2647
+ * per-tenant labelling.
2648
+ */
2649
+ attributes: {[key: string]: string};
2650
+ /**
2651
+ * Ordered audit-sink plugin ids for this route. Same validation +
2652
+ * enforcement caveat as `identityChain`. (The shared gateway's
2653
+ * audit sink may template `attributes` into its output — e.g. a
2654
+ * per-tenant Kafka topic — which IS enforceable today.)
2655
+ */
2656
+ auditChain: string[];
2657
+ gatewayRef: outputs.mcpg.v1alpha1.MCPGRouteSpecGatewayRef;
2658
+ /**
2659
+ * Ordered identity-plugin ids that should authenticate requests on
2660
+ * this route. **Validated** against the gateway's plugin set;
2661
+ * per-route dispatch is not yet enforced by the gateway runtime
2662
+ * (see the module docs + the `ChainsEnforced` status condition).
2663
+ */
2664
+ identityChain: string[];
2665
+ match: outputs.mcpg.v1alpha1.MCPGRouteSpecMatch;
2666
+ /**
2667
+ * Ordered policy-engine plugin ids for this route. Same
2668
+ * validation + enforcement caveat as `identityChain`.
2669
+ */
2670
+ policyChain: string[];
2671
+ }
2672
+
2673
+ /**
2674
+ * The gateway this route attaches to. For soft tenancy this is a
2675
+ * cross-namespace reference to the platform team's shared gateway;
2676
+ * the gateway must list this route's namespace in
2677
+ * `spec.acceptedRouteNamespaces`.
2678
+ */
2679
+ export interface MCPGRouteSpecGatewayRef {
2680
+ /**
2681
+ * `MCPGGateway` resource name.
2682
+ */
2683
+ name: string;
2684
+ /**
2685
+ * Gateway namespace. Defaults to the route's own namespace when
2686
+ * unset; soft tenancy sets this to the shared-gateway namespace.
2687
+ */
2688
+ namespace: string;
2689
+ }
2690
+
2691
+ /**
2692
+ * The gateway this route attaches to. For soft tenancy this is a
2693
+ * cross-namespace reference to the platform team's shared gateway;
2694
+ * the gateway must list this route's namespace in
2695
+ * `spec.acceptedRouteNamespaces`.
2696
+ */
2697
+ export interface MCPGRouteSpecGatewayRefPatch {
2698
+ /**
2699
+ * `MCPGGateway` resource name.
2700
+ */
2701
+ name: string;
2702
+ /**
2703
+ * Gateway namespace. Defaults to the route's own namespace when
2704
+ * unset; soft tenancy sets this to the shared-gateway namespace.
2705
+ */
2706
+ namespace: string;
2707
+ }
2708
+
2709
+ /**
2710
+ * Which tools this route exposes through the gateway. Each matched
2711
+ * tool gets a tenant-scoped access rule rendered into the
2712
+ * gateway's `governance.policy.tool_access.rules[]`.
2713
+ */
2714
+ export interface MCPGRouteSpecMatch {
2715
+ /**
2716
+ * Tools this route exposes. Each must correspond to a binding the
2717
+ * gateway actually serves (validated at admission).
2718
+ */
2719
+ tools: outputs.mcpg.v1alpha1.MCPGRouteSpecMatchTools[];
2720
+ }
2721
+
2722
+ /**
2723
+ * Which tools this route exposes through the gateway. Each matched
2724
+ * tool gets a tenant-scoped access rule rendered into the
2725
+ * gateway's `governance.policy.tool_access.rules[]`.
2726
+ */
2727
+ export interface MCPGRouteSpecMatchPatch {
2728
+ /**
2729
+ * Tools this route exposes. Each must correspond to a binding the
2730
+ * gateway actually serves (validated at admission).
2731
+ */
2732
+ tools: outputs.mcpg.v1alpha1.MCPGRouteSpecMatchToolsPatch[];
2733
+ }
2734
+
2735
+ /**
2736
+ * A single tool a route exposes.
2737
+ */
2738
+ export interface MCPGRouteSpecMatchTools {
2739
+ /**
2740
+ * Tool capability id (e.g. `orders.list`).
2741
+ */
2742
+ id: string;
2743
+ }
2744
+
2745
+ /**
2746
+ * A single tool a route exposes.
2747
+ */
2748
+ export interface MCPGRouteSpecMatchToolsPatch {
2749
+ /**
2750
+ * Tool capability id (e.g. `orders.list`).
2751
+ */
2752
+ id: string;
2753
+ }
2754
+
2755
+ /**
2756
+ * Per-tenant route into a shared gateway.
2757
+ * Namespace-scoped route binding a tenant's tools to a shared
2758
+ * gateway, with the identity / policy / audit chains and per-tenant
2759
+ * attributes that govern them.
2760
+ */
2761
+ export interface MCPGRouteSpecPatch {
2762
+ /**
2763
+ * Per-tenant metadata. `attributes.tenant` is special: it's the
2764
+ * identity attribute the rendered tool-access CEL rules key on
2765
+ * (`$identity.attributes.tenant == "<value>"`), so the shared
2766
+ * gateway only exposes this route's tools to that tenant's
2767
+ * callers. All attributes are also available to audit sinks for
2768
+ * per-tenant labelling.
2769
+ */
2770
+ attributes: {[key: string]: string};
2771
+ /**
2772
+ * Ordered audit-sink plugin ids for this route. Same validation +
2773
+ * enforcement caveat as `identityChain`. (The shared gateway's
2774
+ * audit sink may template `attributes` into its output — e.g. a
2775
+ * per-tenant Kafka topic — which IS enforceable today.)
2776
+ */
2777
+ auditChain: string[];
2778
+ gatewayRef: outputs.mcpg.v1alpha1.MCPGRouteSpecGatewayRefPatch;
2779
+ /**
2780
+ * Ordered identity-plugin ids that should authenticate requests on
2781
+ * this route. **Validated** against the gateway's plugin set;
2782
+ * per-route dispatch is not yet enforced by the gateway runtime
2783
+ * (see the module docs + the `ChainsEnforced` status condition).
2784
+ */
2785
+ identityChain: string[];
2786
+ match: outputs.mcpg.v1alpha1.MCPGRouteSpecMatchPatch;
2787
+ /**
2788
+ * Ordered policy-engine plugin ids for this route. Same
2789
+ * validation + enforcement caveat as `identityChain`.
2790
+ */
2791
+ policyChain: string[];
2792
+ }
2793
+
2794
+ /**
2795
+ * Observed state for `MCPGRoute`.
2796
+ */
2797
+ export interface MCPGRouteStatus {
2798
+ /**
2799
+ * The resolved `<namespace>/<name>` of the bound gateway. Lets ops
2800
+ * see the cross-namespace binding without parsing the ref.
2801
+ */
2802
+ boundGateway: string;
2803
+ /**
2804
+ * Standard `metav1.Condition[]`. Notable types:
2805
+ * - `Ready` — route accepted + tool-access rules rendered.
2806
+ * - `GatewayBound` — the referenced gateway exists and accepts
2807
+ * this route's namespace.
2808
+ * - `ChainsEnforced` — `True` only if the gateway runtime applies
2809
+ * the route's identity/policy/audit chains per-route. Today this
2810
+ * is `False` (reason `PerRouteDispatchUnsupported`): the chains
2811
+ * are validated but not dispatched per-route. The tool-access
2812
+ * scoping in `Ready` still applies.
2813
+ */
2814
+ conditions: outputs.mcpg.v1alpha1.MCPGRouteStatusConditions[];
2815
+ lastReconcileTime: string;
2816
+ /**
2817
+ * Number of `match.tools` entries the operator rendered into the
2818
+ * gateway's tool-access policy.
2819
+ */
2820
+ matchedTools: number;
2821
+ observedGeneration: number;
2822
+ }
2823
+
2824
+ /**
2825
+ * One status condition. Serde shape matches K8s
2826
+ * `metav1.Condition` exactly so generic tooling (kubectl,
2827
+ * kustomize, Argo CD) interprets it correctly.
2828
+ */
2829
+ export interface MCPGRouteStatusConditions {
2830
+ /**
2831
+ * RFC3339 timestamp of the most recent transition.
2832
+ */
2833
+ lastTransitionTime: string;
2834
+ /**
2835
+ * Free-text human-readable detail. May be empty.
2836
+ */
2837
+ message: string;
2838
+ /**
2839
+ * `metadata.generation` the controller had observed when
2840
+ * it set this condition. Lets clients detect stale status.
2841
+ */
2842
+ observedGeneration: number;
2843
+ /**
2844
+ * CamelCase enum the operator defines per controller.
2845
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
2846
+ * `SignatureMismatch`.
2847
+ */
2848
+ reason: string;
2849
+ /**
2850
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
2851
+ * keep this as a string (not a bool) so `Unknown` is
2852
+ * representable.
2853
+ */
2854
+ status: string;
2855
+ /**
2856
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
2857
+ * `Progressing`, `Failed`, plus per-CRD types.
2858
+ */
2859
+ type: string;
2860
+ }
2861
+
2862
+ /**
2863
+ * One status condition. Serde shape matches K8s
2864
+ * `metav1.Condition` exactly so generic tooling (kubectl,
2865
+ * kustomize, Argo CD) interprets it correctly.
2866
+ */
2867
+ export interface MCPGRouteStatusConditionsPatch {
2868
+ /**
2869
+ * RFC3339 timestamp of the most recent transition.
2870
+ */
2871
+ lastTransitionTime: string;
2872
+ /**
2873
+ * Free-text human-readable detail. May be empty.
2874
+ */
2875
+ message: string;
2876
+ /**
2877
+ * `metadata.generation` the controller had observed when
2878
+ * it set this condition. Lets clients detect stale status.
2879
+ */
2880
+ observedGeneration: number;
2881
+ /**
2882
+ * CamelCase enum the operator defines per controller.
2883
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
2884
+ * `SignatureMismatch`.
2885
+ */
2886
+ reason: string;
2887
+ /**
2888
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
2889
+ * keep this as a string (not a bool) so `Unknown` is
2890
+ * representable.
2891
+ */
2892
+ status: string;
2893
+ /**
2894
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
2895
+ * `Progressing`, `Failed`, plus per-CRD types.
2896
+ */
2897
+ type: string;
2898
+ }
2899
+
2900
+ /**
2901
+ * Observed state for `MCPGRoute`.
2902
+ */
2903
+ export interface MCPGRouteStatusPatch {
2904
+ /**
2905
+ * The resolved `<namespace>/<name>` of the bound gateway. Lets ops
2906
+ * see the cross-namespace binding without parsing the ref.
2907
+ */
2908
+ boundGateway: string;
2909
+ /**
2910
+ * Standard `metav1.Condition[]`. Notable types:
2911
+ * - `Ready` — route accepted + tool-access rules rendered.
2912
+ * - `GatewayBound` — the referenced gateway exists and accepts
2913
+ * this route's namespace.
2914
+ * - `ChainsEnforced` — `True` only if the gateway runtime applies
2915
+ * the route's identity/policy/audit chains per-route. Today this
2916
+ * is `False` (reason `PerRouteDispatchUnsupported`): the chains
2917
+ * are validated but not dispatched per-route. The tool-access
2918
+ * scoping in `Ready` still applies.
2919
+ */
2920
+ conditions: outputs.mcpg.v1alpha1.MCPGRouteStatusConditionsPatch[];
2921
+ lastReconcileTime: string;
2922
+ /**
2923
+ * Number of `match.tools` entries the operator rendered into the
2924
+ * gateway's tool-access policy.
2925
+ */
2926
+ matchedTools: number;
2927
+ observedGeneration: number;
2928
+ }
2929
+
2930
+ /**
2931
+ * Auto-generated derived type for MCPGTenantSpec via `CustomResource`
2932
+ */
2933
+ export interface MCPGTenant {
2934
+ /**
2935
+ * 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
2936
+ */
2937
+ apiVersion: "mcpg.dev/v1alpha1";
2938
+ /**
2939
+ * 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
2940
+ */
2941
+ kind: "MCPGTenant";
2942
+ /**
2943
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
2944
+ */
2945
+ metadata: outputs.meta.v1.ObjectMeta;
2946
+ spec: outputs.mcpg.v1alpha1.MCPGTenantSpec;
2947
+ status: outputs.mcpg.v1alpha1.MCPGTenantStatus;
2948
+ }
2949
+
2950
+ /**
2951
+ * Declarative, cluster-admin-owned tenant boundary.
2952
+ * Cluster-scoped tenant boundary referencing existing namespaces.
2953
+ */
2954
+ export interface MCPGTenantSpec {
2955
+ /**
2956
+ * Plugin allowlist. `MCPGPluginSet`s in this tenant's namespaces
2957
+ * may only reference cluster `MCPGPlugin`s matching one of these.
2958
+ *
2959
+ * - Empty list = **deny-all** (a tenant must explicitly opt in).
2960
+ * - A single entry `{name: "*"}` = any cluster plugin.
2961
+ *
2962
+ * Each entry matches when EITHER its `name` equals the plugin's
2963
+ * resource name / capability id, OR the plugin's OCI `image`
2964
+ * starts with `registryPrefix`.
2965
+ */
2966
+ allowedPlugins: outputs.mcpg.v1alpha1.MCPGTenantSpecAllowedPlugins[];
2967
+ identityAttribute: outputs.mcpg.v1alpha1.MCPGTenantSpecIdentityAttribute;
2968
+ /**
2969
+ * Namespaces this tenant owns. Per-namespace RBAC, the generated
2970
+ * `ResourceQuota`, the plugin allowlist, and the replica cap apply
2971
+ * to exactly these. Namespaces are EXCLUSIVELY owned — a namespace
2972
+ * may belong to at most one `MCPGTenant` (admission rejects
2973
+ * overlap). The operator does **not** create these namespaces; it
2974
+ * references existing ones.
2975
+ */
2976
+ namespaces: string[];
2977
+ quotas: outputs.mcpg.v1alpha1.MCPGTenantSpecQuotas;
2978
+ }
2979
+
2980
+ /**
2981
+ * One plugin-allowlist matcher. At least one of `name` /
2982
+ * `registryPrefix` should be set; an entry with neither matches
2983
+ * nothing (and is rejected at admission).
2984
+ */
2985
+ export interface MCPGTenantSpecAllowedPlugins {
2986
+ /**
2987
+ * Match by the `MCPGPlugin` resource name or the plugin
2988
+ * capability id (e.g. `identity-workload` or
2989
+ * `dev.mcpg.identity.workload`). The literal `*` matches any
2990
+ * plugin.
2991
+ */
2992
+ name: string;
2993
+ /**
2994
+ * Match when the referenced plugin's OCI `image` starts with this
2995
+ * prefix (e.g. `ghcr.io/mcpg-dev/source-code/plugins/`).
2996
+ */
2997
+ registryPrefix: string;
2998
+ }
2999
+
3000
+ /**
3001
+ * One plugin-allowlist matcher. At least one of `name` /
3002
+ * `registryPrefix` should be set; an entry with neither matches
3003
+ * nothing (and is rejected at admission).
3004
+ */
3005
+ export interface MCPGTenantSpecAllowedPluginsPatch {
3006
+ /**
3007
+ * Match by the `MCPGPlugin` resource name or the plugin
3008
+ * capability id (e.g. `identity-workload` or
3009
+ * `dev.mcpg.identity.workload`). The literal `*` matches any
3010
+ * plugin.
3011
+ */
3012
+ name: string;
3013
+ /**
3014
+ * Match when the referenced plugin's OCI `image` starts with this
3015
+ * prefix (e.g. `ghcr.io/mcpg-dev/source-code/plugins/`).
3016
+ */
3017
+ registryPrefix: string;
3018
+ }
3019
+
3020
+ /**
3021
+ * Optional. The identity attribute the operator stamps into the
3022
+ * gateway's runtime `tool_access` policy so a tenant's gateways and
3023
+ * routes share one identity boundary. When unset, `MCPGTenant`
3024
+ * performs no gateway-config rendering at all (pure RBAC + admission
3025
+ * object).
3026
+ */
3027
+ export interface MCPGTenantSpecIdentityAttribute {
3028
+ /**
3029
+ * Attribute key. Conventionally `tenant`.
3030
+ */
3031
+ key: string;
3032
+ /**
3033
+ * Attribute value identifying this tenant (e.g. the tenant name).
3034
+ */
3035
+ value: string;
3036
+ }
3037
+
3038
+ /**
3039
+ * Optional. The identity attribute the operator stamps into the
3040
+ * gateway's runtime `tool_access` policy so a tenant's gateways and
3041
+ * routes share one identity boundary. When unset, `MCPGTenant`
3042
+ * performs no gateway-config rendering at all (pure RBAC + admission
3043
+ * object).
3044
+ */
3045
+ export interface MCPGTenantSpecIdentityAttributePatch {
3046
+ /**
3047
+ * Attribute key. Conventionally `tenant`.
3048
+ */
3049
+ key: string;
3050
+ /**
3051
+ * Attribute value identifying this tenant (e.g. the tenant name).
3052
+ */
3053
+ value: string;
3054
+ }
3055
+
3056
+ /**
3057
+ * Declarative, cluster-admin-owned tenant boundary.
3058
+ * Cluster-scoped tenant boundary referencing existing namespaces.
3059
+ */
3060
+ export interface MCPGTenantSpecPatch {
3061
+ /**
3062
+ * Plugin allowlist. `MCPGPluginSet`s in this tenant's namespaces
3063
+ * may only reference cluster `MCPGPlugin`s matching one of these.
3064
+ *
3065
+ * - Empty list = **deny-all** (a tenant must explicitly opt in).
3066
+ * - A single entry `{name: "*"}` = any cluster plugin.
3067
+ *
3068
+ * Each entry matches when EITHER its `name` equals the plugin's
3069
+ * resource name / capability id, OR the plugin's OCI `image`
3070
+ * starts with `registryPrefix`.
3071
+ */
3072
+ allowedPlugins: outputs.mcpg.v1alpha1.MCPGTenantSpecAllowedPluginsPatch[];
3073
+ identityAttribute: outputs.mcpg.v1alpha1.MCPGTenantSpecIdentityAttributePatch;
3074
+ /**
3075
+ * Namespaces this tenant owns. Per-namespace RBAC, the generated
3076
+ * `ResourceQuota`, the plugin allowlist, and the replica cap apply
3077
+ * to exactly these. Namespaces are EXCLUSIVELY owned — a namespace
3078
+ * may belong to at most one `MCPGTenant` (admission rejects
3079
+ * overlap). The operator does **not** create these namespaces; it
3080
+ * references existing ones.
3081
+ */
3082
+ namespaces: string[];
3083
+ quotas: outputs.mcpg.v1alpha1.MCPGTenantSpecQuotasPatch;
3084
+ }
3085
+
3086
+ /**
3087
+ * Hard quotas, enforced synchronously (replica cap at admission;
3088
+ * counts via a generated per-namespace `ResourceQuota`). Unset =
3089
+ * no quota.
3090
+ */
3091
+ export interface MCPGTenantSpecQuotas {
3092
+ /**
3093
+ * Max `MCPGGateway`s per owned namespace (count quota →
3094
+ * `ResourceQuota`).
3095
+ */
3096
+ maxGateways: number;
3097
+ /**
3098
+ * Max `MCPGPluginSet`s per owned namespace.
3099
+ */
3100
+ maxPluginSets: number;
3101
+ /**
3102
+ * Per-gateway replica ceiling. A *field* constraint (not a count),
3103
+ * so it has no admission race and is webhook-only.
3104
+ */
3105
+ maxReplicasPerGateway: number;
3106
+ /**
3107
+ * Max `MCPGRoute`s per owned namespace.
3108
+ */
3109
+ maxRoutes: number;
3110
+ }
3111
+
3112
+ /**
3113
+ * Hard quotas, enforced synchronously (replica cap at admission;
3114
+ * counts via a generated per-namespace `ResourceQuota`). Unset =
3115
+ * no quota.
3116
+ */
3117
+ export interface MCPGTenantSpecQuotasPatch {
3118
+ /**
3119
+ * Max `MCPGGateway`s per owned namespace (count quota →
3120
+ * `ResourceQuota`).
3121
+ */
3122
+ maxGateways: number;
3123
+ /**
3124
+ * Max `MCPGPluginSet`s per owned namespace.
3125
+ */
3126
+ maxPluginSets: number;
3127
+ /**
3128
+ * Per-gateway replica ceiling. A *field* constraint (not a count),
3129
+ * so it has no admission race and is webhook-only.
3130
+ */
3131
+ maxReplicasPerGateway: number;
3132
+ /**
3133
+ * Max `MCPGRoute`s per owned namespace.
3134
+ */
3135
+ maxRoutes: number;
3136
+ }
3137
+
3138
+ /**
3139
+ * Observed state for `MCPGTenant`.
3140
+ */
3141
+ export interface MCPGTenantStatus {
3142
+ /**
3143
+ * Namespaces the operator successfully bound (exist + labelled +
3144
+ * RBAC/quota applied). A subset of `spec.namespaces` when some are
3145
+ * missing.
3146
+ */
3147
+ boundNamespaces: string[];
3148
+ /**
3149
+ * Standard `metav1.Condition[]`. Notable types:
3150
+ * - `Ready` — RBAC + `ResourceQuota` materialised for all bound
3151
+ * namespaces.
3152
+ * - `NamespacesBound` — every `spec.namespaces` exists and is
3153
+ * labelled `mcpg.dev/tenant=<name>`.
3154
+ * - `QuotaWithinLimits` — `False` (soft signal, not a gate) when an
3155
+ * owned namespace already holds more resources than the quota
3156
+ * allows; the generated `ResourceQuota` still admits the existing
3157
+ * objects and blocks only new ones.
3158
+ */
3159
+ conditions: outputs.mcpg.v1alpha1.MCPGTenantStatusConditions[];
3160
+ lastReconcileTime: string;
3161
+ observed: outputs.mcpg.v1alpha1.MCPGTenantStatusObserved;
3162
+ observedGeneration: number;
3163
+ }
3164
+
3165
+ /**
3166
+ * One status condition. Serde shape matches K8s
3167
+ * `metav1.Condition` exactly so generic tooling (kubectl,
3168
+ * kustomize, Argo CD) interprets it correctly.
3169
+ */
3170
+ export interface MCPGTenantStatusConditions {
3171
+ /**
3172
+ * RFC3339 timestamp of the most recent transition.
3173
+ */
3174
+ lastTransitionTime: string;
3175
+ /**
3176
+ * Free-text human-readable detail. May be empty.
3177
+ */
3178
+ message: string;
3179
+ /**
3180
+ * `metadata.generation` the controller had observed when
3181
+ * it set this condition. Lets clients detect stale status.
3182
+ */
3183
+ observedGeneration: number;
3184
+ /**
3185
+ * CamelCase enum the operator defines per controller.
3186
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
3187
+ * `SignatureMismatch`.
3188
+ */
3189
+ reason: string;
3190
+ /**
3191
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
3192
+ * keep this as a string (not a bool) so `Unknown` is
3193
+ * representable.
3194
+ */
3195
+ status: string;
3196
+ /**
3197
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
3198
+ * `Progressing`, `Failed`, plus per-CRD types.
3199
+ */
3200
+ type: string;
3201
+ }
3202
+
3203
+ /**
3204
+ * One status condition. Serde shape matches K8s
3205
+ * `metav1.Condition` exactly so generic tooling (kubectl,
3206
+ * kustomize, Argo CD) interprets it correctly.
3207
+ */
3208
+ export interface MCPGTenantStatusConditionsPatch {
3209
+ /**
3210
+ * RFC3339 timestamp of the most recent transition.
3211
+ */
3212
+ lastTransitionTime: string;
3213
+ /**
3214
+ * Free-text human-readable detail. May be empty.
3215
+ */
3216
+ message: string;
3217
+ /**
3218
+ * `metadata.generation` the controller had observed when
3219
+ * it set this condition. Lets clients detect stale status.
3220
+ */
3221
+ observedGeneration: number;
3222
+ /**
3223
+ * CamelCase enum the operator defines per controller.
3224
+ * E.g. `AllReplicasAvailable`, `DependencyPending`,
3225
+ * `SignatureMismatch`.
3226
+ */
3227
+ reason: string;
3228
+ /**
3229
+ * `"True"`, `"False"`, or `"Unknown"`. K8s convention is to
3230
+ * keep this as a string (not a bool) so `Unknown` is
3231
+ * representable.
3232
+ */
3233
+ status: string;
3234
+ /**
3235
+ * `Ready`, `Reconciling`, `Available`, `Degraded`,
3236
+ * `Progressing`, `Failed`, plus per-CRD types.
3237
+ */
3238
+ type: string;
3239
+ }
3240
+
3241
+ /**
3242
+ * Observed counts across owned namespaces. Observability only —
3243
+ * **never** the enforcement point for quota (that's the generated
3244
+ * `ResourceQuota`).
3245
+ */
3246
+ export interface MCPGTenantStatusObserved {
3247
+ gateways: number;
3248
+ pluginSets: number;
3249
+ routes: number;
3250
+ }
3251
+
3252
+ /**
3253
+ * Observed counts across owned namespaces. Observability only —
3254
+ * **never** the enforcement point for quota (that's the generated
3255
+ * `ResourceQuota`).
3256
+ */
3257
+ export interface MCPGTenantStatusObservedPatch {
3258
+ gateways: number;
3259
+ pluginSets: number;
3260
+ routes: number;
3261
+ }
3262
+
3263
+ /**
3264
+ * Observed state for `MCPGTenant`.
3265
+ */
3266
+ export interface MCPGTenantStatusPatch {
3267
+ /**
3268
+ * Namespaces the operator successfully bound (exist + labelled +
3269
+ * RBAC/quota applied). A subset of `spec.namespaces` when some are
3270
+ * missing.
3271
+ */
3272
+ boundNamespaces: string[];
3273
+ /**
3274
+ * Standard `metav1.Condition[]`. Notable types:
3275
+ * - `Ready` — RBAC + `ResourceQuota` materialised for all bound
3276
+ * namespaces.
3277
+ * - `NamespacesBound` — every `spec.namespaces` exists and is
3278
+ * labelled `mcpg.dev/tenant=<name>`.
3279
+ * - `QuotaWithinLimits` — `False` (soft signal, not a gate) when an
3280
+ * owned namespace already holds more resources than the quota
3281
+ * allows; the generated `ResourceQuota` still admits the existing
3282
+ * objects and blocks only new ones.
3283
+ */
3284
+ conditions: outputs.mcpg.v1alpha1.MCPGTenantStatusConditionsPatch[];
3285
+ lastReconcileTime: string;
3286
+ observed: outputs.mcpg.v1alpha1.MCPGTenantStatusObservedPatch;
3287
+ observedGeneration: number;
3288
+ }
3289
+
3290
+ }
3291
+ }
3292
+
3293
+ export namespace meta {
3294
+ export namespace v1 {
3295
+ /**
3296
+ * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
3297
+ */
3298
+ export interface ListMeta {
3299
+ /**
3300
+ * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.
3301
+ */
3302
+ continue: string;
3303
+ /**
3304
+ * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.
3305
+ */
3306
+ remainingItemCount: number;
3307
+ /**
3308
+ * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
3309
+ */
3310
+ resourceVersion: string;
3311
+ /**
3312
+ * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
3313
+ */
3314
+ selfLink: string;
3315
+ /**
3316
+ * shardInfo is set when the list is a filtered subset of the full collection, as selected by a shard selector on the request. It echoes back the selector so clients can verify which shard they received and merge sharded responses. Clients should not cache sharded list responses as a full representation of the collection.
3317
+ *
3318
+ * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
3319
+ */
3320
+ shardInfo: outputs.meta.v1.ShardInfo;
3321
+ }
3322
+
3323
+ /**
3324
+ * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.
3325
+ */
3326
+ export interface ManagedFieldsEntry {
3327
+ /**
3328
+ * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.
3329
+ */
3330
+ apiVersion: string;
3331
+ /**
3332
+ * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1"
3333
+ */
3334
+ fieldsType: string;
3335
+ /**
3336
+ * FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.
3337
+ */
3338
+ fieldsV1: any;
3339
+ /**
3340
+ * Manager is an identifier of the workflow managing these fields.
3341
+ */
3342
+ manager: string;
3343
+ /**
3344
+ * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.
3345
+ */
3346
+ operation: string;
3347
+ /**
3348
+ * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.
3349
+ */
3350
+ subresource: string;
3351
+ /**
3352
+ * Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.
3353
+ */
3354
+ time: string;
3355
+ }
3356
+
3357
+ /**
3358
+ * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.
3359
+ */
3360
+ export interface ManagedFieldsEntryPatch {
3361
+ /**
3362
+ * APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.
3363
+ */
3364
+ apiVersion: string;
3365
+ /**
3366
+ * FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1"
3367
+ */
3368
+ fieldsType: string;
3369
+ /**
3370
+ * FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.
3371
+ */
3372
+ fieldsV1: any;
3373
+ /**
3374
+ * Manager is an identifier of the workflow managing these fields.
3375
+ */
3376
+ manager: string;
3377
+ /**
3378
+ * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.
3379
+ */
3380
+ operation: string;
3381
+ /**
3382
+ * Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.
3383
+ */
3384
+ subresource: string;
3385
+ /**
3386
+ * Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.
3387
+ */
3388
+ time: string;
3389
+ }
3390
+
3391
+ /**
3392
+ * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
3393
+ */
3394
+ export interface ObjectMeta {
3395
+ /**
3396
+ * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
3397
+ */
3398
+ annotations: {[key: string]: string};
3399
+ /**
3400
+ * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
3401
+ *
3402
+ * Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
3403
+ */
3404
+ creationTimestamp: string;
3405
+ /**
3406
+ * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.
3407
+ */
3408
+ deletionGracePeriodSeconds: number;
3409
+ /**
3410
+ * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.
3411
+ *
3412
+ * Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
3413
+ */
3414
+ deletionTimestamp: string;
3415
+ /**
3416
+ * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.
3417
+ */
3418
+ finalizers: string[];
3419
+ /**
3420
+ * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
3421
+ *
3422
+ * If this field is specified and the generated name exists, the server will return a 409.
3423
+ *
3424
+ * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
3425
+ */
3426
+ generateName: string;
3427
+ /**
3428
+ * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.
3429
+ */
3430
+ generation: number;
3431
+ /**
3432
+ * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
3433
+ */
3434
+ labels: {[key: string]: string};
3435
+ /**
3436
+ * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object.
3437
+ */
3438
+ managedFields: outputs.meta.v1.ManagedFieldsEntry[];
3439
+ /**
3440
+ * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
3441
+ */
3442
+ name: string;
3443
+ /**
3444
+ * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
3445
+ *
3446
+ * Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
3447
+ */
3448
+ namespace: string;
3449
+ /**
3450
+ * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.
3451
+ */
3452
+ ownerReferences: outputs.meta.v1.OwnerReference[];
3453
+ /**
3454
+ * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
3455
+ *
3456
+ * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
3457
+ */
3458
+ resourceVersion: string;
3459
+ /**
3460
+ * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
3461
+ */
3462
+ selfLink: string;
3463
+ /**
3464
+ * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
3465
+ *
3466
+ * Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
3467
+ */
3468
+ uid: string;
3469
+ }
3470
+
3471
+ /**
3472
+ * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
3473
+ */
3474
+ export interface ObjectMetaPatch {
3475
+ /**
3476
+ * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
3477
+ */
3478
+ annotations: {[key: string]: string};
3479
+ /**
3480
+ * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
3481
+ *
3482
+ * Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
3483
+ */
3484
+ creationTimestamp: string;
3485
+ /**
3486
+ * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.
3487
+ */
3488
+ deletionGracePeriodSeconds: number;
3489
+ /**
3490
+ * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.
3491
+ *
3492
+ * Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
3493
+ */
3494
+ deletionTimestamp: string;
3495
+ /**
3496
+ * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.
3497
+ */
3498
+ finalizers: string[];
3499
+ /**
3500
+ * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
3501
+ *
3502
+ * If this field is specified and the generated name exists, the server will return a 409.
3503
+ *
3504
+ * Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
3505
+ */
3506
+ generateName: string;
3507
+ /**
3508
+ * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.
3509
+ */
3510
+ generation: number;
3511
+ /**
3512
+ * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
3513
+ */
3514
+ labels: {[key: string]: string};
3515
+ /**
3516
+ * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object.
3517
+ */
3518
+ managedFields: outputs.meta.v1.ManagedFieldsEntryPatch[];
3519
+ /**
3520
+ * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
3521
+ */
3522
+ name: string;
3523
+ /**
3524
+ * Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
3525
+ *
3526
+ * Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
3527
+ */
3528
+ namespace: string;
3529
+ /**
3530
+ * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.
3531
+ */
3532
+ ownerReferences: outputs.meta.v1.OwnerReferencePatch[];
3533
+ /**
3534
+ * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
3535
+ *
3536
+ * Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
3537
+ */
3538
+ resourceVersion: string;
3539
+ /**
3540
+ * Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
3541
+ */
3542
+ selfLink: string;
3543
+ /**
3544
+ * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
3545
+ *
3546
+ * Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
3547
+ */
3548
+ uid: string;
3549
+ }
3550
+
3551
+ /**
3552
+ * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
3553
+ */
3554
+ export interface OwnerReference {
3555
+ /**
3556
+ * API version of the referent.
3557
+ */
3558
+ apiVersion: string;
3559
+ /**
3560
+ * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
3561
+ */
3562
+ blockOwnerDeletion: boolean;
3563
+ /**
3564
+ * If true, this reference points to the managing controller.
3565
+ */
3566
+ controller: boolean;
3567
+ /**
3568
+ * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3569
+ */
3570
+ kind: string;
3571
+ /**
3572
+ * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
3573
+ */
3574
+ name: string;
3575
+ /**
3576
+ * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
3577
+ */
3578
+ uid: string;
3579
+ }
3580
+
3581
+ /**
3582
+ * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
3583
+ */
3584
+ export interface OwnerReferencePatch {
3585
+ /**
3586
+ * API version of the referent.
3587
+ */
3588
+ apiVersion: string;
3589
+ /**
3590
+ * If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
3591
+ */
3592
+ blockOwnerDeletion: boolean;
3593
+ /**
3594
+ * If true, this reference points to the managing controller.
3595
+ */
3596
+ controller: boolean;
3597
+ /**
3598
+ * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3599
+ */
3600
+ kind: string;
3601
+ /**
3602
+ * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
3603
+ */
3604
+ name: string;
3605
+ /**
3606
+ * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
3607
+ */
3608
+ uid: string;
3609
+ }
3610
+
3611
+ /**
3612
+ * ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.
3613
+ */
3614
+ export interface ShardInfo {
3615
+ /**
3616
+ * selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards.
3617
+ */
3618
+ selector: string;
3619
+ }
3620
+
3621
+ }
3622
+ }