Skip to content

Node agent mount volumes uses '\' instead '/' from Windows cli #9415

@Mykhailo-Roit

Description

@Mykhailo-Roit

What steps did you take and what happened:
Node agent daemonset for Kubernetes uses the wrong path splitter when I run it on a Windows host
It uses "\" instead of "/" in path

velero install `
    --provider azure `
    --namespace velero `
    --plugins velero/velero-plugin-for-microsoft-azure:v1.13.1 `
    --bucket "k3sdev" `
    --secret-file ./velero-credentials `
    --backup-location-config resourceGroup="rg-k8s-backup-velero",storageAccount=valerostorage,storageAccountKeyEnvVar=AZURE_STORAGE_ACCOUNT_ACCESS_KEY,subscriptionId=***** `
    --use-node-agent 

In DaemonSet "node-agent" I see

    spec:
      volumes:
        - name: host-pods
          hostPath:
            path: \var\lib\kubelet\pods
            type: ''
        - name: host-plugins
          hostPath:
            path: \var\lib\kubelet\plugins
            type: ''

What did you expect to happen:

    spec:
      volumes:
        - name: host-pods
          hostPath:
            path: /var/lib/kubelet/pods
            type: ''
        - name: host-plugins
          hostPath:
            path: /var/lib/kubelet/plugins
            type: ''

The following information will help us better understand what's going on:

velero version
Client:
        Version: v1.17.1
        Git commit: 94f64639cee09c5caaa65b65ab5f42175f41c101
Server:
        Version: v1.17.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions