Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Add tmpfs option for etcd-data volume #2103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chriscoester
Copy link

This adds an additional optional field to the etcdcluster.spec.pod field, allowing etcdpods to use tmpfs for etcd-data.

Fixes #2053

@Marlinc
Copy link

Marlinc commented Nov 7, 2019

Any chance someone could look into this? Anything I can do to help with getting it in?

} else {
k8sutil.AddEtcdVolumeToPod(pod, nil)
k8sutil.AddEtcdVolumeToPod(pod, nil, c.cluster.Spec.Pod.Tmpfs)
Copy link

@Marlinc Marlinc Nov 9, 2019

Choose a reason for hiding this comment

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

I have tested this and it will cause the operator to crash with a nil error when c.cluster.Spec.Pod is nil.

Copy link

Choose a reason for hiding this comment

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

I've pushed a fix in cbws#22

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to set emptyDir.medium to "Memory"
2 participants