Repository navigation
Feat/new flavor scheme - #226
Merged
Merged
Conversation
We have changed the naming scheme to avoid ':' in flavor names as k8s does not like these within a label. Ignoring the SCS- prefix (which stays the same, we did not add version and leave the trailing dash as is), we transform: * v1 '-' becomes v2 '_' * v1 ':' becomes v2 '-' The flavor-name-check.py script still understands the old names unless you pass the "-2" option, which results in old flavor names no longer being acceptable. The old names however don't count towards the mandatory flavor list. So a cloud that offers new and old names would be compliant without -2, but only the old flavors are insufficient. Caveats: * We probably should have a -1 option to allow only old flavors (and count them towards the new mandatory list) * Without -2, we are too liberal in accepting mixed flavor names: We accept flavors that start with the v2 scheme and then switch to v1. (This is not considered an urgent issue right now, as we expect the transition time to be limited.) Signed-off-by: Kurt Garloff <[email protected]>
Signed-off-by: Kurt Garloff <[email protected]>
Signed-off-by: Kurt Garloff <[email protected]>
Signed-off-by: Kurt Garloff <[email protected]>
* Use parseone() for the common error handling. * Ensure we raise an exception if the name starts with new v2 format and switches to v1 along the way. Also fix a few flake8 errors. Signed-off-by: Kurt Garloff <[email protected]>
With this, we pretty much reestablish the old behavior: - We check for completeness vs. the old flavor names. - We prefer old flavors and warn from the new. We don't outright disallow v2 names; embracing the future is OK. Signed-off-by: Kurt Garloff <[email protected]>
Signed-off-by: Kurt Garloff <[email protected]>
Also fixup links due to repository reorganization. Did a few wording improvments along the way. Editorial stuff only. Signed-off-by: Kurt Garloff <[email protected]>
…ack/standards into feat/new-flavor-scheme
fkr
reviewed
Feb 18, 2023
fkr
reviewed
Feb 18, 2023
fkr
previously approved these changes
Feb 18, 2023
fkr
left a comment
Member
There was a problem hiding this comment.
LGTM! left two very minor comments
Signed-off-by: Kurt Garloff <[email protected]>
Signed-off-by: Kurt Garloff <[email protected]>
tibeer
approved these changes
Feb 20, 2023
tibeer
left a comment
There was a problem hiding this comment.
LGTM! Just one hint: I have the feeling that the flavor-name-check.py script might become too complex to be easily maintained. That being said, I do not have any good idea on how to solve this.
wwentland
approved these changes
Feb 20, 2023
wwentland
left a comment
There was a problem hiding this comment.
LGTM, thank you for addressing my concerns. Much appreciated!
reqa
pushed a commit
that referenced
this pull request
Feb 22, 2023
* Parse and validate new v2 flavor names. We have changed the naming scheme to avoid ':' in flavor names as k8s does not like these within a label. Ignoring the SCS- prefix (which stays the same, we did not add version and leave the trailing dash as is), we transform: * v1 '-' becomes v2 '_' * v1 ':' becomes v2 '-' The flavor-name-check.py script still understands the old names unless you pass the "-2" option, which results in old flavor names no longer being acceptable. The old names however don't count towards the mandatory flavor list. So a cloud that offers new and old names would be compliant without -2, but only the old flavors are insufficient. Caveats: * We probably should have a -1 option to allow only old flavors (and count them towards the new mandatory list) * Without -2, we are too liberal in accepting mixed flavor names: We accept flavors that start with the v2 scheme and then switch to v1. (This is not considered an urgent issue right now, as we expect the transition time to be limited.) * Flavor naming spec v2 with new naming scheme. * Fix a few typos and adjust header. * Refactor name parsing: Error handling in function. * Use parseone() for the common error handling. * Ensure we raise an exception if the name starts with new v2 format and switches to v1 along the way. Also fix a few flake8 errors. * Implement option -1 (--v1prefer) to check v1 flavors. With this, we pretty much reestablish the old behavior: - We check for completeness vs. the old flavor names. - We prefer old flavors and warn from the new. We don't outright disallow v2 names; embracing the future is OK. * Improve headlines and usage of must, should, must not etc. * Adjust draft to use new v2 flavor names. Also fixup links due to repository reorganization. Did a few wording improvments along the way. Editorial stuff only. * One ":" had been overlooked. * Improvements as suggested by @fkr (and flake8). Signed-off-by: Kurt Garloff <[email protected]>
This was referenced Feb 22, 2023
cah-hbaum
added a commit
that referenced
this pull request
Sep 22, 2023
* Anti-affinity for k8s nodes Adds a standard decision for K8s node anti-affinity. This should lead to a standard, which ensures anti-affinity, and therefore high-availability and fault-tolerance on systems of SCS users. * Update Anti-affinity for k8s nodes Some small updates and changes to the Decision Record due to the comments of @matofeder and @anjastrunk. --------- Signed-off-by: Hannes Baum <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a first version how the new flavor naming v2 could look like to address issue #190, reflecting the considerations from #192.
A document that describes how the transition can be done smoothly still needs to be written.
The check tools which has been updated along with the standard can be run in a mode to accept both old v1 and new v2 flavor names, which hints how a transition might be implemented.
To check for v1 compliance, the tool has an option
-1now, so we don't need to carry an old version of the test tool.