File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -364,12 +364,15 @@ func TestNewConfig(t *testing.T) {
364364 {
365365 name : "memory with skipTLSWarning" ,
366366 args : args {
367- cluster : v1alpha1.ClusterSpec {Config : json .RawMessage (`
367+ cluster : v1alpha1.ClusterSpec {
368+ SecretRef : "test-secret" ,
369+ Config : json .RawMessage (`
368370 {
369371 "datastoreEngine": "memory",
370372 "skipTLSWarning": true
371373 }
372- ` )},
374+ ` ),
375+ },
373376 globalConfig : OperatorConfig {
374377 ImageName : "image" ,
375378 UpdateGraph : updates.UpdateGraph {
@@ -421,6 +424,9 @@ func TestNewConfig(t *testing.T) {
421424 ServiceAccountName : "test" ,
422425 DispatchEnabled : false ,
423426 DispatchUpstreamCASecretPath : "tls.crt" ,
427+ DatastoreURIRef : ResolvedCredentialRef {SecretName : "test-secret" , Key : "datastore_uri" },
428+ PresharedKeyRef : ResolvedCredentialRef {SecretName : "test-secret" , Key : "preshared_key" },
429+ MigrationSecretsRef : ResolvedCredentialRef {SecretName : "test-secret" , Key : "migration_secrets" },
424430 ProjectLabels : true ,
425431 ProjectAnnotations : true ,
426432 Passthrough : map [string ]string {
You can’t perform that action at this time.
0 commit comments