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

remove typing of cloud_storage_enabled #144

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

chrisseto
Copy link
Contributor

@chrisseto chrisseto commented May 17, 2024

c583b32 remove typing of cloud_storage_enabled

When v1alpha2 was added it was set as the storage version with a
"none" conversion strategy. Due to the type change on the
cloud_storage_enabled field, this resulted in a litany of issues
largely revolving around type validation at the Kube API level.

This commit changes the definitions v1alpha1 and v1alpha2 to be the
exact same, but removes type validation of the cloud_storage_enabled
field. This ensures that both v1alpha1 and v1alpha2 versions are
accepted by Kubernetes and are appropriately handled by our controllers.
The updated data type will now correctly marshal both string and boolean
JSON types to booleans values which fixes any incompatibilities with the
helm chart's now correctly typed cloud_storage_enabled field.

See also:
110831b
redpanda-data/helm-charts@b733738

@chrisseto chrisseto force-pushed the chris/noop-v1alpha2 branch 5 times, most recently from 92af1ed to c583b32 Compare May 20, 2024 15:37
@chrisseto chrisseto marked this pull request as ready for review May 20, 2024 15:40
@chrisseto chrisseto changed the title WIP: remove typing of cloud_storage_enabled remove typing of cloud_storage_enabled May 20, 2024
@chrisseto chrisseto changed the title remove typing of cloud_storage_enabled remove typing of cloud_storage_enabled May 20, 2024
When `v1alpha2` was added it was set as the storage version with a
"none" conversion strategy. Due to the type change on the
`cloud_storage_enabled` field, this resulted in a litany of issues
largely revolving around type validation at the Kube API level.

This commit changes the definitions `v1alpha1` and `v1alpha2` to be the
exact same bUT removes type validation of the `cloud_storage_enabled`
field. This ensures that both `v1alpha1` and `v1alpha2` versions are
accepted by Kubernetes and are appropriately handled by our controllers.
The updated data type will now correctly marshal both string and boolean
JSON types to booleans values which fixes any incompatibilities with the
helm chart's now correctly typed `cloud_storage_enabled` field.

See also:
110831b
redpanda-data/helm-charts@b733738
@CLAassistant
Copy link

CLAassistant commented May 20, 2024

CLA assistant check
All committers have signed the CLA.

@chrisseto chrisseto merged commit 52079ad into main May 20, 2024
5 checks passed
@chrisseto chrisseto deleted the chris/noop-v1alpha2 branch May 20, 2024 18:32
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.

None yet

3 participants