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

Add tmpfs option for etcd-data volume#2103

Open
chriscoester wants to merge 1 commit intocoreos:masterfrom
chriscoester:addTmpfsOption
Open

Add tmpfs option for etcd-data volume#2103
chriscoester wants to merge 1 commit intocoreos:masterfrom
chriscoester:addTmpfsOption

Conversation

@chriscoester
Copy link
Copy Markdown

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
Copy Markdown

Marlinc commented Nov 7, 2019

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

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

@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
Copy Markdown

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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