Skip to content

Commit

Permalink
Allow override es.archive.tls
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Vargas <[email protected]>
  • Loading branch information
rubenvp8510 committed Jan 16, 2020
1 parent 233cfd4 commit 93df3af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/inject/oauth_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func OAuthProxy(jaeger *v1.Jaeger, dep *appsv1.Deployment) *appsv1.Deployment {
func proxyInitArguments(jaeger *v1.Jaeger) []string {
secret, err := util.GenerateProxySecret()
if err != nil {
jaeger.Logger().Warnf("Error generating secret: %s, fallback to fixed secret", secret)
jaeger.Logger().WithError(err).Warnf("Error generating secret: %s, fallback to fixed secret", secret)
secret = defaultProxySecret
}
args := []string{
Expand Down
6 changes: 5 additions & 1 deletion pkg/storage/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ func (ed *ElasticsearchDeployment) injectArguments(container *corev1.Container)
if strings.EqualFold(util.FindItem("--es-archive.enabled", container.Args), "--es-archive.enabled=true") {
container.Args = append(container.Args,
"--es-archive.server-urls="+elasticsearchURL,
"--es-archive.tls=true",
)
if util.FindItem("--es-archive.tls=", container.Args) == "" {
container.Args = append(container.Args, "--es-archive.tls=true")
}
container.Args = append(container.Args,
"--es-archive.tls.ca="+caPath,
"--es-archive.tls.cert="+certPath,
"--es-archive.tls.key="+keyPath,
Expand Down

0 comments on commit 93df3af

Please sign in to comment.