pulsar-resources-operator
pulsar-resources-operator copied to clipboard
feat[namespace+topic]: support schema related policies
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 |
Hello, why is not included this feature in the resource operator?