Policy validation error #636
Answered
by
ChunyiLyu
massimogallina
asked this question in
Q&A
-
Hi, This is the manifest that I am using: apiVersion: rabbitmq.com/v1beta1
kind: Policy
metadata:
name: telegraf-m1
labels:
helm.sh/chart: telegraf-0.1.2
app.kubernetes.io/name: telegraf
app.kubernetes.io/instance: telegraf-m1
app.kubernetes.io/version: "1.26.3-alpine"
app.kubernetes.io/managed-by: Helm
spec:
name: dih_data_rg270_modbus-policy
pattern: "dih_data_rg270_modbus"
applyTo: "queues"
vhost: "/"
priority: 0
definition:
x-max-length-bytes: 1000000000
x-max-age: "14D"
rabbitmqClusterReference:
name: rabbitmq
namespace: rabbitmq-system
---
apiVersion: rabbitmq.com/v1beta1
kind: Queue
metadata:
name: telegraf-m1
labels:
helm.sh/chart: telegraf-0.1.2
app.kubernetes.io/name: telegraf
app.kubernetes.io/instance: telegraf-m1
app.kubernetes.io/version: "1.26.3-alpine"
app.kubernetes.io/managed-by: Helm
spec:
name: dih_data_rg270_modbus
type: stream
autoDelete: false
durable: true
rabbitmqClusterReference:
name: rabbitmq
namespace: rabbitmq-system And I got the following log error from message operator:
I cannot understand what is the error. Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
ChunyiLyu
Jun 15, 2023
Replies: 1 comment 1 reply
-
For policies, you generally do not need the
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
massimogallina
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For policies, you generally do not need the
x-
prefix.x-
are used for setting queue arguments at queue declare. Could you please try