Skip to content

Commit

Permalink
schema_registry/config: Introduce mode_mutability
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pope <ben@redpanda.com>
  • Loading branch information
BenPope committed May 13, 2024
1 parent 88e1993 commit ba05b97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/v/pandaproxy/schema_registry/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ configuration::configuration()
{},
{},
config::endpoint_tls_config::validate_many)
, mode_mutability(*this, "mode_mutability", "Allow modifying mode", {}, false)
, schema_registry_replication_factor(
*this,
"schema_registry_replication_factor",
Expand Down
1 change: 1 addition & 0 deletions src/v/pandaproxy/schema_registry/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct configuration final : public config::config_store {
schema_registry_api;
config::one_or_many_property<config::endpoint_tls_config>
schema_registry_api_tls;
config::property<bool> mode_mutability;
config::property<std::optional<int16_t>> schema_registry_replication_factor;
config::property<ss::sstring> api_doc_dir;
};
Expand Down
2 changes: 2 additions & 0 deletions tests/rptest/services/redpanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,8 @@ class SchemaRegistryConfig(TlsConfig):
SR_TLS_CLIENT_KEY_FILE = "/etc/redpanda/sr_client.key"
SR_TLS_CLIENT_CRT_FILE = "/etc/redpanda/sr_client.crt"

mode_mutability = False

def __init__(self):
super(SchemaRegistryConfig, self).__init__()

Expand Down
1 change: 1 addition & 0 deletions tests/rptest/services/templates/redpanda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ schema_registry:
{% endif %}

api_doc_dir: {{root}}/usr/share/redpanda/proxy-api-doc
mode_mutability: {{ schema_registry_config.mode_mutability }}

{% if schema_registry_config.truststore_file is not none %}
schema_registry_api_tls:
Expand Down

0 comments on commit ba05b97

Please sign in to comment.