Merge pull request #148 from digitalocean/mrieger/fix/CON-7086
fix: Clusterlint panic on valid PVCs when storageClassName specified as annotationmaster
commit
1f3819e971
|
@ -110,7 +110,8 @@ func (c *Client) FetchObjects(ctx context.Context, filter ObjectFilter) (*Object
|
||||||
}
|
}
|
||||||
for _, s := range objects.StorageClasses.Items {
|
for _, s := range objects.StorageClasses.Items {
|
||||||
if v, _ := s.Annotations["storageclass.kubernetes.io/is-default-class"]; v == "true" {
|
if v, _ := s.Annotations["storageclass.kubernetes.io/is-default-class"]; v == "true" {
|
||||||
objects.DefaultStorageClass = &s
|
defaultStorageClass := s
|
||||||
|
objects.DefaultStorageClass = &defaultStorageClass
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue