-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow experiments to configure k8s sidecars (#8854)
This turns out to be my regression from Jan 2021 when expconf first landed. Also, we might as well resurrect the detailed explanations that used to be in extensions.py, and which were still cited by the go files, even though the python code was deleted a long time ago.
- Loading branch information
1 parent
d07ec40
commit ac8c440
Showing
11 changed files
with
220 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This is a regression test: the migration to expconf accidentally prevented | ||
# all changes to sidecar container specs, which was previously allowed. | ||
|
||
- name: podspec can configure sidecar | ||
sane_as: | ||
- http://determined.ai/schemas/expconf/v0/environment.json | ||
case: | ||
pod_spec: | ||
spec: | ||
containers: | ||
- name: my-sidecar | ||
security_context: whatever | ||
|
||
- name: podspec cannot configure determined container | ||
sanity_errors: | ||
http://determined.ai/schemas/expconf/v0/environment.json: | ||
- "<config>.pod_spec.spec.containers\\[1\\]: .* not configurable" | ||
case: | ||
pod_spec: | ||
spec: | ||
containers: | ||
- name: my-sidecar | ||
security_context: whatever | ||
- name: determined-container | ||
security_context: this should fail |