Skip to content
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

StorageClass annotations defaultVolumeType not work #390

Closed
lanss315425 opened this issue Mar 22, 2024 · 9 comments
Closed

StorageClass annotations defaultVolumeType not work #390

lanss315425 opened this issue Mar 22, 2024 · 9 comments
Labels

Comments

@lanss315425
Copy link

hi ,I am not working properly using the Storage Class annotations defaultVolume Type,Normally, there is a volumeType: local in the annotations of PVC. The following image shows my Storage Class.
image

this is my pvc :

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: nginx-test-pvc
spec:
  storageClassName: local-path
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi

kubectl describe pvc nginx-test-pvc:
image

image
@derekbit
Copy link
Member

Can you provide more information such as the steps to reproduce and local-path provisioner version?

@lanss315425
Copy link
Author

@derekbit
Copy link
Member

@lanss315425 What's your Kubernetes version?

@lanss315425
Copy link
Author

@derekbit Kubernetes v1.26.13

@derekbit
Copy link
Member

@lanss315425 Wait. I don't think it is wrong. What's your expectation?

@lanss315425
Copy link
Author

I expect that when the annotation for PersistentvolumeClaim is empty, the annotation for StorageClass will be applied to all volumes that use it

@lanss315425
Copy link
Author

like this
image

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label May 31, 2024
Copy link

github-actions bot commented Jun 5, 2024

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants