Skip to content

Commit

Permalink
feat: sets minimum for number of peers (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiTyping authored Dec 6, 2023
1 parent dedff84 commit 902002f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/v1/cosmosfullnode_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,13 +586,13 @@ type CometConfig struct {

// p2p maximum number of inbound peers.
// If unset, defaults to 20.
// +kubebuilder:validation:Minimum:=1
// +kubebuilder:validation:Minimum:=0
// +optional
MaxInboundPeers *int32 `json:"maxInboundPeers"`

// p2p maximum number of outbound peers.
// If unset, defaults to 20.
// +kubebuilder:validation:Minimum:=1
// +kubebuilder:validation:Minimum:=0
// +optional
MaxOutboundPeers *int32 `json:"maxOutboundPeers"`

Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/cosmos.strange.love_cosmosfullnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ spec:
description: p2p maximum number of inbound peers. If unset,
defaults to 20.
format: int32
minimum: 1
minimum: 0
type: integer
maxOutboundPeers:
description: p2p maximum number of outbound peers. If unset,
defaults to 20.
format: int32
minimum: 1
minimum: 0
type: integer
overrides:
description: 'Customize config.toml. Values entered here take
Expand Down

0 comments on commit 902002f

Please sign in to comment.