Skip to content

Commit

Permalink
feat: add tls key field (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 authored Nov 30, 2023
1 parent 77dcd7c commit 51f8e73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/handler/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

//HubName name
// HubName name
var HubName = "rbd-hub"
var hubDataPvcName = "rbd-hub"
var hubImageRepository = "hub-image-repository"
Expand All @@ -45,7 +45,7 @@ type hub struct {
var _ ComponentHandler = &hub{}
var _ StorageClassRWXer = &hub{}

//NewHub nw hub
// NewHub nw hub
func NewHub(ctx context.Context, client client.Client, component *rainbondv1alpha1.RbdComponent, cluster *rainbondv1alpha1.RainbondCluster) ComponentHandler {
return &hub{
component: component,
Expand Down Expand Up @@ -328,6 +328,7 @@ func (h *hub) secretForHub() client.Object {
"tls.crt": pem,
"tls.key": key,
"cert": pem,
"key": key,
},
}
}
Expand Down

0 comments on commit 51f8e73

Please sign in to comment.