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

Run reconcilation periodically #147

Merged
merged 19 commits into from
Dec 30, 2022
Merged

Conversation

barchw
Copy link
Contributor

@barchw barchw commented Dec 27, 2022

Description

Changes proposed in this pull request:

  • Run reconcilation periodically (set to 30 minutes)
  • If reconcilation reports conflict run the reconcilation faster
  • Don't re-reconcile ConfigMap

Related issue(s)

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 27, 2022
@kyma-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added area/api-gateway Issues or PRs related to api-gateway size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 27, 2022
@barchw
Copy link
Contributor Author

barchw commented Dec 27, 2022

/test all

@barchw
Copy link
Contributor Author

barchw commented Dec 27, 2022

/test pull-api-gateway-build

@kyma-bot kyma-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 27, 2022
@barchw
Copy link
Contributor Author

barchw commented Dec 27, 2022

/test pull-api-gateway-build

@barchw
Copy link
Contributor Author

barchw commented Dec 27, 2022

/test pull-api-gateway-build

@barchw barchw changed the title Requeue after ENV Run reconcilation periodically Dec 27, 2022
@barchw barchw marked this pull request as ready for review December 27, 2022 14:01
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 27, 2022
@barchw
Copy link
Contributor Author

barchw commented Dec 27, 2022

Fixes kyma-project/kyma#10146

@barchw barchw linked an issue Dec 27, 2022 that may be closed by this pull request
@barchw barchw changed the title Run reconcilation periodically [WIP] Run reconcilation periodically Dec 28, 2022
@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 28, 2022
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 28, 2022
@barchw barchw changed the title [WIP] Run reconcilation periodically Run reconcilation periodically Dec 28, 2022
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 28, 2022
@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 30, 2022
@kyma-bot kyma-bot merged commit b2d4b85 into kyma-project:main Dec 30, 2022
@barchw
Copy link
Contributor Author

barchw commented Dec 30, 2022

/cherrypick release-1.2

@barchw barchw deleted the reconcile-period branch December 30, 2022 08:31
barchw added a commit to barchw/api-gateway-1 that referenced this pull request Dec 30, 2022
* Requeue after ENV

* Don't requeue configMap

* Reconcile every time

* Requeue faster after error

* After fix

* Add nil check

* Don't run reconcilation again after delete

* Move code

* Print delete timestamp

* Negate deletion timestamp

* Print delete timestamp

* Print delete timestamp

* Don't requeue on delettion

* Validate on handler change

* Go fmt revert

* Add the problems

* Add the problems

* Switch cases

* Unit tests
kyma-bot pushed a commit that referenced this pull request Dec 30, 2022
* Run reconcilation periodically (#147)

* Requeue after ENV

* Don't requeue configMap

* Reconcile every time

* Requeue faster after error

* After fix

* Add nil check

* Don't run reconcilation again after delete

* Move code

* Print delete timestamp

* Negate deletion timestamp

* Print delete timestamp

* Print delete timestamp

* Don't requeue on delettion

* Validate on handler change

* Go fmt revert

* Add the problems

* Add the problems

* Switch cases

* Unit tests

* Add reconciliation duration parameter and periodic reconciliation test (#151)

* Update apirule_controller.go

* Update apirule_controller.go

* Update apirule_controller.go

* Reconcilation period setup

* Add test for reconcilation period

* Actually configure from params

* Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api-gateway Issues or PRs related to api-gateway lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

APIRule does not re-check conflicting virtualservices
3 participants