Skip to content

Commit b2d246c

Browse files
committed
Removes unused fields
1 parent 404e3ca commit b2d246c

8 files changed

+3
-27
lines changed

README.md

-2
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

-5
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

-8
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

+3-5
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

-2
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

-2
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

-1
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

-2
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:

0 commit comments

Comments
 (0)