Enhance registrations for unknown resources#2322
Merged
cb-github-robot merged 2 commits intocloud-barista:mainfrom Feb 23, 2026
Merged
Enhance registrations for unknown resources#2322cb-github-robot merged 2 commits intocloud-barista:mainfrom
cb-github-robot merged 2 commits intocloud-barista:mainfrom
Conversation
Signed-off-by: Seokho Son <shsongist@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances resource registration capabilities for cloud providers that don't follow the typical resource dependency patterns. It addresses two specific issues: Security Group registration for CSPs that don't bind security groups to VPCs (Azure, Tencent, NHN) and SSH key handling for GCP where SSH keys aren't independent resources.
Changes:
- Modified Security Group registration to allow empty VNetId for CSPs that don't associate security groups with VPCs
- Added placeholder SSH key creation mechanism for GCP VM registration when SSH keys aren't available as independent resources
- Introduced new system labels to mark placeholder resources that require user completion
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/core/model/securitygroup.go | Removed validation requirement for VNetId field to allow optional VPC association during registration |
| src/core/resource/securitygroup.go | Enhanced registration logic to handle empty VPC IDs and added validation for normal creation vs registration |
| src/core/model/label.go | Added new label constants for placeholder resources (LabelPlaceholder, LabelRequiresComplement) |
| src/core/resource/sshkey.go | Added CreatePlaceholderSshKey function to create placeholder SSH keys for GCP VMs |
| src/core/infra/provisioning.go | Enhanced VM registration to create placeholder SSH keys for GCP when no matching key is found |
| docker-compose.yaml | Added informational comment about updating Traefik image |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Seokho Son <shsongist@gmail.com>
Member
Author
|
/approve |
Member
Author
|
Thanks to https://github.com/apps/copilot-pull-request-reviewer for the nice observation. ;) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
To fix