Repository navigation
feat(feast-operator): add metrics server certificate flags - #7243
Draft
antowaddle wants to merge 1 commit into
Draft
antowaddle wants to merge 1 commit into
antowaddle wants to merge 1 commit into
Conversation
The operator metrics server is HTTPS by default but always generates a self-signed certificate. Deployments that mount an externally managed serving certificate have no way to point the server at it. Add --metrics-cert-path, --metrics-cert-name, and --metrics-cert-key and wire them to metricsserver.Options.CertDir, CertName, and KeyName. The defaults preserve the current behavior: without a path, controller-runtime still generates self-signed certificates. The flag names match the Kubebuilder cert-manager scaffold and implement the existing TODO in cmd/main.go. Co-authored-by: Ugo Giordano <ugiordan@redhat.com> Signed-off-by: Anthony Coughlin <acoughli@redhat.com>
antowaddle
added a commit
to antowaddle/feast-module-operator
that referenced
this pull request
Nov 26, 2026
Harden the PR validation helpers: preserve raw Git paths, follow RESOLVE_IMAGE_REF for the expected image, require the exact upstream flag diagnostic, compare manifest subPaths and writability, preserve PipelineRun parameters, propagate chart-drift errors, scope local image tags per run, record registry ownership before start, and validate Kind node discovery and the builder Go pin. Also point the RHOAI expected-failure gate at feast-dev/feast#7243, which supersedes opendatahub-io/feast#312.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
The operator metrics server serves HTTPS by default, but it always generates a
self-signed certificate:
metricsserver.Optionsis built withoutCertDir, sothere is no way to point it at an externally managed serving certificate.
That is a problem for deployments that mount a certificate (for example,
OpenShift's service-ca or a cert-manager Secret) and run the manager with
readOnlyRootFilesystem: true, where generating a self-signed certificate under/tmpis not a good option.This adds three flags to the manager:
--metrics-cert-path: directory containing the metrics server certificate and key--metrics-cert-name: certificate filename (defaulttls.crt)--metrics-cert-key: key filename (defaulttls.key)and wires them to
metricsserver.Options.CertDir,CertName, andKeyName.The defaults preserve current behavior: when
--metrics-cert-pathis empty,controller-runtime continues to generate self-signed certificates. The flag
names match the Kubebuilder cert-manager scaffold and implement the existing
TODO in
cmd/main.go. Controller-runtime's certificate watcher handles rotationof a mounted Secret.
Which issue(s) this PR fixes:
No upstream issue. Downstream context: RHOAIENG-100779 and
opendatahub-io#312.
The midstream RHOAI overlay mounts a service-ca Secret at
/etc/metrics-certsand passes
--metrics-cert-path=/etc/metrics-certs. The releasedquay.io/feastdev/feast-operatorimage currently rejects the flag (flag provided but not defined: -metrics-cert-path), which forces a downstream imagepin. With this flag upstream, the overlay can use the release-managed upstream
image.
Checks
git commit -s)Testing Strategy
Manual verification:
go build ./cmd./manager --helplists-metrics-cert-key,-metrics-cert-name, and-metrics-cert-pathserves HTTPS metrics from
/etc/metrics-certs,certwatcher_read_certificate_errors_totalstays 0, and an unauthenticatedrequest returns 401 over HTTPS.
Misc
This is a draft while I confirm the approach with the operator maintainers. The
full operator test suite is run by the
operator-prworkflow.Release note
Adds
--metrics-cert-path,--metrics-cert-name, and--metrics-cert-keysothe operator metrics server can use a mounted serving certificate.