@@ -26,7 +26,7 @@ import (
2626// TopicAutoCreationConfig defines the configuration for automatic topic creation
2727type TopicAutoCreationConfig struct {
2828 // Allow specifies whether to allow automatic topic creation
29- Allow bool `json:"allow,omitempty "`
29+ Allow bool `json:"allow"`
3030
3131 // Type specifies the type of automatically created topics
3232 // +kubebuilder:validation:Enum=partitioned;non-partitioned
@@ -125,7 +125,7 @@ type InactiveTopicPolicies struct {
125125
126126 // DeleteWhileInactive specifies whether to delete topics while they are inactive
127127 // +optional
128- DeleteWhileInactive * bool `json:"deleteWhileInactive,omitempty "`
128+ DeleteWhileInactive * bool `json:"deleteWhileInactive"`
129129}
130130
131131// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
@@ -167,7 +167,7 @@ type PulsarNamespaceSpec struct {
167167 // When enabled, producers must provide a schema when publishing messages.
168168 // If not specified, the cluster's default schema validation enforcement setting will be used.
169169 // +optional
170- SchemaValidationEnforced * bool `json:"schemaValidationEnforced,omitempty "`
170+ SchemaValidationEnforced * bool `json:"schemaValidationEnforced"`
171171
172172 // MaxProducersPerTopic sets the maximum number of producers allowed on a single topic in the namespace.
173173 // +optional
@@ -246,7 +246,7 @@ type PulsarNamespaceSpec struct {
246246
247247 // Deduplication controls whether to enable message deduplication for the namespace.
248248 // +optional
249- Deduplication * bool `json:"deduplication,omitempty "`
249+ Deduplication * bool `json:"deduplication"`
250250
251251 // BookieAffinityGroup is the name of the namespace isolation policy to apply to the namespace.
252252 BookieAffinityGroup * BookieAffinityGroupData `json:"bookieAffinityGroup,omitempty"`
@@ -309,17 +309,17 @@ type PulsarNamespaceSpec struct {
309309 // IsAllowAutoUpdateSchema specifies whether to allow automatic schema updates.
310310 // When enabled, producers can automatically update schemas without manual approval.
311311 // +optional
312- IsAllowAutoUpdateSchema * bool `json:"isAllowAutoUpdateSchema,omitempty "`
312+ IsAllowAutoUpdateSchema * bool `json:"isAllowAutoUpdateSchema"`
313313
314314 // ValidateProducerName specifies whether to validate producer names.
315315 // When enabled, producer names must follow specific naming conventions.
316316 // +optional
317- ValidateProducerName * bool `json:"validateProducerName,omitempty "`
317+ ValidateProducerName * bool `json:"validateProducerName"`
318318
319319 // EncryptionRequired specifies whether message encryption is required for this namespace.
320320 // When enabled, all messages published to topics in this namespace must be encrypted.
321321 // +optional
322- EncryptionRequired * bool `json:"encryptionRequired,omitempty "`
322+ EncryptionRequired * bool `json:"encryptionRequired"`
323323
324324 // SubscriptionAuthMode specifies the subscription authentication mode for this namespace.
325325 // Valid values are "None" and "Prefix".
@@ -370,7 +370,7 @@ type PulsarNamespaceStatus struct {
370370 // GeoReplicationEnabled indicates whether geo-replication between two Pulsar instances (via PulsarGeoReplication)
371371 // is enabled for the namespace
372372 // +optional
373- GeoReplicationEnabled bool `json:"geoReplicationEnabled,omitempty "`
373+ GeoReplicationEnabled bool `json:"geoReplicationEnabled"`
374374}
375375
376376//+kubebuilder:object:root=true
0 commit comments