Current Behavior
root@10-55-2-40:~/apisix-test/nginx# kubectl explain ApisixConsumer.spec.authParameter.jwtAuth.value.
GROUP: apisix.apache.org
KIND: ApisixConsumer
VERSION: v2
FIELD: value <Object>
DESCRIPTION:
ApisixConsumerJwtAuthValue defines the in-place configuration for jwt auth.
FIELDS:
algorithm <string>
<no description>
base64_secret <boolean>
<no description>
exp <integer>
<no description>
key <string> -required-
<no description>
lifetime_grace_period <integer>
<no description>
private_key <string> -required-
<no description>
public_key <string>
<no description>
secret <string>
<no description>
root@10-55-2-40:~/apisix-test/nginx# kubectl apply -f jwt.yaml
The ApisixConsumer "apisix-jwtauth" is invalid: spec.authParameter.jwtAuth.value.private_key: Required value
root@10-55-2-40:~/apisix-test/nginx# cat jwt.yaml
apiVersion: apisix.apache.org/v2
kind: ApisixConsumer
metadata:
name: apisix-jwtauth
spec:
ingressClassName: apisix
authParameter:
jwtAuth:
value:
key: jwt-key-hs256
secret: sunwenbo
algorithm: HS256
base64_secret: false
exp: 3600
lifetime_grace_period: 60
Expected Behavior
No response
Error Logs
No response
Steps to Reproduce
apiVersion: apisix.apache.org/v2
kind: ApisixConsumer
metadata:
name: apisix-jwtauth
spec:
ingressClassName: apisix
authParameter:
jwtAuth:
value:
key: jwt-key-hs256
secret: sunwenbo
algorithm: HS256
base64_secret: false
exp: 3600
lifetime_grace_period: 60
Environment
kubectl version
Client Version: v1.28.15
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.15
APisix 3.13
apisix ingerss controller 2.0.0