Skip to content

OCPBUGS-79676: Fix hardware and ptp profile association#187

Merged
lack merged 1 commit intok8snetworkplumbingwg:mainfrom
vitus133:main
Apr 8, 2026
Merged

OCPBUGS-79676: Fix hardware and ptp profile association#187
lack merged 1 commit intok8snetworkplumbingwg:mainfrom
vitus133:main

Conversation

@vitus133
Copy link
Copy Markdown
Collaborator

Align hardware config - ptp config association logic with the new naming scheme, where profile names are prefixed with resource name sepaated by "_".

/cc @nocturnalastro

Align hardware config - ptp config association logic with the new naming
scheme, where profile names are prefixed with resource name sepaated by
"_".

Signed-off-by: Vitaly Grinberg <vgrinber@redhat.com>
@github-actions
Copy link
Copy Markdown

Thanks for your PR,
Best regards.

@vitus133 vitus133 added bug Something isn't working ok-to-test ok to test labels Mar 31, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a helper function ptpProfileNameMatchesActive to handle PTP profile name matching, including support for suffix matching with a _ separator. This logic is integrated into calculateNodeHardwareConfigs and checkIfChangedConfigsAffectActiveProfiles, with the latter also optimized by using a map for profile lookups. I have no feedback to provide.

Copy link
Copy Markdown
Collaborator

@nocturnalastro nocturnalastro left a comment

Choose a reason for hiding this comment

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

/lgtm

@lack lack merged commit 15a711e into k8snetworkplumbingwg:main Apr 8, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ok-to-test ok to test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants