streamnative / pulsar-resources-operator

Apache License 2.0
34 stars 15 forks source link

feat: add the operator resync duration var #251

Closed ericsyh closed 2 months ago

ericsyh commented 2 months ago

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

Describe the modifications you've done.

Verifying this change

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

Documentation

Check the box below.

Need to update docs?

ericsyh commented 2 months ago

use https://github.com/kubernetes-sigs/controller-runtime/blob/release-0.14/pkg/cache/cache.go#L121 in controller-runtime