Commit 95b149d
authored
This PR addresses the review comments from @nirrozenbaum on #586 that
were not resolved before merge.
##Changes
1. Remove namespace field from credentialRef
Comment: "isn't it always the same namespace? is there a use case for
other namespace? I would argue that it's the same as MaaSModelRef
expecting to reference ExternalModel from the same namespace.. IMO we
should be consistent."
Remove optional namespace field from ExternalModel.spec.credentialRef
Credential Secret must now reside in the same namespace as the
ExternalModel (consistent with MaaSModelRef → ExternalModel reference
pattern)
2. Clarify rate-limiting model identity
Comment: "which field represents the model that MaaS is rate limiting
on? is it MaaSModelRef metadata.name? model.ref.Name?"
Update documentation to clarify that rate limiting is keyed on
MaaSModelRef.metadata.name
Add explanation of the relationship between MaaSModelRef and
ExternalModel
3. Document single credential limitation
Comment: "this works as long as there is a single api key per external
model. I'm assuming this won't be the case for long time. just as a fyi"
Add documentation note about current single-credential-per-ExternalModel
limitation
(Optional) Create tracking issue for multi-credential support
## Merge criteria:
<!--- This PR will be merged by any repository approver when it meets
all the points in the checklist -->
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [ ] The commits are squashed in a cohesive manner and have meaningful
messages.
- [ ] Testing instructions have been added in the PR body (for PRs
involving changes that are not immediately obvious).
- [ ] The developer has manually tested the changes and verified that
the changes work
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Breaking Changes**
* Credential references no longer support namespace override;
credentials must reside in the same namespace as the `ExternalModel`.
* **Validation**
* Name fields now require a minimum length of 1 character.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 66781e6 commit 95b149d
File tree
5 files changed
+5
-16
lines changed- deployment/base/maas-controller/crd/bases
- docs/content/reference/crds
- maas-controller
- api/maas/v1alpha1
- pkg/controller/maas
5 files changed
+5
-16
lines changedLines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
| 291 | + | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 297 | | |
302 | 298 | | |
303 | 299 | | |
| |||
0 commit comments