Skip to content

Add PUBTOOLS_PULP3_* env var fallbacks [RHELDST-45461] - #412

Merged
crungehottman merged 2 commits into
release-engineering:masterfrom
crungehottman:duplicate-auth-creds
Sep 25, 2026
Merged

crungehottman merged 2 commits into
release-engineering:masterfrom
crungehottman:duplicate-auth-creds

Conversation

@crungehottman

@crungehottman crungehottman commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Add environment variable fallbacks for --pulp3-url (PUBTOOLS_PULP3_URL), --domain (PUBTOOLS_PULP3_DOMAIN), and --pulp3-user (PUBTOOLS_PULP3_USER) in Pulp3ClientService, and update existing PULP3_PASSWORD env var pattern to use a PUBTOOLS_PULP3_ prefix (as opposed to the generic PULP3 variant).

This allows the Konflux Tekton task to configure Hosted Pulp credentials entirely via env vars. These env vars are also supported by pushsource's KonfluxSource.

The pubtools-pulp-push command no longer needs --pulp3-url, --domain, or --pulp3-user CLI args. Though, when provided, CLI args still take precedence over env vars.

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 9e9da093-b3e9-491e-ae1e-222808b7f967


Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.81%. Comparing base (cfb8407) to head (d779b49).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #412   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          56       56           
  Lines        3224     3228    +4     
=======================================
+ Hits         3218     3222    +4     
  Misses          6        6           
Flag Coverage Δ
unit-tests 99.81% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

rbikar
rbikar previously approved these changes Sep 24, 2026

@rbikar rbikar left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, though naming of env vars feels a bit generic and theoretically may get mixed up with with another env vars.

I believe adding at least PUBTOOLS_ prefix would be fine.

In another PR for pushsource release-engineering/pushsource#720 we can support both:

  • PUSHSOURCE_KONFLUX_PULP_URL
  • PUBTOOLS_PULP3_URL

Add environment variable fallbacks for `--pulp3-url`
(`PUBTOOLS_PULP3_URL`), `--domain` (`PUBTOOLS_PULP3_DOMAIN`), and
`--pulp3-user` (`PUBTOOLS_PULP3_USER`) in `Pulp3ClientService`, and
update existing `PULP3_PASSWORD` env var pattern to use a
`PUBTOOLS_PULP3_` prefix (as opposed to the generic `PULP3` variant).

This allows the Konflux Tekton task to configure Hosted Pulp
credentials entirely via env vars. These env vars are also supported
by pushsource's KonfluxSource.

The pubtools-pulp-push command no longer needs `--pulp3-url`,
`--domain`, or `--pulp3-user` CLI args. Though, when provided, CLI
args still take precedence over env vars.
@crungehottman crungehottman changed the title Add PULP3_* env var fallbacks [RHELDST-45461] Add PUBTOOLS_PULP3_* env var fallbacks [RHELDST-45461] Sep 24, 2026
@crungehottman

Copy link
Copy Markdown
Member Author

lgtm, though naming of env vars feels a bit generic and theoretically may get mixed up with with another env vars.

I believe adding at least PUBTOOLS_ prefix would be fine.

In another PR for pushsource release-engineering/pushsource#720 we can support both:

* PUSHSOURCE_KONFLUX_PULP_URL

* PUBTOOLS_PULP3_URL

+1, agreed. Done!

@crungehottman
crungehottman merged commit 326da25 into release-engineering:master Sep 25, 2026
10 checks passed
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