Skip to content

feat[namespace+topic]: support schema related policiesΒ #72

@ericsyh

Description

@ericsyh

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions