Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Remove support for InsecureRegistries in favor of registries.conf#9511

Merged
openshift-merge-bot[bot] merged 1 commit intocri-o:mainfrom
bitoku:deprecate-insecure-registries
Oct 16, 2025
Merged

Remove support for InsecureRegistries in favor of registries.conf#9511
openshift-merge-bot[bot] merged 1 commit intocri-o:mainfrom
bitoku:deprecate-insecure-registries

Conversation

@bitoku
Copy link
Contributor

@bitoku bitoku commented Oct 13, 2025

What type of PR is this?

/kind deprecation

What this PR does / why we need it:

This PR makes insecureRegistries no effective.

Which issue(s) this PR fixes:

part of #9278

Special notes for your reviewer:

I left the option for now.
Let me know if you think it's too early to make it ineffective, or if you think we can remove it completely right now.

Does this PR introduce a user-facing change?

Deprecated --insecure-registries option, and made it ineffective.

@bitoku bitoku requested a review from mrunalp as a code owner October 13, 2025 16:02
@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/deprecation dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Oct 13, 2025
@openshift-ci openshift-ci bot requested review from QiWang19 and hasan4791 October 13, 2025 16:03
@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 66.51%. Comparing base (8b80353) to head (93f9201).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9511      +/-   ##
==========================================
- Coverage   67.06%   66.51%   -0.56%     
==========================================
  Files         202      202              
  Lines       28247    28202      -45     
==========================================
- Hits        18944    18758     -186     
- Misses       7708     7846     +138     
- Partials     1595     1598       +3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

LGTM, just have a non blocking nit.

secure: false,
}
}
log.Warnf(ctx, "Insecure registries option is deprecated and no longer effective. Please use `insecure` in `registries.conf` instead.")
Copy link
Member

Choose a reason for hiding this comment

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

I think we should error here:

Suggested change
log.Warnf(ctx, "Insecure registries option is deprecated and no longer effective. Please use `insecure` in `registries.conf` instead.")
log.Errorf(ctx, "Insecure registries option is deprecated and no longer effective. Please use `insecure` in `registries.conf` instead.")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! done

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 14, 2025
@saschagrunert
Copy link
Member

Ah, linter CI is not happy:

  Error: internal/storage/image.go:74:2: field name is unused (unused)
  	name   string
  	^
  Error: internal/storage/image.go:75:2: field secure is unused (unused)
  	secure bool
  	^

/lgtm cancel

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 14, 2025
@bitoku bitoku force-pushed the deprecate-insecure-registries branch from ad17806 to 42548fc Compare October 15, 2025 12:01
@bitoku bitoku force-pushed the deprecate-insecure-registries branch from 42548fc to 93f9201 Compare October 15, 2025 12:02
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 15, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 15, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bitoku, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@saschagrunert
Copy link
Member

/override ci/prow/e2e-gcp-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 16, 2025

@saschagrunert: Overrode contexts on behalf of saschagrunert: ci/prow/e2e-gcp-ovn

Details

In response to this:

/override ci/prow/e2e-gcp-ovn

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 7cf0d84 into cri-o:main Oct 16, 2025
71 of 76 checks passed
@bitoku bitoku deleted the deprecate-insecure-registries branch February 16, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/deprecation lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants