Skip to content

Dev/shanty/idetect 5161 remove centos support - #23

Open
shantyk wants to merge 7 commits into
masterfrom
dev/shanty/IDETECT-5161_remove_centos_support
Open

Dev/shanty/idetect 5161 remove centos support#23
shantyk wants to merge 7 commits into
masterfrom
dev/shanty/IDETECT-5161_remove_centos_support

Conversation

@shantyk

@shantyk shantyk commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Pull is downstream changes from:

@shantyk shantyk self-assigned this Jul 23, 2026
Comment thread build.gradle Outdated
@shantyk
shantyk marked this pull request as ready for review July 29, 2026 05:50
String correctImageInspectorOsName = response.getBody().trim();

// Safety net: CentOS-based inspection is no longer supported
if ("CENTOS".equalsIgnoreCase(correctImageInspectorOsName)) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we use static final constant here as we do for most of the cases when comparing strings?

if ("CENTOS".equalsIgnoreCase(correctImageInspectorOsName)) {
logger.warn("This image requires CentOS-based (rpm) inspection, which is no longer supported. " +
"rpm-based images (CentOS, RHEL, Fedora, Rocky Linux, AlmaLinux, etc.) are treated as unsupported. " +
"Upgrade the imageinspector service to a version that handles rpm-based images gracefully.");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure we want this line? It kind of implies that we could handle rpm images? I think all we can do is report we can't handle them so maybe just leave it with the previous message that they are unsupported?

@shantyk
shantyk changed the base branch from master to 12.0.z August 5, 2026 23:19
@shantyk
shantyk changed the base branch from 12.0.z to master August 10, 2026 18:58
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.

3 participants