Skip to content

Conversation

@olblak
Copy link
Member

@olblak olblak commented Dec 20, 2025

Fix #7030

Test

To test this pull request, you can run the following commands:

cd pkg/plugins/autodiscovery/dockercompose/ 
go test 

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
@olblak olblak marked this pull request as draft December 20, 2025 19:21
@olblak olblak added bug Something isn't working autodiscovery All things related to the autodiscovery feature labels Dec 20, 2025
olblak and others added 8 commits December 21, 2025 12:47
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
@olblak olblak requested a review from Copilot January 5, 2026 15:59
@olblak olblak marked this pull request as ready for review January 5, 2026 15:59
Copy link
Contributor

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 pull request adds authentication support (username, password, and token) to autodiscovery plugins to fix authentication issues with Docker registries and Helm chart repositories. The changes enable users to provide registry credentials that will be passed through to generated manifests for authenticating with private registries.

Key changes:

  • Added authentication fields (username, password, token) to manifest templates across all autodiscovery plugins
  • Enhanced documentation with examples showing how to configure authentication
  • Updated test cases to validate authentication credential propagation

Reviewed changes

Copilot reviewed 38 out of 38 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
pkg/plugins/autodiscovery/dockercompose/manifestTemplate.go Added registry authentication fields to Docker Compose manifest templates
pkg/plugins/autodiscovery/dockercompose/main.go Added authentication documentation and example to Spec
pkg/plugins/autodiscovery/dockercompose/compose.go Extracted and propagated registry credentials from source specs
pkg/plugins/autodiscovery/dockercompose/main_test.go Added test case validating token authentication for Docker registry
pkg/plugins/autodiscovery/dockerfile/manifestTemplate.go Added registry authentication fields to Dockerfile manifest templates
pkg/plugins/autodiscovery/dockerfile/main.go Added authentication documentation and example to Spec
pkg/plugins/autodiscovery/dockerfile/dockerfile.go Extracted and propagated registry credentials from source specs
pkg/plugins/autodiscovery/nomad/manifestTemplate.go Added registry authentication fields to Nomad manifest templates
pkg/plugins/autodiscovery/nomad/main.go Added authentication documentation and example to Spec
pkg/plugins/autodiscovery/nomad/dockerDriver.go Extracted and propagated registry credentials from source specs
pkg/plugins/autodiscovery/kubernetes/manifestTemplate.go Added registry authentication fields to Kubernetes manifest templates
pkg/plugins/autodiscovery/kubernetes/main.go Improved documentation formatting and added authentication documentation
pkg/plugins/autodiscovery/kubernetes/containers.go Extracted and propagated registry credentials from source specs
pkg/plugins/autodiscovery/ko/manifestTemplate.go Added registry authentication fields to Ko manifest templates
pkg/plugins/autodiscovery/ko/containers.go Extracted and propagated registry credentials from source specs
pkg/plugins/autodiscovery/helm/main.go Improved documentation formatting and added authentication documentation
pkg/plugins/autodiscovery/helm/containerManifest.go Added registry authentication fields to Helm container manifest templates
pkg/plugins/autodiscovery/helm/container.go Extracted and propagated registry credentials from source specs
pkg/plugins/autodiscovery/helm/dependencyManifest.go Added token authentication field to Helm dependency manifest templates
pkg/plugins/autodiscovery/helm/dependencies.go Added token extraction logic for Helm chart repository authentication
pkg/plugins/autodiscovery/helm/main_test.go Added test case validating token authentication for Helm chart repository
pkg/plugins/autodiscovery/helmfile/manifestTemplate.go Added token authentication field to Helmfile manifest templates
pkg/plugins/autodiscovery/helmfile/releases.go Added token extraction logic for Helm chart repository authentication
pkg/plugins/autodiscovery/helmfile/main_test.go Added test case validating token authentication for Helm chart repository
pkg/plugins/autodiscovery/flux/main.go Improved documentation formatting for version filter
pkg/plugins/autodiscovery/flux/ociRepositoryManifestTemplate.go Added registry authentication fields to Flux OCI repository manifest templates
pkg/plugins/autodiscovery/flux/ociRepositoryManifests.go Extracted and propagated registry credentials from source specs
pkg/plugins/autodiscovery/flux/helmreleaseManifestTemplate.go Added token authentication field to Flux Helm release manifest templates
pkg/plugins/autodiscovery/flux/helmreleaseManifests.go Added token extraction logic for Helm chart repository authentication
pkg/plugins/autodiscovery/flux/main_test.go Added test case validating token authentication for Helm chart repository
pkg/plugins/autodiscovery/fleet/manifestTemplate.go Added token authentication field to Fleet manifest templates
pkg/plugins/autodiscovery/fleet/main.go Added authentication documentation and auth struct for token support
pkg/plugins/autodiscovery/fleet/dependencies.go Added token extraction logic for Helm chart repository authentication
pkg/plugins/autodiscovery/fleet/main_test.go Added test case validating token authentication for Helm chart repository
pkg/plugins/autodiscovery/argocd/manifestTemplate.go Added token authentication field to ArgoCD manifest templates
pkg/plugins/autodiscovery/argocd/main.go Added authentication documentation and auth struct for token support
pkg/plugins/autodiscovery/argocd/application.go Added token extraction logic for Helm chart repository authentication
pkg/plugins/autodiscovery/argocd/main_test.go Added test case validating token authentication for Helm chart repository

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

@olblak olblak changed the title fix: autodiscovery docker compose auth fix: autodiscovery container/helm auth Jan 6, 2026
olblak added 2 commits January 6, 2026 09:13
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Copy link
Contributor

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

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


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

Signed-off-by: Olblak <me@olblak.com>
Copy link
Contributor

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

Copilot reviewed 38 out of 38 changed files in this pull request and generated 11 comments.


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

@olblak olblak enabled auto-merge (squash) January 6, 2026 09:27
@olblak olblak merged commit 69e37db into updatecli:main Jan 6, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autodiscovery All things related to the autodiscovery feature bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question: Example of auths configuration

1 participant