From 0fa354133c3e20539dfd75919f8ae5b3647bcb8f Mon Sep 17 00:00:00 2001 From: nasark Date: Tue, 26 Sep 2023 17:03:49 -0400 Subject: [PATCH] replace cr type with generic interface --- .../api/v1alpha1/helpers/miq-components/utils/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manageiq-operator/api/v1alpha1/helpers/miq-components/utils/util.go b/manageiq-operator/api/v1alpha1/helpers/miq-components/utils/util.go index 20ccdd966..8472974f8 100644 --- a/manageiq-operator/api/v1alpha1/helpers/miq-components/utils/util.go +++ b/manageiq-operator/api/v1alpha1/helpers/miq-components/utils/util.go @@ -93,7 +93,7 @@ func addAnnotations(annotations map[string]string, meta *metav1.ObjectMeta) { } } -func InternalCertificatesSecret(cr *miqv1alpha1.ManageIQ, client client.Client) *corev1.Secret { +func InternalCertificatesSecret(cr interface{}, client client.Client) *corev1.Secret { name := cr.Spec.InternalCertificatesSecret secretKey := types.NamespacedName{Namespace: cr.Namespace, Name: name}