Three months ago I successfully created a AuthorizatioPolicy in the preview version (1.18) of the Istio Service Mesh into our AKS cluster. Yesterday, I made an attempt to modify the policy and received the following error:
Error from server: error when creating "jwtauth.yml": admission webhook "azure-service-mesh-ccp-validating-webhook.azmk8s.io" denied the request: unknown gvk: security.istio.io/v1, Kind=AuthorizationPolicy
I am unable to modify or delete the existing AuthorizationPolicy. I also can't add a new one.
Since the preview version is no longer supported I upgraded to v1.20 and get the same result.
I then installed Istio 1.21 in another AKS instance/subscription to confirm there wasn't something corrupted in the original instance and I get the same error.
Is anyone else experiencing this issue?
The definition of the policy I was attempting to delete/modify is below:
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: payment
spec:
selector:
matchLabels:
app: payment
action: ALLOW
rules:
- to:
- operation:
paths:
- /swagger*
- /v3/api-docs*
- /v1/payments