Skip to content

Add exec probe handler support to probes API#696

Open
zzzeek wants to merge 1 commit into
openstack-k8s-operators:mainfrom
zzzeek:OSPRH-30190
Open

Add exec probe handler support to probes API#696
zzzeek wants to merge 1 commit into
openstack-k8s-operators:mainfrom
zzzeek:OSPRH-30190

Conversation

@zzzeek
Copy link
Copy Markdown

@zzzeek zzzeek commented May 18, 2026

Add ProbeHandlerType (HTTP/Exec) and Command/Port/Scheme fields to ProbeConf. Introduce SetProbeConfV2 and CreateProbeSetV2 with a self-contained ProbeConf signature that switches on handler type. Export Merge for downstream use. Existing SetProbeConf/CreateProbeSet delegate to V2 for full backward compatibility.

References: OSPRH-30190

Comment thread modules/common/probes/probes.go Outdated
Comment thread modules/common/probes/probes.go
Comment thread modules/common/probes/types.go
@fmount fmount requested review from abays and stuggi May 19, 2026 12:55
@zzzeek zzzeek force-pushed the OSPRH-30190 branch 2 times, most recently from 35f2321 to f7a36c5 Compare May 19, 2026 19:44
Copy link
Copy Markdown
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

Looks like we're going to the right direction here. I think we're almost good but I have an additional question on code cleanup after I checked the existing operators using this feature. It can go on a follow up though, but would be good to address while we're designing the V2 here.

Comment thread modules/common/probes/probes.go Outdated
Add ProbeHandlerType (HTTP/Exec) and Command/Port/Scheme fields to
ProbeConf. Introduce SetProbeConfV2 and CreateProbeSetV2 with a
self-contained ProbeConf signature that switches on handler type.
Export Merge for downstream use. Existing SetProbeConf/CreateProbeSet
delegate to V2 for full backward compatibility.

References: OSPRH-30190

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@fmount
Copy link
Copy Markdown
Contributor

fmount commented May 25, 2026

/lgtm

@fmount
Copy link
Copy Markdown
Contributor

fmount commented May 25, 2026

@zzzeek I would have renamed SetProbeConfV2 to SetProbeConf in the last commit but this is really irrelevant as it represents a hidden implementation detail. +1 from me as this extension is backward compatible with the previous version, and we do not need to rush any change in the operators that adopted this interface already.

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