Skip to content

Commit a7810c4

Browse files
author
Ali Syed
committed
Temporary
1 parent e339529 commit a7810c4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/operator/controller/gatewayapi-upgradeable/controller.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ func (r *reconciler) Reconcile(ctx context.Context, request reconcile.Request) (
104104

105105
// adminGateConditionExists checks if the admin gate condition exists based on both ConfigMap and CRDs
106106
func (r *reconciler) adminGateConditionExists(ctx context.Context) (bool, error) {
107-
adminGateConfigMap := &corev1.ConfigMap{}
108-
if err := r.cache.Get(ctx, operatorcontroller.AdminGatesConfigMapName(), adminGateConfigMap); err != nil {
109-
return false, fmt.Errorf("failed to get configmap %s: %w", operatorcontroller.AdminGatesConfigMapName(), err)
110-
}
111-
112-
// Check if the admin key exists and is set to the expected message
113-
if val, ok := adminGateConfigMap.Data[GatewayAPIAdminKey]; ok && val == GatewayAPIAdminMsg {
114-
return true, nil // Exists as expected
115-
}
116-
117107
// Check for the presence of Gateway API CRDs
118108
crds := &apiextensionsv1.CustomResourceDefinitionList{}
119109
if err := r.client.List(ctx, crds); err != nil {

0 commit comments

Comments
 (0)