Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

feat: Support volume #194

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

xieydd
Copy link
Member

@xieydd xieydd commented Oct 30, 2023

No description provided.

Signed-off-by: xieydd <xieydd@gmail.com>
Signed-off-by: xieydd <xieydd@gmail.com>
Signed-off-by: xieydd <xieydd@gmail.com>
@xieydd
Copy link
Member Author

xieydd commented Nov 3, 2023

PTAL @xieydd @gaocegege @kemingy

@xieydd xieydd requested review from gaocegege, kemingy and cutecutecat and removed request for gaocegege November 3, 2023 06:35
if len(function.Spec.Volumes) > 0 {
for _, volume := range function.Spec.Volumes {
if (volume.Type == v2alpha1.VolumeTypeLocal) && (len(volume.NodeNames) == 0) {
// no need create pv and pvc for hostPath
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// no need create pv and pvc for hostPath
// no need delete pv and pvc for hostPath

switch volume.Type {
case v2alpha1.VolumeTypeGCSFuse:
pv.Spec.Capacity = corev1.ResourceList{
corev1.ResourceStorage: resource.MustParse(capacity),
Copy link
Member

Choose a reason for hiding this comment

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

Is it configurable?

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.

3 participants