Skip to content

Commit

Permalink
Initial Test Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyd450 committed Feb 19, 2024
1 parent c275a22 commit b54eb19
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/rekor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type RekorSpec struct {
Signer RekorSigner `json:"signer,omitempty"`
// BackFillRedis CronJob Configuration
BackFillRedis BackFillRedis `json:"backFillRedis,omitempty"`
// Trillian External Log Server
ExternalTrillian string `json:"externalTrillian,omitempty"`
}

type RekorSigner struct {
Expand Down
2 changes: 1 addition & 1 deletion bundle/manifests/rhtas-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2024-02-15T11:34:50Z"
createdAt: "2024-02-19T13:25:38Z"
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: 3 additions & 0 deletions bundle/manifests/rhtas.redhat.com_rekors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ spec:
description: Set hostname for your Ingress/Route.
type: string
type: object
externalTrillian:
description: Trillian External Log Server
type: string
monitoring:
description: Enable Service monitors for rekor
properties:
Expand Down
3 changes: 3 additions & 0 deletions bundle/manifests/rhtas.redhat.com_securesigns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ spec:
description: Set hostname for your Ingress/Route.
type: string
type: object
externalTrillian:
description: Trillian External Log Server
type: string
monitoring:
description: Enable Service monitors for rekor
properties:
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/rhtas.redhat.com_rekors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ spec:
description: Set hostname for your Ingress/Route.
type: string
type: object
externalTrillian:
description: Trillian External Log Server
type: string
monitoring:
description: Enable Service monitors for rekor
properties:
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/rhtas.redhat.com_securesigns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ spec:
description: Set hostname for your Ingress/Route.
type: string
type: object
externalTrillian:
description: Trillian External Log Server
type: string
monitoring:
description: Enable Service monitors for rekor
properties:
Expand Down
9 changes: 8 additions & 1 deletion controllers/rekor/utils/rekor_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ import (

func CreateRekorDeployment(instance *v1alpha1.Rekor, dpName string, sa string, labels map[string]string) *apps.Deployment {
env := make([]core.EnvVar, 0)

trillianNamespace := instance.Namespace

if instance.Spec.ExternalTrillian != "" {
trillianNamespace = instance.Spec.ExternalTrillian
}

appArgs := []string{
"serve",
"--trillian_log_server.address=trillian-logserver." + instance.Namespace + ".svc",
"--trillian_log_server.address=trillian-logserver." + trillianNamespace + ".svc",
"--trillian_log_server.port=8091",
"--trillian_log_server.sharding_config=/sharding/sharding-config.yaml",
"--redis_server.address=rekor-redis",
Expand Down

0 comments on commit b54eb19

Please sign in to comment.