Skip to content

Commit

Permalink
🐛 The operator failed to start without kafka resources (stolostron#869)
Browse files Browse the repository at this point in the history
* fix

Signed-off-by: myan <[email protected]>

* format

Signed-off-by: myan <[email protected]>

---------

Signed-off-by: myan <[email protected]>
  • Loading branch information
yanmxa authored Apr 2, 2024
1 parent 2e5b9df commit cbef812
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,6 @@ func initCache(config *rest.Config, cacheOpts cache.Options) (cache.Cache, error
Label: labelSelector,
},
&subv1alpha1.Subscription{}: {},
&kafkav1beta2.Kafka{}: {
Field: fields.OneTermEqualSelector(namespacePath, utils.GetDefaultNamespace()),
},
&kafkav1beta2.KafkaTopic{}: {
Field: fields.OneTermEqualSelector(namespacePath, utils.GetDefaultNamespace()),
},
&kafkav1beta2.KafkaUser{}: {
Field: fields.OneTermEqualSelector(namespacePath, utils.GetDefaultNamespace()),
},
&corev1.PersistentVolumeClaim{}: {
Field: fields.OneTermEqualSelector(namespacePath, utils.GetDefaultNamespace()),
},
Expand Down

0 comments on commit cbef812

Please sign in to comment.