This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
[TT-8822] Improve hash comparision in Reconciliation #625
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
…case of errors Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
18 tasks
andrei-tyk
reviewed
May 17, 2023
andrei-tyk
reviewed
May 17, 2023
andrei-tyk
reviewed
May 17, 2023
andrei-tyk
reviewed
May 17, 2023
…akes one argument Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
andrei-tyk
approved these changes
May 17, 2023
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Kudos, SonarCloud Quality Gate passed! |
buger
pushed a commit
that referenced
this pull request
May 22, 2024
* Improve hash comparision in Policy Controller Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Add retry for policy controller Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Wrap error prone functions with wait.For() to retrigger execution in case of errors Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Improve hasher of ApiDefinition Controller Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Add wait.For to tests Signed-off-by: Burak Sekili <buraksekili@gmail.com> * remove retry functions after creating a tyk resource Signed-off-by: Burak Sekili <buraksekili@gmail.com> * remove old tests Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Update calculateHash() function according to feedback - so, it only takes one argument Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Remove extra print statements Signed-off-by: Burak Sekili <buraksekili@gmail.com> * move errors to constats Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Resolve linter issues Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Move cuddled statemtn Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Resolve conflicts Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Remove duplicated assignment Signed-off-by: Burak Sekili <buraksekili@gmail.com> --------- Signed-off-by: Burak Sekili <buraksekili@gmail.com> Co-authored-by: Pranshu <104971506+singhpr@users.noreply.github.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR improves the current hash comparison used to determine whether to send PUT requests or not, in order to update a resource.
It adds 2 status fields to ApiDefinition and SecurityPolicy CRDs
latestTykSpecHash
which stores the hash of lastly fetched resource from TyklatestCRDSpecHash
which stores the hash of lastly reconciled CR.Related Issue
Motivation and Context
Test Coverage For This Change
Screenshots (if appropriate)
Types of changes
Checklist
master
!master
branch (left side). Also, it would be best if you started your change off our latestmaster
.make manifests
make helm
gofmt -s -w .
go vet ./...
golangci-lint run