@@ -44,17 +44,6 @@ const (
44
44
ReproviderStrategyRoots ReproviderStrategy = "roots"
45
45
)
46
46
47
- type NetworkMode string
48
-
49
- const (
50
- // NetworkModePublic Defines an IPFSCluster running in public mode with its
51
- // content available to everyone.
52
- NetworkModePublic NetworkMode = "public"
53
- // NetworkModePrivate Defines an IPFSCluster running in a private network
54
- // with its content only available to other authorized nodes.
55
- NetworkModePrivate NetworkMode = "private"
56
- )
57
-
58
47
type ReprovideSettings struct {
59
48
// Strategy specifies the reprovider strategy, defaults to 'all'.
60
49
// +kubebuilder:validation:Enum={all,pinned,roots}
@@ -75,10 +64,10 @@ type followParams struct {
75
64
type NetworkConfig struct {
76
65
// circuitRelays defines how many CircuitRelays should be created.
77
66
CircuitRelays int32 `json:"circuitRelays"`
78
- // networkMode is a switch which defines whether this IPFSCluster will use
67
+ // public is a switch which defines whether this IPFSCluster will use
79
68
// the global IPFS network or create its own.
80
- // +kubebuilder:validation:Enum={public,private}
81
- NetworkMode NetworkMode `json:"networkMode ,omitempty"`
69
+ // +kubebuilder:default:=true
70
+ Public bool `json:"public ,omitempty"`
82
71
}
83
72
84
73
// IpfsClusterSpec defines the desired state of the IpfsCluster.
0 commit comments