pulsar-resources-operator icon indicating copy to clipboard operation
pulsar-resources-operator copied to clipboard

feat[namespace+topic]: support schema related policies

Open ericsyh opened this issue 3 years ago • 1 comments

Namespace

apiVersion: resource.streamnative.io/v1alpha1
kind: PulsarNamespace
metadata:
  name: test-pulsar-namespace
  namespace: test
spec:
  name: test-tenant/testns
  connectionRef:
    name: test-pulsar-connection
  schemaCompatibilityStrategy
  isAllowAutoUpdateSchema
  schemaValidationEnforced
Policy Type Allowed values API doc
schemaCompatibilityStrategy string Full FullTransitive Forward ForwardTransitive Backward BackwardTransitive AlwaysCompatible AlwaysIncompatible https://pulsar.apache.org/admin-rest-api/#operation/setSchemaCompatibilityStrategy
isAllowAutoUpdateSchema bool true, false https://pulsar.apache.org/admin-rest-api/#operation/setIsAllowAutoUpdateSchema
schemaValidationEnforced bool true, false https://pulsar.apache.org/admin-rest-api/#operation/setSchemaValidationEnforced

Topic

apiVersion: resource.streamnative.io/v1alpha1
kind: PulsarTopic
metadata:
  name: "test-pulsar-topic123"
  namespace: test
spec:
  name: persistent://test-tenant/testns/topic123
  connectionRef:
    name: "test-pulsar-connection"
  schemaCompatibilityStrategy
  isAllowAutoUpdateSchema
  schemaValidationEnforced
Policy Type Allowed values API doc
schemaCompatibilityStrategy string Full FullTransitive Forward ForwardTransitive Backward BackwardTransitive AlwaysCompatible AlwaysIncompatible https://pulsar.apache.org/admin-rest-api/#operation/setSchemaCompatibilityStrategy
isAllowAutoUpdateSchema bool true, false https://pulsar.apache.org/admin-rest-api/#operation/setIsAllowAutoUpdateSchema
schemaValidationEnforced bool true, false https://pulsar.apache.org/admin-rest-api/#operation/setSchemaValidationEnforced

ericsyh avatar Dec 05 '22 06:12 ericsyh

Hello, why is not included this feature in the resource operator?

fabrizziocht avatar Feb 10 '25 15:02 fabrizziocht