Skip to content

feat(CENG-689) Add generic upstream support#164

Merged
BartoszBlizniak merged 2 commits intomasterfrom
ceng-689-add-support-for-generic-upstream_type-in-terraform-provider
Feb 13, 2026
Merged

feat(CENG-689) Add generic upstream support#164
BartoszBlizniak merged 2 commits intomasterfrom
ceng-689-add-support-for-generic-upstream_type-in-terraform-provider

Conversation

@BartoszBlizniak
Copy link
Member

Add Generic upstream support to the provider.

Example usage:

resource "cloudsmith_repository_upstream" "gradle_distributions" {
    name            = "Gradle Distributions"
    namespace       = "${data.cloudsmith_organization.my_organization.slug_perm}"
    repository      = "${resource.cloudsmith_repository.my_repository.slug_perm}"
    upstream_type   = "generic"
    upstream_url    = "https://services.gradle.org"
    upstream_prefix = "distributions"
}

@BartoszBlizniak BartoszBlizniak requested a review from a team as a code owner February 13, 2026 13:37
Copilot AI review requested due to automatic review settings February 13, 2026 13:37
Copy link

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 adds support for Generic upstream repositories to the Terraform provider, allowing users to configure generic upstream sources like Gradle distributions. The changes include updating the cloudsmith-api-go dependency from v0.0.50 to v0.0.54, implementing Generic upstream CRUD operations, adding comprehensive test coverage, updating documentation, and fixing a bug in the team resource where the description field now correctly uses nullableString instead of optionalString.

Changes:

  • Added Generic upstream support with all CRUD operations (Create, Read, Update, Delete)
  • Updated cloudsmith-api-go dependency to v0.0.54 to support Generic upstream API
  • Fixed team resource description field to use nullableString for proper API compatibility

Reviewed changes

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

Show a summary per file
File Description
go.mod Updated cloudsmith-api-go dependency from v0.0.50 to v0.0.54
go.sum Added checksums for cloudsmith-api-go v0.0.54
docs/resources/repository_upstream.md Added Generic upstream documentation with example and updated parameter table
cloudsmith/resource_team.go Fixed description field to use nullableString instead of optionalString for proper nullable handling
cloudsmith/resource_repository_upstream.go Added Generic constant, UpstreamPrefix constant, Generic upstream CRUD operations, and schema definition for upstream_prefix field
cloudsmith/resource_repository_upstream_test.go Added comprehensive test coverage for Generic upstream with basic, update, and import scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@apoclyps apoclyps added the enhancement New feature or request label Feb 13, 2026
@BartoszBlizniak BartoszBlizniak changed the title chore(CENG-689) Add generic upstream support feat(CENG-689) Add generic upstream support Feb 13, 2026
@BartoszBlizniak BartoszBlizniak merged commit d4d27de into master Feb 13, 2026
7 checks passed
@BartoszBlizniak BartoszBlizniak deleted the ceng-689-add-support-for-generic-upstream_type-in-terraform-provider branch February 13, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

4 participants