Skip to content

Commit

Permalink
Set datalayer http daemon port to not conflict with main chia container
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster committed Jan 11, 2025
1 parent fc45bab commit 1a6bca4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/v1/chiadatalayer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type ChiaDataLayerSpec struct {
ChiaConfig ChiaDataLayerSpecChia `json:"chia"`

// DataLayerHTTPConfig defines the desired state of an optional data_layer_http sidecar
// +optional
DataLayerHTTPConfig ChiaDataLayerHTTPSpecChia `json:"dataLayerHTTP"`

// Strategy describes how to replace existing pods with new ones.
Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/k8s.chia.net_chiadatalayers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10656,7 +10656,6 @@ spec:
type: array
required:
- chia
- dataLayerHTTP
type: object
status:
description: ChiaDataLayerStatus defines the observed state of ChiaDataLayer
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions internal/controller/chiadatalayer/assemblers.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ func assembleDatalayerHTTPContainer(datalayer k8schianetv1.ChiaDataLayer) corev1
Name: "chia.data_layer.server_files_location",
Value: "/datalayer/server",
},
{
Name: "chia.daemon_port",
Value: "55401", // Avoids port conflict with the main chia container
},
},
VolumeMounts: []corev1.VolumeMount{
{
Expand Down

0 comments on commit 1a6bca4

Please sign in to comment.