Skip to content

Commit

Permalink
fix(cache): since we add new secret from modelreg with cache, we need…
Browse files Browse the repository at this point in the history
… to lose the cache for istio-system ns (#1223)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
  • Loading branch information
zdtsw authored Sep 5, 2024
1 parent 199f08f commit c49b501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func main() { //nolint:funlen,maintidx

func createSecretCacheConfig(platform cluster.Platform) map[string]cache.Config {
namespaceConfigs := map[string]cache.Config{
"istio-system": {FieldSelector: fields.Set{"metadata.name": "knative-serving-cert"}.AsSelector()}, // for expiration case
"istio-system": {}, // for both knative-serving-cert and default-modelregistry-cert,as an easy workarond, to watch all in this namespace for now
"openshift-ingress": {},
}
switch platform {
Expand Down

0 comments on commit c49b501

Please sign in to comment.