Skip to content

external-snapshotter start failed, because of the nil pointer #194

@zhucan

Description

@zhucan

storageclassName := *pvc.Spec.StorageClassName

The pvc yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
volume.beta.kubernetes.io/storage-class: test-sc
name: test-pvc
namespace: default
spec:
accessModes:

  • ReadWriteOnce
    resources:
    requests:
    storage: 30G

if we set the storageclass with the metadata.annotations.volume.beta.kubernetes.io/storage-class not spec.storageClassName, when we rebuilding the external-snapshotter sidecar that it will throw nil pointer.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions