@@ -19,6 +19,7 @@ package common
19
19
import (
20
20
"bytes"
21
21
"embed"
22
+ "strings"
22
23
23
24
gomega "github.com/onsi/gomega"
24
25
. "github.com/project-codeflare/codeflare-common/support"
@@ -53,7 +54,7 @@ type NotebookProps struct {
53
54
KubernetesUserBearerToken string
54
55
Namespace string
55
56
OpenDataHubNamespace string
56
- Command [] string
57
+ Command string
57
58
NotebookImage string
58
59
NotebookConfigMapName string
59
60
NotebookConfigMapFileName string
@@ -76,6 +77,7 @@ func CreateNotebook(test Test, namespace *corev1.Namespace, notebookUserToken st
76
77
s3SecretAccessKey , _ := GetStorageBucketSecretKey ()
77
78
s3Endpoint , _ := GetStorageBucketDefaultEndpoint ()
78
79
s3DefaultRegion , _ := GetStorageBucketDefaultRegion ()
80
+ strCommand := "[\" " + strings .Join (command , "\" ,\" " ) + "\" ]"
79
81
80
82
if ! s3BucketNameExists {
81
83
s3BucketName = "''"
@@ -92,7 +94,7 @@ func CreateNotebook(test Test, namespace *corev1.Namespace, notebookUserToken st
92
94
KubernetesUserBearerToken : notebookUserToken ,
93
95
Namespace : namespace .Name ,
94
96
OpenDataHubNamespace : GetOpenDataHubNamespace (test ),
95
- Command : command ,
97
+ Command : strCommand ,
96
98
NotebookImage : GetNotebookImage (test ),
97
99
NotebookConfigMapName : jupyterNotebookConfigMapName ,
98
100
NotebookConfigMapFileName : jupyterNotebookConfigMapFileName ,
@@ -109,6 +111,7 @@ func CreateNotebook(test Test, namespace *corev1.Namespace, notebookUserToken st
109
111
notebookTemplate , err := files .ReadFile ("resources/custom-nb-small.yaml" )
110
112
test .Expect (err ).NotTo (gomega .HaveOccurred ())
111
113
114
+ notebookTemplate = ParseTemplate (test , notebookTemplate , notebookProps )
112
115
parsedNotebookTemplate := ParseTemplate (test , notebookTemplate , notebookProps )
113
116
114
117
// Create Notebook CR
0 commit comments