Skip to content

Commit

Permalink
Revert "fix: Only watch on kubewarden ns for namespaced resources"
Browse files Browse the repository at this point in the history
This reverts commit a7aa560.
  • Loading branch information
flavio committed Apr 12, 2023
1 parent 4c01c4a commit 7584def
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ func main() {
LeaderElection: enableLeaderElection,
LeaderElectionID: "a4ddbf36.kubewarden.io",
ClientDisableCacheFor: []client.Object{&corev1.ConfigMap{}, &appsv1.Deployment{}},
// Watch for kubewarden namespace on namespaced resources:
// Note: If a namespace is specified, controllers can still Watch for a
// cluster-scoped resource (in our case, ClusterAdmissionPolicies,
// webhooks, etc). For namespaced resources, the cache will only
// hold objects from the desired namespace.
Namespace: deploymentsNamespace,
},
setupLog,
environment.developmentMode,
Expand Down

0 comments on commit 7584def

Please sign in to comment.