Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/controller/asset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ func (r *AssetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl
r.Context = ctx
r.NamespacedName = req.NamespacedName
asset := teranodev1alpha1.Asset{}

if err := r.Get(ctx, req.NamespacedName, &asset); err != nil {
r.Log.Error(err, "unable to fetch asset CR")
return result, nil
}

r.Log.Info("reconciling asset", "cluster", asset.Name)

_, err := utils.ReconcileBatch(r.Log,
r.ReconcileDeployment,
r.ReconcileService,
Expand Down
1 change: 1 addition & 0 deletions internal/controller/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
MinerHTTPPort = 8092
PeerPort = 9905
PeerLegacyPort = 8333
PeerGRPCPort = 9904
PeerHTTPPort = 9906
PropagationGRPCPort = 8084
PropagationHTTPPort = 8833
Expand Down
6 changes: 6 additions & 0 deletions internal/controller/peer_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ func defaultPeerServiceSpec() *corev1.ServiceSpec {
TargetPort: intstr.FromInt32(PeerLegacyPort),
Protocol: corev1.ProtocolTCP,
},
{
Name: "grpc",
Port: int32(PeerGRPCPort),
TargetPort: intstr.FromInt32(PeerGRPCPort),
Protocol: corev1.ProtocolTCP,
},
{
Name: "delve",
Port: int32(DebuggerPort),
Expand Down