Skip to content

refactor(config): embed AuthConfig in ExportConfig#35

Merged
fmenesesg merged 1 commit into
mainfrom
refactor/embed-auth-in-export-config
Jun 11, 2026
Merged

refactor(config): embed AuthConfig in ExportConfig#35
fmenesesg merged 1 commit into
mainfrom
refactor/embed-auth-in-export-config

Conversation

@fmenesesg

Copy link
Copy Markdown
Collaborator

Proposed change

Compose ExportConfig from embedded AuthConfig (architecture review A3). Removes duplicated auth fields, ValidateAuth, and auth flag wiring — BindExportFlags now delegates to BindAuthFlags.

Type of change

  • New feature (refactor — no behavior change)

RHCL checklist

  • Tests added or updated (go test ./... or mvn test / npm test)
  • CI does not introduce -DskipTests without justification
  • No secrets in diff (tokens, kubeconfigs, OIDC secrets)
  • rhcl-ai docs updated if export/import contract changes
  • PR description and docs in English
  • Tested in local lab if applicable (seed → export → analyze)

Test plan

  • go test ./... — 122 tests pass
  • Coverage gate ≥80%

Changes

File Change
internal/config/config.go Embed AuthConfig; simplify loaders and flags
internal/config/config_test.go Update struct literals
internal/cli/cli_test.go Explicit AuthConfig in external-package literal

Closes #34

Made with Cursor

Remove duplicated auth fields, ValidateAuth, and flag binding from
export config by composing the shared AuthConfig type.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fmenesesg fmenesesg requested a review from pcastelo as a code owner June 11, 2026 20:52
@fmenesesg fmenesesg added area/tests Tests unitarios e integracion type:feature New feature or enhancement labels Jun 11, 2026
@fmenesesg fmenesesg merged commit 178c152 into main Jun 11, 2026
1 check passed
@fmenesesg fmenesesg deleted the refactor/embed-auth-in-export-config branch June 11, 2026 20:55
fmenesesg added a commit that referenced this pull request Jun 11, 2026
…-export-config

refactor(config): embed AuthConfig in ExportConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests Tests unitarios e integracion type:feature New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] Embed AuthConfig in ExportConfig

1 participant