Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry for reconcile error #232

Merged
merged 10 commits into from
Aug 21, 2024
Merged

Add retry for reconcile error #232

merged 10 commits into from
Aug 21, 2024

Conversation

labuladong
Copy link
Member

@labuladong labuladong commented Aug 14, 2024

Operator will only trigger reconciliation when there are k8s events. But for some temporary errors, it's better to have an exponential backoff policy.

@labuladong labuladong requested review from a team as code owners August 14, 2024 07:39
Copy link
Contributor

@labuladong:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions github-actions bot added the doc-info-missing This pr needs to mark a document option in description label Aug 14, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license-eye has totally checked 259 files.

Valid Invalid Ignored Fixed
176 5 78 0
Click to see the invalid file list
  • pkg/utils/event_source.go
  • pkg/utils/event_source_test.go
  • pkg/utils/retry.go
  • pkg/utils/retry_test.go
  • pkg/utils/suit_test.go

pkg/utils/event_source.go Show resolved Hide resolved
pkg/utils/event_source_test.go Show resolved Hide resolved
pkg/utils/retry.go Show resolved Hide resolved
pkg/utils/retry_test.go Show resolved Hide resolved
pkg/utils/suit_test.go Show resolved Hide resolved
labuladong and others added 5 commits August 14, 2024 15:40
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license-eye has totally checked 259 files.

Valid Invalid Ignored Fixed
180 1 78 0
Click to see the invalid file list
  • api/v1alpha1/zz_generated.deepcopy.go

api/v1alpha1/zz_generated.deepcopy.go Outdated Show resolved Hide resolved
labuladong and others added 2 commits August 14, 2024 16:53
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@labuladong labuladong force-pushed the donglai/improve/add-retry branch from f8b927d to 3a44039 Compare August 14, 2024 11:10
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license-eye has totally checked 261 files.

Valid Invalid Ignored Fixed
169 14 78 0
Click to see the invalid file list
  • api/v1alpha1/zz_generated.deepcopy.go
  • config/crd/bases/resource.streamnative.io_pulsarconnections.yaml
  • config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml
  • config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml
  • config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml
  • config/crd/bases/resource.streamnative.io_pulsarpackages.yaml
  • config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml
  • config/crd/bases/resource.streamnative.io_pulsarsinks.yaml
  • config/crd/bases/resource.streamnative.io_pulsarsources.yaml
  • config/crd/bases/resource.streamnative.io_pulsartenants.yaml
  • config/crd/bases/resource.streamnative.io_pulsartopics.yaml
  • config/rbac/role.yaml
  • go.work
  • go.work.sum

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license-eye has totally checked 261 files.

Valid Invalid Ignored Fixed
169 14 78 0
Click to see the invalid file list
  • api/v1alpha1/zz_generated.deepcopy.go
  • config/crd/bases/resource.streamnative.io_pulsarconnections.yaml
  • config/crd/bases/resource.streamnative.io_pulsarfunctions.yaml
  • config/crd/bases/resource.streamnative.io_pulsargeoreplications.yaml
  • config/crd/bases/resource.streamnative.io_pulsarnamespaces.yaml
  • config/crd/bases/resource.streamnative.io_pulsarpackages.yaml
  • config/crd/bases/resource.streamnative.io_pulsarpermissions.yaml
  • config/crd/bases/resource.streamnative.io_pulsarsinks.yaml
  • config/crd/bases/resource.streamnative.io_pulsarsources.yaml
  • config/crd/bases/resource.streamnative.io_pulsartenants.yaml
  • config/crd/bases/resource.streamnative.io_pulsartopics.yaml
  • config/rbac/role.yaml
  • go.work
  • go.work.sum

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
# Copyright 2024 StreamNative
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---

config/rbac/role.yaml Outdated Show resolved Hide resolved
@labuladong labuladong force-pushed the donglai/improve/add-retry branch from 3a44039 to d6b1c45 Compare August 14, 2024 11:18
@ericsyh ericsyh merged commit 35cec2f into main Aug 21, 2024
6 checks passed
@ericsyh ericsyh deleted the donglai/improve/add-retry branch August 21, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-info-missing This pr needs to mark a document option in description
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants