Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .govulncheck-ignore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,6 @@
govulncheck_ignore_list_expiry_date: "2026-11-13"

ignored_vulnerabilities:
- id: GO-2025-4125
module: github.com/rhobs/observability-operator
reason: |
The CVE is an incorrect-privilege-assignment bug in observability-operator's
own MonitorStack reconciler/admission logic. We never run that controller or
its webhooks; we only pull in this module transitively because
telemetry-operator/api embeds its MonitoringStackSpec type as an optional
field on MetricStorageSpec. Every reported call path here is generated
boilerplate (DeepCopy/DeepCopyInto/DeepCopyObject, scheme registration
init()) reached while copying/registering our own OpenStackLightspeed and
MetricStorage types — plain struct copying, not the vulnerable
privilege-assignment code path.
traces:
- >-
"#1: internal/controller/common.go:33:2: init calls
telemetry-operator/api/v1beta1.init, which calls
observability-operator/pkg/apis/monitoring/v1alpha1.init"
- >-
"#2: api/v1beta1/zz_generated.deepcopy.go:332:21:
OpenStackLightspeedSpec.DeepCopyInto calls runtime.RawExtension.DeepCopyInto,
which eventually calls MonitoringStack.DeepCopyObject /
MonitoringStackList.DeepCopyObject / ThanosQuerier.DeepCopyObject /
ThanosQuerierList.DeepCopyObject"
- >-
"#3: telemetry-operator/api/v1beta1/zz_generated.deepcopy.go:1457:22:
MetricStorage.DeepCopyObject calls MetricStorageSpec.DeepCopyInto, which
eventually calls MonitoringStackSpec.DeepCopyInto"

- id: GO-2026-5037
module: stdlib
reason: |
Expand Down
2 changes: 0 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ import (
lightspeedv1beta1 "github.com/openstack-k8s-operators/lightspeed-operator/api/v1beta1"
"github.com/openstack-k8s-operators/lightspeed-operator/internal/controller"
webhookv1beta1 "github.com/openstack-k8s-operators/lightspeed-operator/internal/webhook/v1beta1"
telemetryv1 "github.com/openstack-k8s-operators/telemetry-operator/api/v1beta1"
Comment thread
lpiwowar marked this conversation as resolved.
Resolved
// +kubebuilder:scaffold:imports
)

Expand Down Expand Up @@ -353,6 +352,5 @@ func getDynamicWatchCRDs() map[schema.GroupVersionKind]*atomic.Bool {
Version: "v1beta1",
Kind: "KeystoneApplicationCredential",
}: new(atomic.Bool),
telemetryv1.GroupVersion.WithKind(controller.MetricStorageKind): new(atomic.Bool),
}
}
8 changes: 0 additions & 8 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,6 @@ rules:
- list
- patch
- watch
- apiGroups:
- telemetry.openstack.org
resources:
- metricstorages
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
10 changes: 2 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ require (
// must be consistent within modules and service operators
replace github.com/openshift/api => github.com/openshift/api v0.0.0-20260710141509-36dec0bfafe4

// Required to compile against telemetry-operator/api, see
// Required to compile against sigs.k8s.io/yaml v1.6.0, see
// https://github.com/openstack-k8s-operators/openstack-operator/blob/main/go.mod
// and https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/go.mod
replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20250627150254-e9823e99808e

require github.com/openstack-k8s-operators/telemetry-operator/api v0.6.1-0.20260922164233-1b4a134b90d7

require (
cel.dev/expr v0.25.2 // indirect
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
Expand Down Expand Up @@ -65,14 +62,11 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260917133014-aa9523bc1a12 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.22.0 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.65.0 // indirect
github.com/prometheus/procfs v0.16.1 // indirect
github.com/rhobs/obo-prometheus-operator/pkg/apis/monitoring v0.77.1-rhobs1 // indirect
github.com/rhobs/observability-operator v1.0.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/cobra v1.10.2 // indirect
github.com/spf13/pflag v1.0.9 // indirect
Expand Down Expand Up @@ -111,7 +105,7 @@ require (
k8s.io/apiserver v0.33.13 // indirect
k8s.io/component-base v0.33.13 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20250902184714-7fc278399c7f // indirect
k8s.io/kube-openapi v0.0.0-20250610211856-8b98d1ed966a // indirect
k8s.io/utils v0.0.0-20250820121507-0af2bda4dd1d // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.33.0 // indirect
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
Expand Down
12 changes: 2 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/emicklei/go-restful/v3 v3.12.2 h1:DhwDP0vY3k8ZzE0RunuJy8GhNpPL6zqLkDf9B/a0/xU=
github.com/emicklei/go-restful/v3 v3.12.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
github.com/evanphx/json-patch v5.9.11+incompatible h1:ixHHqfcGvxhWkniF1tWxBHA0yb4Z+d1UQi45df52xW8=
github.com/evanphx/json-patch v5.9.11+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls=
github.com/evanphx/json-patch v5.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
github.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU=
github.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
Expand Down Expand Up @@ -114,14 +114,10 @@ github.com/onsi/gomega v1.43.1 h1:vGIPFuYrIO6/0Z09s0I0QQQgFchiX4+tb1re3MScJYo=
github.com/onsi/gomega v1.43.1/go.mod h1:e/C2HwaZ1DhvjzXXuFhcR7hY7Sh9pl7MmoWKEjzwcdA=
github.com/openshift/api v0.0.0-20260710141509-36dec0bfafe4 h1:YVY7Mb0AdJBbNgC/Zz9R/ZwhixOmZNA8P+6ZPaDW/0M=
github.com/openshift/api v0.0.0-20260710141509-36dec0bfafe4/go.mod h1:SPLf21TYPipzCO67BURkCfK6dcIIxx0oNRVWaOyRcXM=
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260917133014-aa9523bc1a12 h1:GC1PKN7oByBHCaVFqHqqjVwMuMnzg7MyMw+OQDSxfCI=
github.com/openstack-k8s-operators/infra-operator/apis v0.6.1-0.20260917133014-aa9523bc1a12/go.mod h1:pOLcpxsrw4yLJQDEpB/O3iKQezxFdBtRkG3Vonvl/W8=
github.com/openstack-k8s-operators/lib-common/modules/common v0.6.1-0.20260911152322-92cbe8cb7d0a h1:P7xK+4r9slqJuHGpcRSswnd6JA2/ecwiu4QKi2UyhFQ=
github.com/openstack-k8s-operators/lib-common/modules/common v0.6.1-0.20260911152322-92cbe8cb7d0a/go.mod h1:HqF1PQbKmgDVsmSk+c9TGmusD4TrlV049qft+SLVTcI=
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.6.1-0.20260911152322-92cbe8cb7d0a h1:/yZkTvqovOcn6Ofp6E5FEQdhAXpEF8HRWgdH0ajo3qk=
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.6.1-0.20260911152322-92cbe8cb7d0a/go.mod h1:SIe+Z2sT90koldAkQnY7eLnHrg6EutLBsq3BZ2Iha8Y=
github.com/openstack-k8s-operators/telemetry-operator/api v0.6.1-0.20260922164233-1b4a134b90d7 h1:8CUq5VqXfJvnFNGk7/9p6ThE2wgtV+Hspv7w0gv7Ue4=
github.com/openstack-k8s-operators/telemetry-operator/api v0.6.1-0.20260922164233-1b4a134b90d7/go.mod h1:A54Jr84R/ghIu5luwWTLk9O3loUcrLrqseHBCa5BuuE=
github.com/operator-framework/api v0.33.0 h1:Tdu9doXz6Key2riIiP3/JPahHEgFBXAqyWQN4kOITS8=
github.com/operator-framework/api v0.33.0/go.mod h1:sEh1VqwQCJUj+l/rKNWPDEJdFNAbdTu8QcM+x+wdYYo=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand All @@ -137,10 +133,6 @@ github.com/prometheus/common v0.65.0 h1:QDwzd+G1twt//Kwj/Ww6E9FQq1iVMmODnILtW1t2
github.com/prometheus/common v0.65.0/go.mod h1:0gZns+BLRQ3V6NdaerOhMbwwRbNh9hkGINtQAsP5GS8=
github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg=
github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is=
github.com/rhobs/obo-prometheus-operator/pkg/apis/monitoring v0.77.1-rhobs1 h1:uahWdfwYHqAb28Y1WsltZsiFlIgjxI8HHQxgUdBgPYQ=
github.com/rhobs/obo-prometheus-operator/pkg/apis/monitoring v0.77.1-rhobs1/go.mod h1:I9jGubP/TOORi53RNCK7yPH5cP0TAyxzrNirBhHJtoM=
github.com/rhobs/observability-operator v1.0.0 h1:BqV9ZaIt7/52yJTw9xeSiQ1uo7O1A272AzgQms/uo7M=
github.com/rhobs/observability-operator v1.0.0/go.mod h1:OheVnMXdnGj+GPoVA3UDgsJfC2pXIKluLFe+5LJzxC0=
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
Expand Down
10 changes: 0 additions & 10 deletions internal/controller/assets/mcp_server_config.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ openstack:
allow_write: false
ca_cert: ./tls-ca-bundle.pem
insecure: false
{{- if .Prometheus }}
# RHOSO 18: metric-storage is not in the Keystone catalog, so point the
# observabilityclient at Aetos/Prometheus explicitly. Removed on RHOSO 19+.
prometheus:
host: {{ .Prometheus.Host }}
port: {{ .Prometheus.Port }}
{{- if .Prometheus.CACertPath }}
ca_cert: {{ .Prometheus.CACertPath }}
{{- end }}
{{- end }}

openshift:
enabled: {{ .OpenShiftEnabled }}
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func TestBuildMCPServerConfigMap_UsesDevRhosMCPConfig(t *testing.T) {
},
}

configMap, err := BuildMCPServerConfigMap(instance, false, nil)
configMap, err := BuildMCPServerConfigMap(instance, false)
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
Expand Down
11 changes: 0 additions & 11 deletions internal/controller/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,6 @@ const (

// ---------------------------------------------------------------------------

// -- Telemetry / Metric Storage ---------------------------------------------

// MetricStorageKind is the Kind of the telemetry MetricStorage CR. The Group
// and Version come from telemetryv1.GroupVersion (imported from
// telemetry-operator/api), and the well-known name/port come from
// telemetryv1.DefaultServiceName/DefaultPrometheusPort (telemetry_consts.go)
// so they can't drift from the source of truth.
MetricStorageKind = "MetricStorage"

// ---------------------------------------------------------------------------

// -- Keystone Application Credential ----------------------------------------

KeystoneApplicationCredentialGroup = "keystone.openstack.org"
Expand Down
95 changes: 10 additions & 85 deletions internal/controller/mcp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ import (
common_secret "github.com/openstack-k8s-operators/lib-common/modules/common/secret"
openstack_lib "github.com/openstack-k8s-operators/lib-common/modules/openstack"
apiv1beta1 "github.com/openstack-k8s-operators/lightspeed-operator/api/v1beta1"
telemetryv1 "github.com/openstack-k8s-operators/telemetry-operator/api/v1beta1"
corev1 "k8s.io/api/core/v1"
k8s_errors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
uns "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -77,22 +75,6 @@ var mcpServerConfigTmpl = template.Must(template.New("mcp-config").Parse(mcpServ
type mcpServerConfigParams struct {
OpenStackEnabled bool
OpenShiftEnabled bool
// Prometheus is non-nil when a telemetry MetricStorage exists and the MCP
// server should be told how to reach Aetos/Prometheus explicitly (RHOSO 18,
// where metric-storage is not in the Keystone catalog).
Prometheus *prometheusParams
}

// prometheusParams holds the Aetos/Prometheus (metric-storage) connection
// details rendered into the MCP server config. Needed on RHOSO 18, where the
// metric-storage service is not registered in the Keystone catalog and so the
// observabilityclient cannot auto-discover it. On RHOSO 19+ the client
// discovers the endpoint from Keystone and this is no longer set.
type prometheusParams struct {
Host string
Port int
// CACertPath is set only when Prometheus TLS is enabled; empty otherwise.
CACertPath string
}

// deepMerge recursively merges override into base. When both sides have a map
Expand All @@ -117,12 +99,11 @@ func deepMerge(base, override map[string]interface{}) map[string]interface{} {
// buildMCPServerConfigData renders the MCP server config template and, when
// rhosMCP is provided, deep-merges the user config on top. The
// openstack.enabled and openshift.enabled flags are always enforced.
func buildMCPServerConfigData(openStackReady bool, rhosMCP string, prometheus *prometheusParams) (string, error) {
func buildMCPServerConfigData(openStackReady bool, rhosMCP string) (string, error) {
var buf bytes.Buffer
err := mcpServerConfigTmpl.Execute(&buf, mcpServerConfigParams{
OpenStackEnabled: openStackReady,
OpenShiftEnabled: true,
Prometheus: prometheus,
})
if err != nil {
return "", fmt.Errorf("failed to render MCP server config template: %w", err)
Expand Down Expand Up @@ -169,14 +150,13 @@ func buildMCPServerConfigData(openStackReady bool, rhosMCP string, prometheus *p
func BuildMCPServerConfigMap(
instance *apiv1beta1.OpenStackLightspeed,
openStackReady bool,
prometheus *prometheusParams,
) (corev1.ConfigMap, error) {
devConfig, _ := instance.ParseDevConfig()
rhosMCPConfigYAML := ""
if devConfig.RhosMCP != nil {
rhosMCPConfigYAML = devConfig.RhosMCP.Config
}
configData, err := buildMCPServerConfigData(openStackReady, rhosMCPConfigYAML, prometheus)
configData, err := buildMCPServerConfigData(openStackReady, rhosMCPConfigYAML)
if err != nil {
return corev1.ConfigMap{}, err
}
Expand Down Expand Up @@ -251,7 +231,7 @@ func (r *OpenStackLightspeedReconciler) ReconcileMCPServer(

if !crdReady {
helper.GetLogger().Info("OpenStackControlPlane CRD not available, deploying MCP server without OpenStack resources")
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false, nil)
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false)
}

// The watch is registered, but the CRD may have been removed since.
Expand All @@ -261,7 +241,7 @@ func (r *OpenStackLightspeedReconciler) ReconcileMCPServer(
}
if !crdEstablished {
helper.GetLogger().Info("OpenStackControlPlane CRD was removed, deploying MCP server without OpenStack resources")
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false, nil)
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false)
}

openStackControlPlaneList, err := r.listOpenStackControlPlanes(ctx, helper)
Expand All @@ -272,7 +252,7 @@ func (r *OpenStackLightspeedReconciler) ReconcileMCPServer(
switch l := len(openStackControlPlaneList.Items); l {
case 0:
helper.GetLogger().Info("No OpenStackControlPlane found, deploying MCP server without OpenStack resources")
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false, nil)
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false)

case 1:
oscp := &openStackControlPlaneList.Items[0]
Expand Down Expand Up @@ -800,14 +780,14 @@ func (r *OpenStackLightspeedReconciler) reconcileMCPServerWithOpenStack(
}
if !fieldsReady {
log.Info("OpenStackControlPlane fields not ready, deploying MCP without OpenStack")
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false, nil)
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false)
}

caPEM, err := readCABundle(ctx, helper, oscp)
if err != nil {
if k8s_errors.IsNotFound(err) {
log.Info("CA bundle not found, deploying MCP without OpenStack")
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false, nil)
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false)
}
return false, err
}
Expand Down Expand Up @@ -844,7 +824,7 @@ func (r *OpenStackLightspeedReconciler) reconcileMCPServerWithOpenStack(
condition.SeverityInfo,
apiv1beta1.OpenStackLightspeedMCPServerWaitingAC,
))
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false, nil)
return false, r.reconcileMCPServerDeploy(ctx, helper, instance, false)
}

if err := copyCABundle(ctx, helper, instance, oscp); err != nil {
Expand All @@ -855,75 +835,20 @@ func (r *OpenStackLightspeedReconciler) reconcileMCPServerWithOpenStack(
return false, err
}

// RHOSO 18: metric-storage is not in the Keystone catalog, so the MCP
// server can't auto-discover Aetos/Prometheus. When a MetricStorage exists
// in the OSCP namespace, pass its connection details through so metric
// commands work; otherwise leave it unset so the MCP server reports a clear
// "metric-storage not configured" error instead of a discovery failure.
prometheus, err := r.detectPrometheusConfig(ctx, helper, oscpNS)
if err != nil {
return false, err
}

if err := r.reconcileMCPServerDeploy(ctx, helper, instance, true, prometheus); err != nil {
if err := r.reconcileMCPServerDeploy(ctx, helper, instance, true); err != nil {
return false, err
}

log.Info("MCP server reconciled with application credentials")
return true, nil
}

// detectPrometheusConfig returns the Aetos/Prometheus (metric-storage)
// connection params for the MCP server when a telemetry MetricStorage exists in
// the OSCP namespace. It returns (nil, nil) when metric-storage — or the
// telemetry CRD itself — is not present, so nothing is configured and the MCP
// server can surface a clear error rather than point at a non-existent host.
func (r *OpenStackLightspeedReconciler) detectPrometheusConfig(
ctx context.Context,
helper *common_helper.Helper,
oscpNamespace string,
) (*prometheusParams, error) {
rawClient, err := getRawClient(helper)
if err != nil {
return nil, fmt.Errorf("failed to get raw client for MetricStorage lookup: %w", err)
}

ms := &uns.Unstructured{}
ms.SetGroupVersionKind(telemetryv1.GroupVersion.WithKind(MetricStorageKind))
err = rawClient.Get(ctx, types.NamespacedName{
Name: telemetryv1.DefaultServiceName,
Namespace: oscpNamespace,
}, ms)
if err != nil {
// MetricStorage CR absent, or telemetry CRD not installed at all.
if k8s_errors.IsNotFound(err) || meta.IsNoMatchError(err) {
return nil, nil
}
return nil, fmt.Errorf("failed to check for MetricStorage: %w", err)
}

params := &prometheusParams{
Host: fmt.Sprintf("%s-prometheus.%s.svc", telemetryv1.DefaultServiceName, oscpNamespace),
Port: telemetryv1.DefaultPrometheusPort,
}

// Prometheus TLS is enabled when spec.prometheusTls.secretName is set
// (lib-common tls.SimpleService.Enabled()). The CA bundle is already mounted
// at ./tls-ca-bundle.pem (the sidecar's working directory is /app).
if secretName, _, _ := uns.NestedString(ms.Object, "spec", "prometheusTls", "secretName"); secretName != "" {
params.CACertPath = "./tls-ca-bundle.pem"
}

return params, nil
}

// reconcileMCPServerDeploy ensures the MCP server ConfigMap exists.
func (r *OpenStackLightspeedReconciler) reconcileMCPServerDeploy(
ctx context.Context,
helper *common_helper.Helper,
instance *apiv1beta1.OpenStackLightspeed,
openStackReady bool,
prometheus *prometheusParams,
) error {
configYAMLConfigMap := corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -932,7 +857,7 @@ func (r *OpenStackLightspeedReconciler) reconcileMCPServerDeploy(
},
}
_, err := controllerutil.CreateOrPatch(ctx, helper.GetClient(), &configYAMLConfigMap, func() error {
built, err := BuildMCPServerConfigMap(instance, openStackReady, prometheus)
built, err := BuildMCPServerConfigMap(instance, openStackReady)
if err != nil {
return err
}
Expand Down
Loading
Loading