Skip to content

Commit

Permalink
Tweaking Port to be string
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyd450 committed Feb 26, 2024
1 parent dd6ed3d commit 7b86838
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/rekor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type RekorSpec struct {
// Trillian External Log Server
ExternalTrillianUrl string `json:"externalTrillian,omitempty"`
// External Trillian Port
TrillianPort *int64 `json:"trillianPort,omitempty"`
TrillianPort string `json:"trillianPort,omitempty"`
}

type RekorSigner struct {
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bundle/manifests/rhtas-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2024-02-21T11:10:30Z"
createdAt: "2024-02-21T11:21:05Z"
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
name: rhtas-operator.v0.0.1
Expand Down
3 changes: 1 addition & 2 deletions bundle/manifests/rhtas.redhat.com_rekors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ spec:
type: integer
trillianPort:
description: External Trillian Port
format: int64
type: integer
type: string
type: object
status:
description: RekorStatus defines the observed state of Rekor
Expand Down
3 changes: 1 addition & 2 deletions bundle/manifests/rhtas.redhat.com_securesigns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ spec:
type: integer
trillianPort:
description: External Trillian Port
format: int64
type: integer
type: string
type: object
trillian:
description: TrillianSpec defines the desired state of Trillian
Expand Down
3 changes: 1 addition & 2 deletions config/crd/bases/rhtas.redhat.com_rekors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ spec:
type: integer
trillianPort:
description: External Trillian Port
format: int64
type: integer
type: string
type: object
status:
description: RekorStatus defines the observed state of Rekor
Expand Down
3 changes: 1 addition & 2 deletions config/crd/bases/rhtas.redhat.com_securesigns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ spec:
type: integer
trillianPort:
description: External Trillian Port
format: int64
type: integer
type: string
type: object
trillian:
description: TrillianSpec defines the desired state of Trillian
Expand Down
7 changes: 3 additions & 4 deletions controllers/rekor/utils/rekor_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CreateRekorDeployment(instance *v1alpha1.Rekor, dpName string, sa string, l
env := make([]core.EnvVar, 0)

trillianNamespace := instance.Namespace
trillianPort := 8091
trillianPort := "8091"
if instance.Spec.ExternalTrillianUrl != "" || instance.Spec.ExternalTrillianUrl != nil {
trillianNamespace = instance.Spec.ExternalTrillianUrl
}
Expand All @@ -23,12 +23,11 @@ func CreateRekorDeployment(instance *v1alpha1.Rekor, dpName string, sa string, l
trillianPort = instance.Spec.trillianPort
}

port := "8091"

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

0 comments on commit 7b86838

Please sign in to comment.