Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass boolean properties to Redpanda configuration #472

Merged
merged 2 commits into from
May 19, 2023

Conversation

RafalKorepta
Copy link
Contributor

fixes #470

@RafalKorepta RafalKorepta force-pushed the rk/change-booleans-to-be-passed-for-RP-config branch 2 times, most recently from d3edd1c to 1f8820d Compare April 28, 2023 09:41
@RafalKorepta RafalKorepta changed the title Rk/change booleans to be passed for rp config Pass boolean properties to Redpanda configuration Apr 28, 2023
@RafalKorepta RafalKorepta force-pushed the rk/change-booleans-to-be-passed-for-RP-config branch 6 times, most recently from 59c79e3 to fea0960 Compare April 28, 2023 10:14
@RafalKorepta
Copy link
Contributor Author

Screenshot 2023-04-28 at 12 15 08

https://github.com/redpanda-data/helm-charts/actions/runs/4829528122/jobs/8604675668

Dedicated test that should be run only in origin not in fork is correctly detected by Github Action and it is cancelled.

@RafalKorepta RafalKorepta force-pushed the rk/change-booleans-to-be-passed-for-RP-config branch from fea0960 to f482f65 Compare April 28, 2023 10:18
Comment on lines 57 to 86
{{- $configurationBooleanProp := list "admin_api_require_auth"
"aggregate_metrics"
"auto_create_topics_enabled"
"cloud_storage_disable_tls"
"cloud_storage_enable_compacted_topic_reupload"
"cloud_storage_enable_remote_read"
"cloud_storage_enable_remote_write"
"cloud_storage_enable_segment_merging"
"cloud_storage_enabled"
"disable_batch_cache"
"disable_metrics"
"disable_public_metrics"
"enable_controller_log_rate_limiting"
"enable_coproc"
"enable_idempotence"
"enable_leader_balancer"
"enable_metrics_reporter"
"enable_pid_file"
"enable_rack_awareness"
"enable_sasl"
"enable_transactions"
"enable_usage"
"features_auto_enable"
"kafka_enable_authorization"
"kafka_enable_partition_reassignment"
"kafka_qdc_enable"
"legacy_group_offset_retention_enabled"
"memory_abort_on_alloc_failure"
"release_cache_on_segment_roll"
"storage_strict_data_init" -}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The boolean properties was taken from running cluster v23.1.7 by the following command:

kubectl exec redpanda-0 -- curl -sk https://127.0.0.1:9644/v1/cluster_config/schema | jq -c  '.properties | to_entries | .[] | select(.value.type | contains("boolean")) | .key'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated as 23.1.8 added new boolean use_fetch_scheduler_group

@RafalKorepta RafalKorepta force-pushed the rk/change-booleans-to-be-passed-for-RP-config branch from f482f65 to 5724ce7 Compare April 28, 2023 10:38
@@ -71,7 +107,10 @@ data:
{{- end }}
{{- with (dig "cluster" dict .Values.config) }}
{{- range $key, $element := .}}
{{- if $element }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do something like https://helm.sh/docs/chart_template_guide/function_list/#type-functions
how about {{ if or (eq (typeOf $element) boolean) $element }} that way we do not have to know an exhaustive list of boolean configs. We leave the responsibility of the user to know what they are doing and we offload maintenance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I can change that.

@RafalKorepta RafalKorepta force-pushed the rk/change-booleans-to-be-passed-for-RP-config branch 3 times, most recently from 0021525 to 93e93ef Compare May 5, 2023 01:38
@RafalKorepta RafalKorepta force-pushed the rk/change-booleans-to-be-passed-for-RP-config branch from 93e93ef to 3ad2c33 Compare May 8, 2023 17:15
@joejulian joejulian force-pushed the rk/change-booleans-to-be-passed-for-RP-config branch from 3ad2c33 to 762a63f Compare May 18, 2023 19:13
@joejulian
Copy link
Contributor

rebased

@joejulian joejulian added this pull request to the merge queue May 19, 2023
Merged via the queue into main with commit 2848027 May 19, 2023
12 checks passed
@joejulian joejulian deleted the rk/change-booleans-to-be-passed-for-RP-config branch May 19, 2023 18:26
@joejulian joejulian mentioned this pull request May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot set boolean cluster config settings false
3 participants