Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: improve log on provisioner daemon started with pk#15588

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
defelmnq merged 19 commits intomainfromclient-provisioners-tags
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
995a046
feat(provisioners) - add endpoint to fetch tags associated to a key u…
defelmnqNov 14, 2024
2ca6c91
rename function
defelmnqNov 14, 2024
c67d322
linter
defelmnqNov 14, 2024
911a47d
linter
defelmnqNov 14, 2024
1a019bb
generate doc
defelmnqNov 14, 2024
c629f07
changes endpoint to return all pk details
defelmnqNov 18, 2024
54437f2
generate doc
defelmnqNov 18, 2024
8eeffb1
work on tests
defelmnqNov 18, 2024
960084d
Merge remote-tracking branch 'origin/main' into api-endpoint-provisio…
defelmnqNov 19, 2024
3aa81ed
work on improving tag logs for provisioner start
defelmnqNov 19, 2024
ebcf687
merge main
defelmnqNov 20, 2024
0cff661
Work on tags for provisioner daemon
defelmnqNov 21, 2024
d4472a2
details golint
defelmnqNov 21, 2024
ee0fef6
change tags variable
defelmnqNov 25, 2024
703668b
change tags variable
defelmnqNov 25, 2024
9e0a2d3
Merge remote-tracking branch 'origin/main' into client-provisioners-tags
defelmnqNov 25, 2024
b5ff465
pre-allocate map
defelmnqNov 25, 2024
7ea193f
add missing test for failing case
defelmnqNov 25, 2024
08ab032
improve map allocation
defelmnqNov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
rename function
  • Loading branch information
@defelmnq
defelmnq committedNov 14, 2024
commit2ca6c91dd17d9ddf1f5c36442b6b0894b7ab2fa9
4 changes: 2 additions & 2 deletionscodersdk/provisionerdaemons.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -368,8 +368,8 @@ func (c *Client) ListProvisionerKeys(ctx context.Context, organizationID uuid.UU
return resp, json.NewDecoder(res.Body).Decode(&resp)
}

//GetProvisionTagsByKey returns the provisioner tags associated with the provisioner key.
func (c *Client)GetProvisionTagsByKey(ctx context.Context, organizationID uuid.UUID, provisionerKey string) (ProvisionerKeyTags, error) {
//FetchProvisionerTagsTagsByKey returns the provisioner tags associated with the provisioner key.
func (c *Client)FetchProvisionerTagsTagsByKey(ctx context.Context, organizationID uuid.UUID, provisionerKey string) (ProvisionerKeyTags, error) {
res, err := c.Request(ctx, http.MethodGet,
fmt.Sprintf("/api/v2/organizations/%s/provisionerkeys/%s/tags", organizationID.String(), provisionerKey),
nil,
Expand Down
4 changes: 2 additions & 2 deletionsenterprise/coderd/provisionerkeys_test.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -160,11 +160,11 @@ func TestProvisionerKeyTags(t *testing.T) {
})
require.NoError(t, err)

tags, err := client.GetProvisionTagsByKeyID(ctx, owner.OrganizationID, "key")
tags, err := client.FetchProvisionerTagsTagsByKey(ctx, owner.OrganizationID, "key")
require.NoError(t, err)
require.Equal(t, tags, codersdk.ProvisionerKeyTags{"key1": "value1", "key2": "value2"})

err = client.DeleteProvisionerKey(ctx, owner.OrganizationID, "invalid_key")
tags,err = client.FetchProvisionerTagsTagsByKey(ctx, owner.OrganizationID, "invalid_key")
require.ErrorContains(t, err, "Resource not found")
})
}

[8]ページ先頭

©2009-2026 Movatter.jp