File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ func ApplyDefaults(resource interface{}) {
133
133
spec .Config [confLocalDataDirKey ] = confLocalDataDirVal
134
134
}
135
135
136
+ // Set twill.security.secret.disk.name to be consistent with securitySecret if not overwritten.
137
+ if _ , ok := spec .Config [confTwillSecuritySecretDiskName ]; ! ok {
138
+ spec .Config [confTwillSecuritySecretDiskName ] = spec .SecuritySecret
139
+ }
140
+
136
141
// Disable explore
137
142
spec .Config [confExploreEnabled ] = "false"
138
143
Original file line number Diff line number Diff line change @@ -47,12 +47,13 @@ const (
47
47
fieldNameCDAPExternalServiceSpec = "CDAPExternalServiceSpec"
48
48
49
49
// cconf and hconf
50
- confExploreEnabled = "explore.enabled"
51
- confLocalDataDirKey = "local.data.dir"
52
- confLocalDataDirVal = "/data"
53
- confRouterServerAddress = "router.server.address"
54
- confRouterBindPort = "router.bind.port"
55
- confUserInterfaceBindPort = "dashboard.bind.port"
50
+ confExploreEnabled = "explore.enabled"
51
+ confLocalDataDirKey = "local.data.dir"
52
+ confLocalDataDirVal = "/data"
53
+ confRouterServerAddress = "router.server.address"
54
+ confRouterBindPort = "router.bind.port"
55
+ confUserInterfaceBindPort = "dashboard.bind.port"
56
+ confTwillSecuritySecretDiskName = "twill.security.secret.disk.name"
56
57
57
58
// default values
58
59
defaultImage = "gcr.io/cdapio/cdap:latest"
You can’t perform that action at this time.
0 commit comments