Skip to content

Commit 080e796

Browse files
authored
Merge pull request #94 from patilsuraj767/remove-fields
Removes unused fields
2 parents 404e3ca + d2d6002 commit 080e796

File tree

11 files changed

+31
-52
lines changed

11 files changed

+31
-52
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
GOLANGCI_VERSION := v1.46.1
33
HELM_VERSION := v3.8.2
44
KUTTL_VERSION := 0.10.0
5+
GINKGO_VERSION := v2.7.0
56

67

78
OS := $(shell go env GOOS)
@@ -322,7 +323,7 @@ kuttl: ## Download kuttl
322323

323324
.PHONY: ginkgo
324325
GINKGO := $(LOCALBIN)/ginkgo
325-
GINKGO_URL := github.com/onsi/ginkgo/v2/ginkgo
326+
GINKGO_URL := github.com/onsi/ginkgo/v2/ginkgo@$(GINKGO_VERSION)
326327
ginkgo: $(GINKGO) ## Install ginkgo
327328
$(GINKGO): $(LOCALBIN)
328329
$(call go-install-mod-tool,$(LOCALBIN),$(GINKGO_URL))

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ kind: Ipfs
2323
metadata:
2424
name: ipfs-sample-1
2525
spec:
26-
url: apps.jephilli-4-11-04-28-0655.devcluster.openshift.com
2726
ipfsStorage: 2Gi
2827
clusterStorage: 2Gi
29-
public: true
3028
```
3129
Once the values match your environment run the following.
3230
```bash

api/v1alpha1/ipfscluster_types.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ type networkConfig struct {
6767

6868
// IpfsClusterSpec defines the desired state of the IpfsCluster.
6969
type IpfsClusterSpec struct {
70-
// url defines the URL to be using as an ingress controller.
71-
// +kubebuilder:validation:Optional
72-
URL string `json:"url"`
73-
// public determines whether or not we should be exposing this IPFS Cluster to the public.
74-
Public bool `json:"public"`
7570
// ipfsStorage defines the total storage to be allocated by this resource.
7671
IpfsStorage resource.Quantity `json:"ipfsStorage"`
7772
// clusterStorage defines the amount of storage to be used by IPFS Cluster.

config/crd/bases/cluster.ipfs.io_ipfsclusters.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ spec:
103103
required:
104104
- circuitRelays
105105
type: object
106-
public:
107-
description: public determines whether or not we should be exposing
108-
this IPFS Cluster to the public.
109-
type: boolean
110106
replicas:
111107
description: replicas sets the number of replicas of IPFS Cluster
112108
nodes we should be running.
@@ -129,15 +125,11 @@ spec:
129125
- roots
130126
type: string
131127
type: object
132-
url:
133-
description: url defines the URL to be using as an ingress controller.
134-
type: string
135128
required:
136129
- clusterStorage
137130
- follows
138131
- ipfsStorage
139132
- networking
140-
- public
141133
- replicas
142134
type: object
143135
status:

docs/source/your_first_cluster.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ Create a file with the following information
1212
metadata:
1313
name: ipfs-sample-1
1414
spec:
15-
url: apps.example.com
1615
ipfsStorage: 2Gi
1716
clusterStorage: 2Gi
1817
replicas: 5
19-
public: true
2018
follows: []
2119
networking:
2220
circuitRelays: 1
@@ -28,11 +26,11 @@ Once you have made the necessary adjustments, apply it to your cluster with kube
2826

2927
.. code-block:: bash
3028
31-
kubectl create namespace my_cluster
32-
kubectl -n my_cluster apply -f ipfs.yaml
29+
kubectl create namespace mycluster
30+
kubectl -n mycluster apply -f ipfs.yaml
3331
3432
Verify that the cluster has started by viewing the status of the cluster.
3533

3634
.. code-block:: bash
3735
38-
kubectl -n my_namespace status ipfs-sample-1
36+
kubectl -n mycluster status ipfs-sample-1

examples/collab-follow-small.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ kind: Ipfs
55
metadata:
66
name: ipfs-sample-collab
77
spec:
8-
url: apps.jephilli-4-11-04-28-0655.devcluster.openshift.com
98
ipfsStorage: 2Gi
109
clusterStorage: 1Gi
11-
public: true
1210
replicas: 1
1311
networking:
1412
circuitRelays: 1

examples/collab-follow.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ kind: IpfsCluster
44
metadata:
55
name: ipfs-sample-collab
66
spec:
7-
url: apps.jephilli-4-11-04-28-0655.devcluster.openshift.com
87
ipfsStorage: 5Ti
98
clusterStorage: 20Gi
10-
public: true
119
replicas: 5
1210
follows:
1311
- name: filecoin

examples/ipfs-small.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ metadata:
88
spec:
99
ipfsStorage: 2Gi
1010
clusterStorage: 1Gi
11-
public: false
1211
replicas: 1
1312
follows: []
1413
networking:

examples/ipfs.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ kind: IpfsCluster
44
metadata:
55
name: ipfs-sample
66
spec:
7-
url: apps.jephilli-4-11-04-28-0655.devcluster.openshift.com
87
ipfsStorage: 50Gi
98
clusterStorage: 5Gi
10-
public: true
119
replicas: 2
1210
follows: []
1311
networking:

go.mod

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ require (
99
github.com/libp2p/go-libp2p-core v0.16.1
1010
github.com/libp2p/go-libp2p-relay-daemon v0.1.1-0.20220720133550-bd5627c90f06
1111
github.com/multiformats/go-multiaddr v0.5.0
12-
github.com/onsi/ginkgo/v2 v2.1.4
13-
github.com/onsi/gomega v1.20.0
12+
github.com/onsi/ginkgo/v2 v2.7.0
13+
github.com/onsi/gomega v1.24.1
1414
k8s.io/apimachinery v0.25.0
1515
k8s.io/client-go v0.25.0
1616
sigs.k8s.io/controller-runtime v0.12.3
@@ -78,7 +78,7 @@ require (
7878
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect
7979
github.com/spaolacci/murmur3 v1.1.0 // indirect
8080
github.com/whyrusleeping/cbor-gen v0.0.0-20210219115102-f37d292932f2 // indirect
81-
golang.org/x/tools v0.1.12 // indirect
81+
golang.org/x/tools v0.4.0 // indirect
8282
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
8383
lukechampine.com/blake3 v1.1.7 // indirect
8484
)
@@ -100,7 +100,7 @@ require (
100100
github.com/gogo/protobuf v1.3.2 // indirect
101101
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
102102
github.com/golang/protobuf v1.5.2 // indirect
103-
github.com/google/go-cmp v0.5.8 // indirect
103+
github.com/google/go-cmp v0.5.9 // indirect
104104
github.com/google/gofuzz v1.2.0 // indirect
105105
github.com/google/uuid v1.3.0 // indirect
106106
github.com/imdario/mergo v0.3.13 // indirect
@@ -118,11 +118,11 @@ require (
118118
go.uber.org/multierr v1.8.0 // indirect
119119
go.uber.org/zap v1.21.0 // indirect
120120
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
121-
golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b // indirect
121+
golang.org/x/net v0.3.0 // indirect
122122
golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 // indirect
123-
golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64 // indirect
124-
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 // indirect
125-
golang.org/x/text v0.3.7 // indirect
123+
golang.org/x/sys v0.3.0 // indirect
124+
golang.org/x/term v0.3.0 // indirect
125+
golang.org/x/text v0.5.0 // indirect
126126
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect
127127
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
128128
google.golang.org/appengine v1.6.7 // indirect

0 commit comments

Comments
 (0)