Skip to content

fix: remove hardcoded nyc1 region from marketplace app queries#582

Merged
dippydocus merged 2 commits intomasterfrom
fix/remove-hardcoded-nyc1-region
Apr 14, 2026
Merged

fix: remove hardcoded nyc1 region from marketplace app queries#582
dippydocus merged 2 commits intomasterfrom
fix/remove-hardcoded-nyc1-region

Conversation

@dippydocus
Copy link
Copy Markdown
Contributor

@dippydocus dippydocus commented Apr 14, 2026

Summary

  • CheckAPPName() and ListDefaultApps() in utility/check.go hardcoded client.Region = "nyc1", which breaks any environment where nyc1 doesn't exist (e.g. staging)
  • config.CivoAPIClient() already sets the region from the user's config (Current.Meta.DefaultRegion), so the override is unnecessary
  • Marketplace app data is read from the API server's local filesystem and is not region-specific — any valid region works

Introduced in 8cb7cea (#529).

Test plan

  • Verified go build ./... compiles clean
  • Built patched binary and tested civo k3s create against staging API — no longer returns database_region_not_found
  • Verify civo k3s create still works against production (nyc1 exists, so behavior is unchanged)
  • Verify civo k3s create --applications=traefik2-nodeport validates app names correctly

dippydocus and others added 2 commits April 14, 2026 15:29
CheckAPPName() and ListDefaultApps() hardcoded client.Region to nyc1,
which breaks any environment where nyc1 doesn't exist (e.g. staging).

config.CivoAPIClient() already sets the region from the user's config,
so the override is unnecessary.
@dippydocus dippydocus merged commit 2357856 into master Apr 14, 2026
3 checks passed
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.

2 participants