Skip to content

feat(fleet): support registryAliases#42045

Open
k0da wants to merge 4 commits intorenovatebot:mainfrom
AbsaOSS:fleet-alias
Open

feat(fleet): support registryAliases#42045
k0da wants to merge 4 commits intorenovatebot:mainfrom
AbsaOSS:fleet-alias

Conversation

@k0da
Copy link

@k0da k0da commented Mar 21, 2026

Support registry aliases for pull through internal regitry case

Changes

This implements registryAliases info fleet manager. For oci and http based helm repos

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository:

@github-actions github-actions bot requested a review from viceice March 21, 2026 22:56
Comment on lines +94 to +97
if (!doc.repo) {
dep.skipReason = 'placeholder-url';
return dep;
}
Copy link
Member

Choose a reason for hiding this comment

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

check is already done above

Copy link
Author

Choose a reason for hiding this comment

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

removed

}

const alias = config.registryAliases?.[doc.repo];
if (doc.repo && alias) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (doc.repo && alias) {
if (alias) {

repo is never undefined here

Copy link
Author

Choose a reason for hiding this comment

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

adressed

Copy link
Member

Choose a reason for hiding this comment

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

inline to test and use codeBlock

Copy link
Author

Choose a reason for hiding this comment

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

Moved content inline

describe('extractPackageFile()', () => {
it('should return null if empty content', () => {
const result = extractPackageFile('', 'fleet.yaml');
const result = extractPackageFile('', 'fleet.yaml', noConfig);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const result = extractPackageFile('', 'fleet.yaml', noConfig);
const result = extractPackageFile('', 'fleet.yaml', {});

should work to and simplifies tests

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for suggestion

k0da added 3 commits March 22, 2026 16:23
Support registry aliases for pull through internal regitry case

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
Signed-off-by: Dinar Valeev <k0da@opensuse.org>
Signed-off-by: Dinar Valeev <k0da@opensuse.org>
@k0da k0da requested a review from viceice March 22, 2026 15:25
@k0da
Copy link
Author

k0da commented Mar 22, 2026

@viceice Hi, thanks for review. I've addresses all review comments. Could you please review again.

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
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