-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
2.14.0 GA
-
None
-
False
-
-
False
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
-
Steps to reproduce:
- create backend with metrics and related mapping rules, via CR
- remove metrics from CR
- delete CR
- the backend object in 3scale is not deleted
I think backend object in 3scale is not deleted because there is not 3scale backend ID in the CR.
Example of CR where the 3scale backend object already exists but it is not deleted when backend CR is deleted:
apiVersion: capabilities.3scale.net/v1beta1
kind: Backend
metadata:
...
finalizers:
- backend.capabilities.3scale.net/finalizer
generation: 11
....
name: testbackendwbxez3y35ys
namespace: 3scale-0116-dev1
...
spec:
description: '111'
mappingRules:
- httpMethod: GET
increment: 1
metricMethodRef: testmetric983lwb3p3co
pattern: /anything/search
- httpMethod: GET
increment: 1
metricMethodRef: testmetric983lwb3p3co
pattern: '/anything/{id}'
metrics:
hits:
description: Number of API hits
friendlyName: Hits
unit: hit
name: testbackendwbxez3y35ys
privateBaseURL: 'http://www.httpbin.org:80'
providerAccountRef:
name: threescale-provider-account-21471
systemName: testbackendwbxez3y35ys
status:
conditions:
- lastTransitionTime: '2023-06-08T09:23:36Z'
message: >-
[spec.mappingRules[0]: Invalid value: "testmetric983lwb3p3co":
mappingrule does not have valid metric or method reference.,
spec.mappingRules[1]: Invalid value: "testmetric983lwb3p3co":
mappingrule does not have valid metric or method reference.]
status: 'True'
type: Failed
- lastTransitionTime: '2023-06-08T09:23:36Z'
message: >-
[spec.mappingRules[0]: Invalid value: "testmetric983lwb3p3co":
mappingrule does not have valid metric or method reference.,
spec.mappingRules[1]: Invalid value: "testmetric983lwb3p3co":
mappingrule does not have valid metric or method reference.]
status: 'True'
type: Invalid
- lastTransitionTime: '2023-06-08T09:23:36Z'
status: 'False'
type: Synced
observedGeneration: 11