-
Notifications
You must be signed in to change notification settings - Fork 897
feat: allow specifying devcontainer on agent in terraform #16997
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 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
76bf36b
feat: add agent devcontainers from provision
mafredri 1f4e5b7
make gen
mafredri d6da3b8
implement dbmem and dbauthz
mafredri 788adad
add to agent proto/manifest
mafredri 4f6cf12
make gen
mafredri 4742f3c
implement dbmem and dbauthz
mafredri 3efbaa3
fix provisioner, add resource test
mafredri 3bb874e
add provisionerd tests
mafredri bbbfa92
add agentapi test case
mafredri 0024156
fix
mafredri 013bb45
add fixcture
mafredri f48d807
simplify name
mafredri c211af4
fix fixture
mafredri b668a21
fix dbauthz
mafredri 4649f19
fix dbauthz^2
mafredri 9a20d98
create index
mafredri 7eb0e41
dbgen workspace folder
mafredri 563107c
provisionerd proto bump
mafredri 9e71261
add rbac todo
mafredri 620ac74
update golden files
mafredri fc4d5d7
fix e2e test
mafredri b466e4e
fix migrations
mafredri 82df8d6
add rbac resource for workspace agent devcontainer
mafredri 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
Next
Next commit
feat: add agent devcontainers from provision
- Loading branch information
commit 76bf36bceaeb79dc2edbe83723ca9e0ad973d980
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
coderd/database/migrations/000302_add_workspace_agent_devcontainers.down.sql
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 @@ | ||
DROP TABLE workspace_agent_devcontainers; |
15 changes: 15 additions & 0 deletions
15
coderd/database/migrations/000302_add_workspace_agent_devcontainers.up.sql
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,15 @@ | ||
CREATE TABLE workspace_agent_devcontainers ( | ||
id UUID PRIMARY KEY, | ||
workspace_agent_id UUID NOT NULL, | ||
created_at TIMESTAMPTZ NOT NULL DEFAULT now(), | ||
workspace_folder TEXT NOT NULL, | ||
config_path TEXT NOT NULL, | ||
FOREIGN KEY (workspace_agent_id) REFERENCES workspace_agents(id) ON DELETE CASCADE | ||
); | ||
|
||
COMMENT ON TABLE workspace_agent_devcontainers IS 'Workspace agent devcontainer configuration'; | ||
COMMENT ON COLUMN workspace_agent_devcontainers.id IS 'Unique identifier'; | ||
COMMENT ON COLUMN workspace_agent_devcontainers.workspace_agent_id IS 'Workspace agent foreign key'; | ||
COMMENT ON COLUMN workspace_agent_devcontainers.created_at IS 'Creation timestamp'; | ||
COMMENT ON COLUMN workspace_agent_devcontainers.workspace_folder IS 'Workspace folder'; | ||
COMMENT ON COLUMN workspace_agent_devcontainers.config_path IS 'Path to devcontainer.json.'; |
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,10 @@ | ||
-- name: InsertWorkspaceAgentDevcontainers :many | ||
INSERT INTO | ||
workspace_agent_devcontainers (workspace_agent_id, created_at, id, workspace_folder, config_path) | ||
SELECT | ||
@workspace_agent_id::uuid AS workspace_agent_id, | ||
@created_at::timestamptz AS created_at, | ||
unnest(@id::uuid[]) AS id, | ||
unnest(@workspace_folder::text[]) AS workspace_folder, | ||
unnest(@config_path::text[]) AS config_path | ||
RETURNING workspace_agent_devcontainers.*; |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.