Skip to content

Commit

Permalink
Merge pull request #64 from StatCan/add-prob-volv2
Browse files Browse the repository at this point in the history
fix(use the better label)
  • Loading branch information
Jose-Matsuda authored Sep 23, 2021
2 parents da808ea + d9fafe6 commit e0a6302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (s *server) GetNotebooks(w http.ResponseWriter, r *http.Request) {
func (s *server) handleVolume(ctx context.Context, req volumerequest, notebook *kubeflowv1.Notebook) error {
var pvc = corev1.PersistentVolumeClaim{}
if req.Type == VolumeTypeNew {
if _, ok := notebook.Labels["notebook.statcan.gc.ca/protected-b"]; ok {
if notebook.GetObjectMeta().GetLabels()["notebook.statcan.gc.ca/protected-b"] == "true" {
pvc = corev1.PersistentVolumeClaim{
ObjectMeta: v1.ObjectMeta{
Name: req.Name,
Expand Down

0 comments on commit e0a6302

Please sign in to comment.