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

feat(Openshift): Openshift CRD Flag to Ignore fsGroup #163

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

ArthurVardevanyan
Copy link
Contributor

@ArthurVardevanyan ArthurVardevanyan commented Mar 7, 2024

},
},
},
}

// Openshift requires IDs to not be set, as it injects a fixed randomized ID per namespace into all pods.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a valid fix, but i'm not yet sure if writing to a FS works with this. Can you try running SAVE command on the DF instance and tell me what it says?

Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure the correct way to run that, but I did enable snapshotting since that also writes to disk.

ArthurVardevanyan/HomeLab@7a5ff45

I20240311 12:20:00.002751 8 save_stages_controller.cc:321] Saving "/dragonfly/snapshots/dump-2024-03-11T12:20:00-summary.dfs" finished after 0 us

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

That does seem to work!

// (Optional) Whether running on Openshift or not
// +optional
// +kubebuilder:validation:Optional
Openshift bool `json:"openshift,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe can you rename this to skipFSGroup? which makes better sense than Openshift? LGTM otherwise! 👍🏼

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Signed-off-by: Arthur <arthur@arthurvardevanyan.com>
Copy link
Collaborator

@Pothulapati Pothulapati left a comment

Choose a reason for hiding this comment

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

LGTM

@Pothulapati Pothulapati merged commit 2ce5df9 into dragonflydb:main Mar 13, 2024
2 checks passed
@ArthurVardevanyan ArthurVardevanyan deleted the openshift-support branch March 15, 2024 02:07
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.

2 participants