Skip to content

Commit

Permalink
Configuring Trillian URL
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyd450 committed Feb 26, 2024
1 parent 025b18c commit 9ac0924
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/rekor/utils/rekor_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ import (
func CreateRekorDeployment(instance *v1alpha1.Rekor, dpName string, sa string, labels map[string]string) *apps.Deployment {
env := make([]core.EnvVar, 0)

trillianPort := "8091"
trillianUrl := "trillian-logserver." + instance.Namespace + ".svc"
if instance.Spec.ExternalTrillianUrl != "" {
trillianNamespace = instance.Spec.ExternalTrillianUrl
trillianUrl = instance.Spec.ExternalTrillianUrl
}

trillianPort := "8091"
if instance.Spec.TrillianPort != "" {
trillianPort = instance.Spec.TrillianPort
}

appArgs := []string{
"serve",
"--trillian_log_server.address=" + instance.Spec.ExternalTrillian + "",
"--trillian_log_server.address=" + trillianUrl + "",
"--trillian_log_server.port=" + trillianPort + "",
"--trillian_log_server.sharding_config=/sharding/sharding-config.yaml",
"--redis_server.address=rekor-redis",
Expand Down

0 comments on commit 9ac0924

Please sign in to comment.