Skip to content

Enhance registrations for unknown resources#2322

Merged
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main
Feb 23, 2026
Merged

Enhance registrations for unknown resources#2322
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

@seokho-son seokho-son commented Feb 21, 2026

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings February 21, 2026 11:29
@dosubot
Copy link
Copy Markdown

dosubot bot commented Feb 21, 2026

Related Documentation

Checked 0 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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>
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Feb 23, 2026
@cb-github-robot cb-github-robot merged commit 253c10d into cloud-barista:main Feb 23, 2026
4 checks passed
@seokho-son
Copy link
Copy Markdown
Member Author

Thanks to https://github.com/apps/copilot-pull-request-reviewer for the nice observation. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants