Skip to content

Commit e0a6302

Browse files
authored
Merge pull request #64 from StatCan/add-prob-volv2
fix(use the better label)
2 parents da808ea + d9fafe6 commit e0a6302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (s *server) GetNotebooks(w http.ResponseWriter, r *http.Request) {
234234
func (s *server) handleVolume(ctx context.Context, req volumerequest, notebook *kubeflowv1.Notebook) error {
235235
var pvc = corev1.PersistentVolumeClaim{}
236236
if req.Type == VolumeTypeNew {
237-
if _, ok := notebook.Labels["notebook.statcan.gc.ca/protected-b"]; ok {
237+
if notebook.GetObjectMeta().GetLabels()["notebook.statcan.gc.ca/protected-b"] == "true" {
238238
pvc = corev1.PersistentVolumeClaim{
239239
ObjectMeta: v1.ObjectMeta{
240240
Name: req.Name,

0 commit comments

Comments
 (0)