This repository was archived by the owner on Oct 11, 2024. It is now read-only.
TT-6389 - Recreate nonexistent ApiDefinitions during update calls#566
Merged
TT-6389 - Recreate nonexistent ApiDefinitions during update calls#566
Conversation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
…kTechnologies/tyk-operator into fix/TT-6389/recreate-nonexistent-apis
|
Kudos, SonarCloud Quality Gate passed! |
andrei-tyk
approved these changes
Feb 13, 2023
buger
pushed a commit
that referenced
this pull request
May 22, 2024
* Recreate nonexistent ApiDefinitions during update calls Signed-off-by: Burak Sekili <buraksekili@gmail.com> * Update CHANGELOG.md --------- Signed-off-by: Burak Sekili <buraksekili@gmail.com>
This file contains hidden or 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
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
If ApiDefinition exists in the k8s state but not in Tyk, Operator fails to reconcile since the
updatemethod fails to update nonexistent ApiDefinition objects. In order to solve this issue, add an additional API call to verify the existence of an ApiDefinition. if the ApiDefinition does not exist, first try to create it; otherwise, just update it.Related Issue
Whenever Operator tries to reconcile over nonexistent ApiDefinitions, the following errors are observed in Tyk Cloud (4.3.1):
Motivation and Context
Test Coverage For This Change
Screenshots (if appropriate)
Types of changes
Checklist
master!masterbranch (left side). Also, it would be best if you started your change off our latestmaster.make manifestsmake helmgofmt -s -w .go vet ./...golangci-lint run