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

Add support for readOnlyRootFilesystem (fixes #1402) #1403

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

olim7t
Copy link
Contributor

@olim7t olim7t commented Sep 10, 2024

What this PR does:

Which issue(s) this PR fixes:
Fixes #1402

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@olim7t olim7t requested a review from a team as a code owner September 10, 2024 18:02
Copy link
Contributor

@burmanm burmanm left a comment

Choose a reason for hiding this comment

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

Meh, no tests, but this should be quite straightforward here.

@adejanovski
Copy link
Contributor

I've added some tests, but it seems like enabling this is creating issues with Stargate (don't ask me why...)

@adejanovski
Copy link
Contributor

Unless it's the 4.1.5 upgrade that causes this.

@adejanovski
Copy link
Contributor

Silly me, Stargate v1 doesn't work with 4.1...

Copy link

sonarcloud bot commented Sep 11, 2024

@@ -946,7 +946,7 @@ func checkDatacenterReadOnlyRootFS(t *testing.T, ctx context.Context, key framew
dc := &cassdcapi.CassandraDatacenter{}
err := f.Get(ctx, key, dc)
require.NoError(t, err)
require.Equal(t, *dc.Spec.ReadOnlyRootFilesystem, *kc.Spec.Cassandra.ReadOnlyRootFilesystem, "expected datacenter %s to have readOnlyRootFilesystem like it is in the kc", key.Name)
require.Equal(t, ptr.Deref(dc.Spec.ReadOnlyRootFilesystem, false), ptr.Deref(kc.Spec.Cassandra.ReadOnlyRootFilesystem, false), "expected datacenter %s to have readOnlyRootFilesystem like it is in the kc", key.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @olim7t !

@adejanovski adejanovski merged commit 69085ba into k8ssandra:main Sep 12, 2024
61 checks passed
@olim7t olim7t deleted the k8op-251 branch September 12, 2024 14:05
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.

Expose the readOnlyRootFilesystem field that was added in cass-operator 1.22
3 participants