Skip to content

fix: align config behaviour with terraform#591

Merged
avirtopeanu-ionos merged 9 commits intomasterfrom
fix/config-match-tf
Sep 23, 2025
Merged

fix: align config behaviour with terraform#591
avirtopeanu-ionos merged 9 commits intomasterfrom
fix/config-match-tf

Conversation

@avirtopeanu-ionos
Copy link
Copy Markdown
Contributor

@avirtopeanu-ionos avirtopeanu-ionos commented Sep 5, 2025

  • Stop generating config entry for old monitoring API

  • Rename generated config entry and override parsing field observability-monitoring -> monitoring.

  • Keep both names working as overrides for backward compatibility

  • Stop generating:

    • object-storage-user-owned-buckets (only generation affected)
    • object-storage-contract-owned-buckets (only generation affected)

Renamed products (with backward compatibility where applicable)

  • vmautoscaling -> autoscaling
  • in-memory-db -> inmemorydb
  • object-storage-management -> objectstoragemanagement (only generation affected)
  • object-storage -> objectstorage (only generation affected)

Use fileconfiguration constants where possible

Blacklisted unused products (only generation affected)

Copy link
Copy Markdown

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 aligns configuration behavior with Terraform by standardizing product naming and filtering of deprecated APIs to improve consistency across tools. The changes replace hardcoded product names with constants from the fileconfiguration package and update blacklisted products.

  • Replace hardcoded product names with fileconfiguration constants across all command files
  • Update configuration filtering to blacklist deprecated APIs and rename products for backward compatibility
  • Add special handling for monitoring API filtering in code generation

Reviewed Changes

Copilot reviewed 82 out of 82 changed files in this pull request and generated 2 comments.

File Description
internal/config/generate_from_index.go Adds filtering logic to ignore old monitoring API during generation
commands/cfg/login.go Updates product name mappings and expands blacklist with deprecated APIs
commands/*/*.go Systematically replaces hardcoded product names with fileconfiguration constants
docs/subcommands/CLI Setup/login.md Updates documentation to reflect new default blacklist values

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

@avirtopeanu-ionos avirtopeanu-ionos marked this pull request as ready for review September 5, 2025 12:18
@sonarqubecloud
Copy link
Copy Markdown

@avirtopeanu-ionos avirtopeanu-ionos merged commit 060d915 into master Sep 23, 2025
13 of 17 checks passed
@avirtopeanu-ionos avirtopeanu-ionos deleted the fix/config-match-tf branch September 23, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants