Skip to content

Refactor for applying changed CSP names#2108

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

Refactor for applying changed CSP names#2108
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

  • ktcloudvpc -> kt
  • ncpvpc -> ncp
  • nhncloud -> nhn

This PR will staging v0.11.7 as well

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings August 21, 2025 08:10
@seokho-son seokho-son requested a review from yunkon-kim as a code owner August 21, 2025 08:10
@github-actions github-actions bot added the asset label Aug 21, 2025
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 refactors Cloud Service Provider (CSP) naming conventions, simplifying provider names to improve consistency and readability across the codebase:

  • Standardizes CSP names by removing VPC suffixes and abbreviating NHN Cloud
  • Updates configuration files, scripts, and documentation to align with new naming
  • Increments version to 0.11.7 with corresponding component updates

Reviewed Changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/testclient/scripts/testSet.env Updates CSP index variables and mappings for renamed providers
src/testclient/scripts/sequentialFullTest/*.sh Replaces old CSP names in conditional logic and script calls
src/testclient/scripts/conf.env Updates provider configurations and connection mappings
src/core/model/csp/csp.go Changes CSP constant definitions from verbose to simplified names
src/core/resource/*.go Updates CSP name references in resource handling logic
docker-compose.yaml Bumps version numbers for service images
assets/*.yaml Updates configuration files with new CSP names
init/template.credentials.yaml Changes credential template keys to match new naming

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

{"/tumblebug/readyz"},
{"/tumblebug/httpVersion"},
{"/mci", "option=status"},
{"/mci"},
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

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

This appears to be an unrelated addition to the PR. Adding a new endpoint {"/mci"} to the rate limiting configuration doesn't relate to the CSP naming refactor and may introduce unintended behavior changes.

Suggested change
{"/mci"},

Copilot uses AI. Check for mistakes.
IndexOpenstack=$((++IX))
IndexNCP=$((++IX))
IndexNCPVPC=$((++IX))
IndexNCP=$((++IX))
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

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

Duplicate IndexNCP assignment. Both line 28 (IndexNCP) and line 29 (IndexNCP) are being assigned the same incremented value, which will cause IndexCloudit to have an incorrect index value.

Suggested change
IndexNCP=$((++IX))

Copilot uses AI. Check for mistakes.
CSPType[$IndexOpenstack]=openstack
CSPType[$IndexNCP]=ncp
CSPType[$IndexNCPVPC]=ncpvpc
CSPType[$IndexNCP]=ncp
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

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

Duplicate CSPType assignment for IndexNCP. This overwrites the previous assignment on line 47, potentially causing configuration issues.

Suggested change
CSPType[$IndexNCP]=ncp

Copilot uses AI. Check for mistakes.
CSPIndex=$IndexNCPVPC
elif [ "${CSP}" == "ncp" ]; then
# echo "[NCP driver]"
CSPIndex=$IndexNCP
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

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

Duplicate condition for 'ncp' CSP. Both lines 2854 and 2857 check for the same CSP value 'ncp', which means the second condition will never be reached.

Suggested change
CSPIndex=$IndexNCP

Copilot uses AI. Check for mistakes.
# echo "[NCPVPC driver]"
elif [ "${CSP}" == "ncp" ]; then
# echo "[NCP driver]"
CSPIndex=l
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

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

Another duplicate condition for 'ncp' CSP in the getCloudIndexGeneral function. This creates the same issue where the second ncp condition is unreachable.

Suggested change
CSPIndex=l

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 21, 2025
@cb-github-robot cb-github-robot merged commit 5041eef into cloud-barista:main Aug 21, 2025
4 of 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. asset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants