Skip to content

Conversation

andresmanelli
Copy link
Contributor

Title: [Artifactory Connector] Add missing execute_on_delegate option

Summary:
The default value created for the connector is true and this is not always wanted.

Details:
Parsing of the execute_on_delegate options was added. I used the docker connector as reference.

This PR should be merged for this to work.

Related Issues:
This is the same as #1114 but for Artifactory.

PR Check triggers
  • Build: trigger build
  • Sub Category Field Check: trigger subcategoryfieldcheck
  • gitleaks: trigger gitleaks

@andresmanelli andresmanelli requested a review from ritek01 as a code owner August 26, 2025 15:34
Signed-off-by: Andrés MANELLI <[email protected]>
Signed-off-by: Andrés MANELLI <[email protected]>
@andresmanelli
Copy link
Contributor Author

@ritek01 I updated to the latest harness-sdk-go after the merge of harness/harness-go-sdk#684

@andresmanelli andresmanelli requested a review from ritek01 August 27, 2025 07:40
Signed-off-by: Andrés MANELLI <[email protected]>
@ritek01
Copy link
Collaborator

ritek01 commented Sep 1, 2025

Hey @andresmanelli , could you use the official release version of harness-go-sdk : https://pkg.go.dev/github.com/harness/[email protected]

@andresmanelli
Copy link
Contributor Author

@ritek01 done!

@ritek01 ritek01 requested a review from Copilot September 1, 2025 08:37
Copy link
Contributor

@Copilot 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 the execute_on_delegate configuration option to the Artifactory connector in Terraform, addressing a missing feature where users couldn't control delegation behavior.

Key changes:

  • Added execute_on_delegate schema field with boolean type and default value of false
  • Implemented parsing and setting of the execute_on_delegate option in build and read functions
  • Updated the harness-go-sdk dependency to version 0.5.14 to support the new field

Reviewed Changes

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

File Description
internal/service/cd_nextgen/connector/artifactRepositories/artifactory.go Added execute_on_delegate schema field and implementation for build/read operations
go.mod Updated harness-go-sdk dependency to v0.5.14 to support the new execute_on_delegate field

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

Copy link
Collaborator

@ritek01 ritek01 left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@ritek01 ritek01 merged commit bfbb393 into harness:main Sep 1, 2025
@andresmanelli andresmanelli deleted the feat/artifactory_execute_on_delegate branch September 1, 2025 15:37
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