-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat(Openshift): Openshift CRD Flag to Ignore fsGroup #163
Conversation
internal/resources/resources.go
Outdated
}, | ||
}, | ||
}, | ||
} | ||
|
||
// Openshift requires IDs to not be set, as it injects a fixed randomized ID per namespace into all pods. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
api/v1alpha1/dragonfly_types.go
Outdated
// (Optional) Whether running on Openshift or not | ||
// +optional | ||
// +kubebuilder:validation:Optional | ||
Openshift bool `json:"openshift,omitempty"` |
There was a problem hiding this comment.
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! 👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated:
ArthurVardevanyan/HomeLab@ce549e5
Signed-off-by: Arthur <arthur@arthurvardevanyan.com>
0153a59
to
ded5188
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
See Issue for details: #116
This is my current workaround: https://github.com/ArthurVardevanyan/HomeLab/blob/main/kubernetes/dragonfly-operator/base/kyverno.yaml
Deployed PR: ArthurVardevanyan/HomeLab#63