Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-5463

[Operator] Webhook refuses to create CacheCR for same named caches in multiple clusters

XMLWordPrintable

      If there user creates cache-x in cluster-a and the same cache-x in cluster-b then webhook will prohibit creating creating Cache CR for cache-x in cluster-b as Cache CR with the spec.Name: cache-x already exists.

      2022-07-14T12:57:47.903Z ERROR Error encountered for event 'create-cache': unable to create Cache CR for cache 'name-collision': admission webhook "vcache.kb.io" denied the request: Cache.infinispan.org "name-collision-jv48f" is invalid: spec.name: Duplicate value: "Cache CR already exists with spec.Name 'name-collision'"
      github.com/infinispan/infinispan-operator/launcher/listener.New.func3.1
      /root/go/src/github.com/infinispan/infinispan-operator/launcher/listener/listener.go:140
      github.com/r3labs/sse/v2.(*Client).SubscribeWithContext.func1
      /root/go/src/github.com/infinispan/infinispan-operator/vendor/github.com/r3labs/sse/v2/client.go:91
      gopkg.in/cenkalti/backoff%2ev1.RetryNotify
      /root/go/src/github.com/infinispan/infinispan-operator/vendor/gopkg.in/cenkalti/backoff.v1/retry.go:37
      github.com/r3labs/sse/v2.(*Client).SubscribeWithContext
      /root/go/src/github.com/infinispan/infinispan-operator/vendor/github.com/r3labs/sse/v2/client.go:99
      github.com/r3labs/sse/v2.(*Client).SubscribeRawWithContext
      /root/go/src/github.com/infinispan/infinispan-operator/vendor/github.com/r3labs/sse/v2/client.go:231
      github.com/infinispan/infinispan-operator/launcher/listener.New.func3
      /root/go/src/github.com/infinispan/infinispan-operator/launcher/listener/listener.go:129
      

              remerson@redhat.com Ryan Emerson
              pdrobek@redhat.com Pavel Drobek (Inactive)
              Pavel Drobek Pavel Drobek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: