-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial implementation of syn-teams.libsonnet
#1
Merged
Conversation
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 variable maps team names to lists of instances. The map only contains teams which are reponsible for at least one instance in the cluster. The logic raises an error if it detects any instances in the cluster which aren't assigned to any team (after taking into account the fallback assignment to `syn.owner`). Usually, this can only happen if the owner team explicitly specifies that they're not responsible for an application and no other team has that application in their list.
This function does the lookup in the `teamApplicationMap` and falls back to `null` if the provided team name isn't present in the map.
This function returns the list of teams (optionally including the owner team) which are assigned to at least one application in the cluster.
This variable maps all instances in the cluster to their responsible team. The logic raises an error for any instances that aren't assigned to any team (after taking into account the `syn.owner` fallback). This error originates from `teamApplicationMap` which is used in the implementation to render the contents for `applicationTeamMap`. Additionally, the logic for `applicationTeamMap` also raises an error if it detects that any instance is assigned to multiple teams.
6 tasks
simu
force-pushed
the
initial-implementation
branch
from
December 19, 2024 16:19
f907e42
to
ca59eed
Compare
simu
force-pushed
the
initial-implementation
branch
3 times, most recently
from
December 20, 2024 09:47
4ab506a
to
cc104b0
Compare
Boilerplate is copied from component template. Testing infrastructure is adapted from commodore-compile-pipelines. |
haasad
approved these changes
Dec 20, 2024
This case should only occur when `syn.owner=null`.
This function returns the given instance's `_metadata.multi_tenant` parameter if it exists or false otherwise.
simu
force-pushed
the
initial-implementation
branch
from
December 20, 2024 14:56
e4f6afd
to
9b73f40
Compare
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.
TODO