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