Skip to content

Conversation

@drewmalin
Copy link
Contributor

No description provided.

@drewmalin drewmalin changed the title VPC VPC, K8s Sep 15, 2025
@drewmalin drewmalin changed the title VPC, K8s feat(BREV-2068,BREV-2069,BREV-2070,BREV-2071): Managed k8s, VPC support for AWS, Nebius Nov 4, 2025
@drewmalin
Copy link
Contributor Author

Will set up test keys to enable e2e validation shortly.

@drewmalin drewmalin marked this pull request as ready for review November 4, 2025 01:26
@drewmalin drewmalin requested a review from a team as a code owner November 4, 2025 01:26
case *rsa.PrivateKey, *ed25519.PrivateKey:
return k, nil
default:
return nil, fmt.Errorf("key is not an RSA private key")
Copy link
Contributor

Choose a reason for hiding this comment

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

should we not waterfall on error all the way through, or if the parse succeeds, then that means we are in that key format?

t.Fatalf("failed to get VPC: %v", err)
}

// err = awsClient.DeleteVPC(context.Background(), v1.DeleteVPCArgs{
Copy link
Contributor

@patelspratik patelspratik Nov 4, 2025

Choose a reason for hiding this comment

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

remove or restore?

}
}
return false
return slices.Contains(c, cc)
Copy link
Contributor

Choose a reason for hiding this comment

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

neat

CapabilityCreateInstance Capability = "create-instance"
CapabilityCreateIdempotentInstance Capability = "create-instance-idempotent"
CapabilityTerminateInstance Capability = "terminate-instance"
CapabilityCreateTerminateInstance Capability = "create-terminate-instance"
Copy link
Contributor

Choose a reason for hiding this comment

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

this verbage is a bit weird, might be worth a comment to explain what this means

name string

// The unique ID used to associate with this cluster.
refID string
Copy link
Contributor

@patelspratik patelspratik Nov 4, 2025

Choose a reason for hiding this comment

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

is the implication that this is a Brev ID? or said another way, what is the difference between id and refId?

errs = append(errs, fmt.Errorf("clusterServerURL is required"))
}
if s.Username == "" {
errs = append(errs, fmt.Errorf("username is required"))
Copy link
Contributor

@patelspratik patelspratik Nov 4, 2025

Choose a reason for hiding this comment

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

does this have to be unique per cluster?

cloud string

// The ID assigned by the cloud provider to the VPC.
id CloudProviderResourceID
Copy link
Contributor

Choose a reason for hiding this comment

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

quibble: maintain ordering in our interfaces, kubernetes had this field first

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