Skip to content

Commit

Permalink
update loki cli args for swift ca to match the ones introduced in
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoBraveCoding committed Dec 4, 2024
1 parent dfe16b4 commit 9178aeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operator/internal/manifests/storage/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func ensureCAForObjectStorage(p *corev1.PodSpec, tls *TLSConfig, secretType loki
)
case lokiv1.ObjectStorageSecretSwift:
container.Args = append(container.Args,
fmt.Sprintf("-swift.http.ca-file=%s", path.Join(caDirectory, tls.Key)),
fmt.Sprintf("-swift.http.tls-ca-path=%s", path.Join(caDirectory, tls.Key)),
)
}

Expand Down
4 changes: 2 additions & 2 deletions operator/internal/manifests/storage/configure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2643,7 +2643,7 @@ func TestConfigureDeploymentForStorageCA(t *testing.T) {
},
},
Args: []string{
"-swift.http.ca-file=/etc/storage/ca/service-ca.crt",
"-swift.http.tls-ca-path=/etc/storage/ca/service-ca.crt",
},
Env: []corev1.EnvVar{
{
Expand Down Expand Up @@ -2933,7 +2933,7 @@ func TestConfigureStatefulSetForStorageCA(t *testing.T) {
},
},
Args: []string{
"-swift.http.ca-file=/etc/storage/ca/service-ca.crt",
"-swift.http.tls-ca-path=/etc/storage/ca/service-ca.crt",
},
Env: []corev1.EnvVar{
{
Expand Down

0 comments on commit 9178aeb

Please sign in to comment.