File tree Expand file tree Collapse file tree
internal/openstackassistant Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,6 +117,10 @@ func AssistantPodSpec(
117117 envVars ["GOOSE_TELEMETRY_ENABLED" ] = env .SetValue ("false" )
118118 envVars ["GOOSE_DISABLE_KEYRING" ] = env .SetValue ("1" )
119119
120+ if instance .Spec .LightspeedStack .CaBundleSecretName != "" {
121+ envVars ["SSL_CERT_FILE" ] = env .SetValue ("/etc/ssl/certs/ca-certificates.crt" )
122+ }
123+
120124 if instance .Spec .Goose != nil && instance .Spec .Goose .Model != "" {
121125 envVars ["GOOSE_MODEL" ] = env .SetValue (instance .Spec .Goose .Model )
122126 }
Original file line number Diff line number Diff line change @@ -216,6 +216,12 @@ func TestAssistantPodSpec_WithCaBundle(t *testing.T) {
216216 g .Expect (caBundleMount .MountPath ).To (Equal ("/etc/ssl/certs/ca-certificates.crt" ))
217217 g .Expect (caBundleMount .SubPath ).To (Equal ("ca-bundle.crt" ))
218218 g .Expect (caBundleMount .ReadOnly ).To (BeTrue ())
219+
220+ envMap := map [string ]string {}
221+ for _ , e := range spec .Containers [0 ].Env {
222+ envMap [e .Name ] = e .Value
223+ }
224+ g .Expect (envMap ).To (HaveKeyWithValue ("SSL_CERT_FILE" , "/etc/ssl/certs/ca-certificates.crt" ))
219225}
220226
221227func TestAssistantPodSpec_WithNodeSelector (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments