Skip to content

Disable recommending NHN Cloud hold deployment#2113

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main
Aug 25, 2025
Merged

Disable recommending NHN Cloud hold deployment#2113
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

  • We now support VM provisioning for NHN Cloud with Internet gateway setting.
  • No need to add review warning for NHN Cloud hold deployment

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings August 25, 2025 02:35
@seokho-son seokho-son requested a review from yunkon-kim as a code owner August 25, 2025 02:35
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 removes the review warnings and restrictions for NHN Cloud deployments that previously forced users to use 'hold' deployment mode. The change enables automatic VM provisioning for NHN Cloud now that Internet gateway settings are supported.

  • Commented out NHN Cloud deployment validation logic that required 'hold' mode
  • Removed error conditions that blocked non-hold deployments for NHN Cloud
  • Eliminated warnings about manual deployment requirements for NHN Cloud

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +1772 to +1784
// // Check NHN Cloud limitations
// if providerName == csp.NHN {
// if deployOption != "hold" {
// vmReview.Errors = append(vmReview.Errors, "NHN Cloud can only be provisioned with deployOption 'hold' (manual deployment required)")
// vmReview.CanCreate = false
// viable = false
// log.Debug().Msgf("NHN Cloud requires 'hold' deployOption for VM: %s", subGroupDynamicReq.Name)
// } else {
// vmReview.Warnings = append(vmReview.Warnings, "NHN Cloud requires manual deployment completion after 'hold' - automatic provisioning is not fully supported")
// hasVmWarning = true
// log.Debug().Msgf("NHN Cloud 'hold' mode warning for VM: %s", subGroupDynamicReq.Name)
// }
// }
Copy link

Copilot AI Aug 25, 2025

Choose a reason for hiding this comment

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

Instead of commenting out this code block, consider removing it entirely since NHN Cloud now supports automatic provisioning. Commented-out code reduces readability and can cause confusion about whether this logic might be re-enabled in the future.

Suggested change
// // Check NHN Cloud limitations
// if providerName == csp.NHN {
// if deployOption != "hold" {
// vmReview.Errors = append(vmReview.Errors, "NHN Cloud can only be provisioned with deployOption 'hold' (manual deployment required)")
// vmReview.CanCreate = false
// viable = false
// log.Debug().Msgf("NHN Cloud requires 'hold' deployOption for VM: %s", subGroupDynamicReq.Name)
// } else {
// vmReview.Warnings = append(vmReview.Warnings, "NHN Cloud requires manual deployment completion after 'hold' - automatic provisioning is not fully supported")
// hasVmWarning = true
// log.Debug().Msgf("NHN Cloud 'hold' mode warning for VM: %s", subGroupDynamicReq.Name)
// }
// }

Copilot uses AI. Check for mistakes.
@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 Aug 25, 2025
@cb-github-robot cb-github-robot merged commit 18fda2a into cloud-barista:main Aug 25, 2025
5 checks passed
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