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

fix cache persistent default #120

Merged
merged 1 commit into from
Jan 9, 2019
Merged

fix cache persistent default #120

merged 1 commit into from
Jan 9, 2019

Conversation

rootfs
Copy link
Member

@rootfs rootfs commented Jan 9, 2019

fix #119
cc @mickymiek

Signed-off-by: Huamin Chen <hchen@redhat.com>
@mickymiek
Copy link

Yep, haven't thought about this issue. Seems better to default cachepersister to node.

@rootfs rootfs merged commit c029072 into ceph:master Jan 9, 2019
@@ -35,7 +35,7 @@ var (
driverName = flag.String("drivername", "csi-rbdplugin", "name of the driver")
nodeID = flag.String("nodeid", "", "node id")
containerized = flag.Bool("containerized", true, "whether run as containerized")
metadataStorage = flag.String("metadatastorage", "", "metadata persistence method [node|k8s_configmap]")
metadataStorage = flag.String("metadatastorage", "node", "metadata persistence method [node|k8s_configmap]")
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency, this should then also go in the cephfs driver

@@ -50,6 +50,10 @@ func main() {
os.Exit(1)
}

if *metadataStorage != "node" && *metadataStorage != "k8s_configmap" {
Copy link
Contributor

Choose a reason for hiding this comment

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

@UrbanWizardry
Copy link

I realise I'm late to this as it's already been merged, but what it the logic behind choosing "node" for the default in code, but leaving the command-line arg in deploy/cephfs/kubernetes/csi-cephfsplugin.yaml as k8s_configmap ?

@gman0
Copy link
Contributor

gman0 commented Jan 10, 2019

We don't want to have k8s-specific defaults in the code, but it's ok to default to configmaps for k8s deployments. Also, this way it will have consistent behavior with older versions.

@UrbanWizardry
Copy link

Makes perfect sense, thanks for the fast response.

wilmardo pushed a commit to wilmardo/ceph-csi that referenced this pull request Jul 29, 2019
fix cache persistent default
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/ceph-csi that referenced this pull request Aug 9, 2022
…ck-118-to-release-4.12

[release-4.12] sync downstream devel with upstream devel
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.

4 participants