|
60 | 60 | projectAnnotations = newBoolOrStringKey("projectAnnotations", true) |
61 | 61 | tlsSecretNameKey = newStringKey("tlsSecretName") |
62 | 62 | dispatchCAKey = newStringKey("dispatchUpstreamCASecretName") |
| 63 | + dispatchCAFilePathKey = newKey("dispatchUpstreamCAFilePath", "tls.crt") |
63 | 64 | dispatchEnabledKey = newBoolOrStringKey("dispatchEnabled", true) |
64 | 65 | telemetryCAKey = newStringKey("telemetryCASecretName") |
65 | 66 | envPrefixKey = newKey("envPrefix", "SPICEDB") |
@@ -149,6 +150,7 @@ type SpiceConfig struct { |
149 | 150 | TLSSecretName string |
150 | 151 | DispatchEnabled bool |
151 | 152 | DispatchUpstreamCASecretName string |
| 153 | + DispatchUpstreamCASecretPath string |
152 | 154 | TelemetryTLSCASecretName string |
153 | 155 | SecretName string |
154 | 156 | ExtraPodLabels map[string]string |
@@ -182,6 +184,7 @@ func NewConfig(cluster *v1alpha1.SpiceDBCluster, globalConfig *OperatorConfig, s |
182 | 184 | TLSSecretName: tlsSecretNameKey.pop(config), |
183 | 185 | ServiceAccountName: serviceAccountNameKey.pop(config), |
184 | 186 | DispatchUpstreamCASecretName: dispatchCAKey.pop(config), |
| 187 | + DispatchUpstreamCASecretPath: dispatchCAFilePathKey.pop(config), |
185 | 188 | TelemetryTLSCASecretName: telemetryCAKey.pop(config), |
186 | 189 | EnvPrefix: envPrefixKey.pop(config), |
187 | 190 | SpiceDBCmd: spiceDBCmdKey.pop(config), |
@@ -347,7 +350,7 @@ func NewConfig(cluster *v1alpha1.SpiceDBCluster, globalConfig *OperatorConfig, s |
347 | 350 | } |
348 | 351 |
|
349 | 352 | if len(spiceConfig.DispatchUpstreamCASecretName) > 0 && spiceConfig.DispatchEnabled { |
350 | | - passthroughConfig["dispatchUpstreamCAPath"] = "/dispatch-tls/tls.crt" |
| 353 | + passthroughConfig["dispatchUpstreamCAPath"] = "/dispatch-tls/" + spiceConfig.DispatchUpstreamCASecretPath |
351 | 354 | } |
352 | 355 |
|
353 | 356 | if len(spiceConfig.TelemetryTLSCASecretName) > 0 { |
|
0 commit comments