Skip to content

add in brevd logic#273

Closed
patelspratik wants to merge 23 commits into
mainfrom
byon
Closed

add in brevd logic#273
patelspratik wants to merge 23 commits into
mainfrom
byon

Conversation

@patelspratik
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pkg/brevcloud/client.go
return &Client{}
}

baseURL := config.GlobalConfig.GetDevplaneAPIURL()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass this in as an arg instead of having a dep on the global config?

Comment thread pkg/brevcloud/client.go
Labels map[string]string
}

func (c *Client) ListCloudCredID(ctx context.Context, orgID string) (string, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this signature is fine for now, but the longer term access model includes user private, cloud private, etc.

Comment thread pkg/brevcloud/client.go
}

func (c *Client) ListCloudCredID(ctx context.Context, orgID string) (string, error) {
resp, err := c.cloudCreds.ListCloudCred(ctx, connect.NewRequest(&devplaneapiv1.ListCloudCredRequest{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of exposing the inner label structure, should we add a operator API that returns the relevant CloudCreds for brevcloud?

Comment thread pkg/brevdaemon/agent.go
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since agent has been coopted by agentic AI we should use daemon or some other term that is not overloaded

Comment thread pkg/brevdaemon/agent.go

code, runErr := run(ctx)
if runErr != nil {
zap.L().Error("brev-agent exited with error", zap.Error(runErr))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/brev\-agent/brevd/

Comment thread pkg/brevcloud/client.go
RegistrationToken: msg.GetRegistrationToken(),
}
if ts := msg.GetExpiresAt(); ts != nil {
out.ExpiresAt = ts.AsTime().UTC().Format(time.RFC3339)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the time format conversion is used across many places, let's normalize it into a helper so that it does not drift

@patelspratik patelspratik changed the title Byon add in brevd logic Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants