Skip to content

feat(kubernetes): allow ignoring pull secrets#2315

Merged
Subserial merged 2 commits into
google:mainfrom
rohan-patnaik:fix-ignore-pull-secrets
Jun 2, 2026
Merged

feat(kubernetes): allow ignoring pull secrets#2315
Subserial merged 2 commits into
google:mainfrom
rohan-patnaik:fix-ignore-pull-secrets

Conversation

@rohan-patnaik

Copy link
Copy Markdown
Contributor

Fixes #2089

Summary

This adds an IgnorePullSecrets option to the Kubernetes keychain.

Why

Some push-only workflows only want credentials from ServiceAccount mount secrets. Before this change, read-only credentials from explicit pull secrets or ServiceAccount imagePullSecrets could be loaded first and selected for the same registry, causing push auth to fail even when a write credential was available in .secrets.

Test plan

  • cd pkg/authn/kubernetes && go test ./...

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.02%. Comparing base (06ee049) to head (10968e0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2315   +/-   ##
=======================================
  Coverage   57.02%   57.02%           
=======================================
  Files         166      166           
  Lines       11398    11398           
=======================================
  Hits         6500     6500           
  Misses       4131     4131           
  Partials      767      767           

☔ View full report in Codecov by Sentry.
📢 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.

@Subserial
Subserial merged commit e4a7895 into google:main Jun 2, 2026
22 of 23 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.

ggcr: Allow option to ignore imagePullSecrets for push-only registry operations

3 participants