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 (opendatahub-io#1223)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit c49b501)
  • Loading branch information
zdtsw authored and VaishnaviHire committed Sep 16, 2024
1 parent 7fa4119 commit 5c9ef70
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 @@ -314,7 +314,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 5c9ef70

Please sign in to comment.