Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Synchronization of Labels between CB-TB and CSP Resources #1970

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

seokho-son
Copy link
Member

@seokho-son seokho-son commented Feb 11, 2025

Enhancement: Synchronization of Labels between CB-TB and CSP Resources

1. Label Update API

Endpoint: PUT /label/{labelType}/{uid}

  • Enhancement: Added CSP label synchronization
  • Behavior:
    • When a resource contains sys.connectionName (e.g., "aws-ap-northeast-2")
    • System will attempt to update both CB-TB labels and CSP labels/tags
  • Limitation: Only applicable for CSPs with labeling API support

2. Label Delete API

Endpoint: DELETE /label/{labelType}/{uid}/{key}

  • Enhancement: Added synchronized deletion
  • Behavior:
    • Removes specified label from both CB-TB and CSP when resource has sys.connectionName
    • Ensures label consistency across platforms
  • Limitation: Only applicable for CSPs with labeling API support

3. New Label Merge API

Endpoint: PUT /mergeCSPLabel/{labelType}/{uid}

  • Purpose: Synchronize labels/tags from CSP to CB-TB labels
  • Behavior:
    • Fetches current CSP labels
    • Merges them with existing CB-TB labels
  • Limitation: Only applicable for CSPs with labeling API support

@seokho-son
Copy link
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Feb 12, 2025
@cb-github-robot cb-github-robot merged commit 9636cb4 into cloud-barista:main Feb 12, 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.

2 participants