@@ -32,7 +32,7 @@ const (
32
32
webhookCatalogName = "webhook-operator-catalog"
33
33
webhookOperatorPackageName = "webhook-operator"
34
34
webhookOperatorCRDName = "webhooktests.webhook.operators.coreos.io"
35
- webhookServiceCert = "webhook-operator-webhook -service-cert"
35
+ webhookServiceCert = "webhook-operator-controller-manager -service-cert"
36
36
)
37
37
38
38
var _ = Describe ("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServiceCA][Skipped:Disconnected][Serial] OLMv1 operator with webhooks" ,
@@ -63,7 +63,7 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLMWebhookProviderOpenshiftServi
63
63
err = k8sClient .Get (ctx , client.ObjectKey {Name : webhookCatalogName }, catalog )
64
64
if apierrors .IsNotFound (err ) {
65
65
By (fmt .Sprintf ("creating the webhook-operator catalog with name %s" , webhookCatalogName ))
66
- catalog = helpers .NewClusterCatalog (webhookCatalogName , "quay.io/operator-framework/webhook-operator-index:0.0.3 " )
66
+ catalog = helpers .NewClusterCatalog (webhookCatalogName , "quay.io/operator-framework/webhook-operator-index:0.0.4 " )
67
67
err = k8sClient .Create (ctx , catalog )
68
68
Expect (err ).ToNot (HaveOccurred ())
69
69
@@ -286,7 +286,7 @@ func setupWebhookOperator(ctx SpecContext, k8sClient client.Client, webhookOpera
286
286
helpers .ExpectClusterRoleBindingExists (ctx , operatorClusterRoleBindingName )
287
287
288
288
ceName := webhookOperatorInstallNamespace
289
- ce := helpers .NewClusterExtensionObject ("webhook-operator" , "0.0.1 " , ceName , saName , webhookOperatorInstallNamespace )
289
+ ce := helpers .NewClusterExtensionObject ("webhook-operator" , "0.0.4 " , ceName , saName , webhookOperatorInstallNamespace )
290
290
ce .Spec .Source .Catalog .Selector = & metav1.LabelSelector {
291
291
MatchLabels : map [string ]string {
292
292
"olm.operatorframework.io/metadata.name" : webhookCatalogName ,
@@ -299,7 +299,7 @@ func setupWebhookOperator(ctx SpecContext, k8sClient client.Client, webhookOpera
299
299
helpers .ExpectClusterExtensionToBeInstalled (ctx , ceName )
300
300
301
301
By ("waiting for the webhook operator's service to be ready" )
302
- serviceName := "webhook-operator-webhook -service" // Standard name for the service created by the operator
302
+ serviceName := "webhook-operator-controller-manager -service" // Standard name for the service created by the operator
303
303
Eventually (func (g Gomega ) {
304
304
svc := & corev1.Service {}
305
305
err := k8sClient .Get (ctx , client.ObjectKey {Name : serviceName , Namespace : webhookOperatorInstallNamespace }, svc )
@@ -309,19 +309,18 @@ func setupWebhookOperator(ctx SpecContext, k8sClient client.Client, webhookOpera
309
309
}).WithTimeout (1 * time .Minute ).WithPolling (5 * time .Second ).Should (Succeed (), "webhook service did not become ready within timeout" )
310
310
311
311
By ("waiting for the webhook operator's service certificate secret to exist and be populated" )
312
- certificateSecretName := "webhook-operator-webhook-service-cert" // Fixed to use the static name
313
312
Eventually (func (g Gomega ) {
314
313
secret := & corev1.Secret {}
315
314
// Force bypassing the client cache for this Get operation
316
- err := k8sClient .Get (ctx , client.ObjectKey {Name : certificateSecretName , Namespace : webhookOperatorInstallNamespace }, secret ) // Removed client.WithCacheDisabled
315
+ err := k8sClient .Get (ctx , client.ObjectKey {Name : webhookServiceCert , Namespace : webhookOperatorInstallNamespace }, secret ) // Removed client.WithCacheDisabled
317
316
318
317
if apierrors .IsNotFound (err ) {
319
- GinkgoLogr .Info (fmt .Sprintf ("Secret %s/%s not found yet (still polling)" , webhookOperatorInstallNamespace , certificateSecretName ))
318
+ GinkgoLogr .Info (fmt .Sprintf ("Secret %s/%s not found yet (still polling)" , webhookOperatorInstallNamespace , webhookServiceCert ))
320
319
return // Keep polling if not found
321
320
}
322
321
323
322
g .Expect (err ).ToNot (HaveOccurred (), fmt .Sprintf ("failed to get webhook service certificate secret %s/%s: %v" ,
324
- webhookOperatorInstallNamespace , certificateSecretName , err ))
323
+ webhookOperatorInstallNamespace , webhookServiceCert , err ))
325
324
g .Expect (secret .Data ).ToNot (BeEmpty (), "expected webhook service certificate secret data to not be empty" )
326
325
}).WithTimeout (5 * time .Minute ).WithPolling (5 * time .Second ).Should (Succeed (), "webhook service certificate secret did not become available within timeout" )
327
326
0 commit comments