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

hostpath.type as `DirectoryOrCreate` does not work on windows #62121

Closed
andyzhangx opened this Issue Apr 4, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@andyzhangx
Member

andyzhangx commented Apr 4, 2018

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug

Uncomment only one, leave it on its own line:

/kind bug
/kind feature

What happened:
hostpath.type as DirectoryOrCreate does not work on windows, there will be mount failed error

---
apiVersion: v1
kind: Pod
metadata:
  name: aspnet-hostpath
spec:
  containers:
  - image: microsoft/aspnet
    name: aspnet-hostpath
    volumeMounts:
    - name: test-volume
      mountPath: '/azure'
  nodeSelector:
    beta.kubernetes.io/os: windows
  volumes:
  - name: test-volume
    hostPath:
      path: 'c:\var\lib\kublet\test'
      type: DirectoryOrCreate

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): v1.11
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

/sig storage
/sig windows
/assign

@dixudx

This comment has been minimized.

Member

dixudx commented Apr 5, 2018

@andyzhangx I submitted another alternative PR to fix this issue. PTAL #62154

detiber pushed a commit to detiber/kubernetes that referenced this issue Apr 10, 2018

Merge pull request kubernetes#62154 from dixudx/fix-hostpath-type-win…
…dows

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix incompatible file type checking on Windows

**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes kubernetes#62121

**Special notes for your reviewer**:
/cc @msau42 @jsafrane 
/assign @andyzhangx 

**Release note**:

```release-note
fix incompatible file type checking on Windows
```
@andyzhangx

This comment has been minimized.

Member

andyzhangx commented Sep 14, 2018

This issue is fixed in v1.9.7, v1.10.2, v1.11.0

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