Skip to content

Add TLS certificate for InstanceHA metrics endpoint#1932

Open
lmiccini wants to merge 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:add-instanceha-metrics-tls
Open

Add TLS certificate for InstanceHA metrics endpoint#1932
lmiccini wants to merge 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:add-instanceha-metrics-tls

Conversation

@lmiccini
Copy link
Copy Markdown
Contributor

Create a cert-manager Certificate for the InstanceHA metrics service when pod-level TLS is enabled. The certificate uses the internal issuer with wildcard hostnames for the namespace, following the same pattern as EnsureOVNMetricsCert. The resulting secret (cert-instanceha-metrics) is consumed by the infra-operator InstanceHA controller.

@openshift-ci openshift-ci Bot requested review from abays and slagle May 28, 2026 05:12
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

OpenStackControlPlane CRD Size Report

Metric Value
CRD JSON size 333227 bytes (325KB)
Base branch size 333227 bytes
Change +0.00%
Status yellow — growing
Threshold reference
Color Range Meaning
🟢 green < 300KB Comfortable
🟡 yellow 300–400KB Growing
🟠 orange 400–750KB Concerning
🔴 red > 750KB Approaching 1.5MB etcd limit (cut in half to allow space for update)

@lmiccini
Copy link
Copy Markdown
Contributor Author

/test openstack-operator-build-deploy-kuttl-4-18

Comment thread internal/openstack/instanceha.go Outdated
Copy link
Copy Markdown
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 28, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, lmiccini

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

@lmiccini
Copy link
Copy Markdown
Contributor Author

/test openstack-operator-build-deploy-kuttl-4-18

@lmiccini lmiccini force-pushed the add-instanceha-metrics-tls branch from 4d9373d to cd92131 Compare May 28, 2026 11:24
@openshift-ci openshift-ci Bot removed the lgtm label May 28, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 28, 2026

New changes are detected. LGTM label has been removed.

@lmiccini lmiccini force-pushed the add-instanceha-metrics-tls branch from cd92131 to e55ccde Compare May 28, 2026 12:20
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 28, 2026

@lmiccini: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/openstack-operator-build-deploy-kuttl-4-18 4d9373d link true /test openstack-operator-build-deploy-kuttl-4-18

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@lmiccini
Copy link
Copy Markdown
Contributor Author

/test functional

@lmiccini lmiccini force-pushed the add-instanceha-metrics-tls branch from e55ccde to e2c05f8 Compare May 28, 2026 13:13
err.Error()))
return ctrl.Result{}, err
}
instance.Status.Conditions.Set(condition.TrueCondition(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@lmiccini are these conditions initialized somewhere to Unknown? Maybe it doesn't matter as they're not part of the main condition pool.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no they are not, they're just cosmetic and set during reconcile to signal stuff is ready or not

Create a cert-manager Certificate for the InstanceHA metrics service
when pod-level TLS is enabled. The certificate uses the internal issuer
with wildcard hostnames for the namespace, following the same pattern
as EnsureOVNMetricsCert. The resulting secret (cert-instanceha-metrics)
is consumed by the infra-operator InstanceHA controller.

Also add the cert-instanceha-metrics secret to functional tests so
the reconciler does not block waiting for cert-manager in envtest.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lmiccini lmiccini force-pushed the add-instanceha-metrics-tls branch from e2c05f8 to c1d365d Compare May 28, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants