-
Notifications
You must be signed in to change notification settings - Fork 72
feat: Runtime variables and system config change reload #352
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
64a078f
poc: proof of concept for a server that detects configmap changes and…
Vafilor 9c356df
update: workspace url is no longer stored in db but is auto generated…
Vafilor 9f6a1be
fix: removed reference to workspace.url
Vafilor a983e26
fix: removed db reference to workspace url
Vafilor d56b728
update: added logic to inject runtime variables in Workspace templates
Vafilor ba72b14
clean: code cleanup and minor documentation
Vafilor 3074622
Merge branch 'dev' into feat/onepanelio.core-348.system.updates
Vafilor 56777b4
fix: parameter name
Vafilor 504c4bf
workspaceSpec => spec
rushtehrani c91efc7
fix: added missing migration
Vafilor b6c67dd
fix: added missing volume
Vafilor 63011e1
fix: issue where watch was started multiple times.
Vafilor 7df9ac6
test: locks instead of channels
Vafilor fddf2d6
fix: fixed issue where channels were not working for restarting server.
Vafilor 2434864
poc: proof of concept for a server that detects configmap changes and…
Vafilor 72d6892
update: workspace url is no longer stored in db but is auto generated…
Vafilor 0e2eb15
fix: removed reference to workspace.url
Vafilor 8c8d4e2
fix: removed db reference to workspace url
Vafilor 8684e44
update: added logic to inject runtime variables in Workspace templates
Vafilor 6fe23c7
clean: code cleanup and minor documentation
Vafilor efffe1f
fix: added missing migration
Vafilor aaf6d31
fix: issue where watch was started multiple times.
Vafilor 9e236aa
test: locks instead of channels
Vafilor d823a95
fix: fixed issue where channels were not working for restarting server.
Vafilor e1ade14
Merge branch 'feat/onepanelio.core-348.system.updates' of github.com:…
Vafilor ce9fd4b
update: config updates and related usage updates.
Vafilor 49c1c6a
fix: issue where getting workspace did not have the runtime parameters
Vafilor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| -- +goose Up | ||
| ALTER TABLE workspaces DROP COLUMN url; | ||
|
|
||
| -- +goose Down | ||
| ALTER TABLE workspaces ADD COLUMN url TEXT; | ||
| UPDATE workspaces set url = ''; | ||
| ALTER TABLE workspaces ALTER COLUMN url SET NOT NULL; |
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this section should be here. It's unique to Workspaces only. Other calls to
CreateWorkflowExecutionmay never have"stateful-set-resource"orVirtualService. Can we inject these into the template before it's passed in here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rushtehrani I agree, we need to separate the concerns here.
The code above gets the workflow template and that also gets the k8s argo template. At the moment, we can't modify it beforehand because it gets it in this function.
We could change the function so that we pass in the workflow template with the argo contents pre-loaded.
That way it does less work and is more configurable.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vafilor parameters are showing and configuration reload is working. Is this the only change that remains?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rushtehrani Yes, I should have it ready by tomorrow morning.