tyk-operator
tyk-operator copied to clipboard
[TT-12081] Enhance Ingress Reconciler to handle template-kind updates
trafficstars
Description
This PR enhances Ingress Reconciler reconciler logic to handle template-kind updates.
- When
tyk.io/template.kindannotation is updated from TykOasApiDefinition to ApiDefinition- Delete previously generated TykOasApiDefinitions and ConfigMaps
- Create classic APIs based on the ApiDefinition template
- When
tyk.io/template.kindannotation is updated from ApiDefinition to TykOasApiDefinition- Delete previously generated ApiDefinitions
- Create OAS APIs based on the TykOasApiDefinition template
Related Issue
https://tyktech.atlassian.net/browse/TT-12081
Motivation and Context
Test Coverage For This Change
Screenshots (if appropriate)
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- [ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If PRing from your fork, don't come from your
master! - [ ] Make sure you are making a pull request against our
masterbranch (left side). Also, it would be best if you started your change off our latestmaster. - [ ] Make sure you are updating CHANGELOG.md based on your changes.
- [ ] My change requires a change to the documentation.
- [ ] If you've changed APIs, describe what needs to be updated in the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] If you've changed API models, please update CRDs.
- [ ]
make manifests - [ ]
make helm
- [ ]
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] Check your code additions will not fail linting checks:
- [ ]
gofmt -s -w . - [ ]
go vet ./... - [ ]
golangci-lint run
- [ ]
Quality Gate passed
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
14.5% Coverage on New Code
6.0% Duplication on New Code