kubernetes / api

The canonical location of the Kubernetes API definition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why is the type of StorageClassName pointer to string?

HarikrishnanBalagopal opened this issue · comments

commented

Why is the type of StorageClassName pointer to string instead of just string?

StorageClassName *string `json:"storageClassName,omitempty" protobuf:"bytes,5,opt,name=storageClassName"`

commented

Is it to know if the field is present in the json or yaml file while unmarshalling?
https://stackoverflow.com/questions/31504975/validate-struct-field-if-it-exists

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale