Skip to content

Commit c7b1f8f

Browse files
committed
update manifests && crds
Signed-off-by: Oleg S <[email protected]>
1 parent 080e796 commit c7b1f8f

7 files changed

+52
-22
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ test: lint manifests generate fmt vet lint envtest ginkgo ## Run tests.
137137
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" $(GINKGO) run $(GINKGO_ARGS) $(GINKGO_TARGETS)
138138

139139
.PHONY: test-e2e
140-
test-e2e: kuttl ## Run e2e tests. Requires cluster w/ Scribe already installed
140+
test-e2e: kuttl ## Run e2e tests. Requires cluster w/ IPFS Operator already installed.
141141
cd test-kuttl && $(KUTTL) test
142142
rm -f test-kuttl/kubeconfig
143143

@@ -318,7 +318,8 @@ endef
318318
.PHONY: kuttl
319319
KUTTL := $(LOCALBIN)/kuttl
320320
KUTTL_URL := https://github.com/kudobuilder/kuttl/releases/download/v$(KUTTL_VERSION)/kubectl-kuttl_$(KUTTL_VERSION)_linux_x86_64
321-
kuttl: ## Download kuttl
321+
kuttl: $(KUTTL) ## Download kuttl
322+
$(KUTTL): $(LOCALBIN)
322323
$(call download-tool,$(KUTTL),$(KUTTL_URL))
323324

324325
.PHONY: ginkgo

bundle.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
66
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
77
LABEL operators.operatorframework.io.bundle.package.v1=ipfs-operator
88
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
9-
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.22.0
9+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.26.0
1010
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
1111
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
1212

bundle/manifests/cluster.ipfs.io_ipfsclusters.yaml

-8
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ spec:
102102
required:
103103
- circuitRelays
104104
type: object
105-
public:
106-
description: public determines whether or not we should be exposing
107-
this IPFS Cluster to the public.
108-
type: boolean
109105
replicas:
110106
description: replicas sets the number of replicas of IPFS Cluster
111107
nodes we should be running.
@@ -128,15 +124,11 @@ spec:
128124
- roots
129125
type: string
130126
type: object
131-
url:
132-
description: url defines the URL to be using as an ingress controller.
133-
type: string
134127
required:
135128
- clusterStorage
136129
- follows
137130
- ipfsStorage
138131
- networking
139-
- public
140132
- replicas
141133
type: object
142134
status:

bundle/manifests/ipfs-operator.clusterserviceversion.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ metadata:
2222
}
2323
]
2424
capabilities: Basic Install
25-
operators.operatorframework.io/builder: operator-sdk-v1.22.0
25+
createdAt: "2023-01-19T17:29:48Z"
26+
operators.operatorframework.io/builder: operator-sdk-v1.26.0
2627
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
2728
name: ipfs-operator.v0.0.1
2829
namespace: placeholder

bundle/metadata/annotations.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ annotations:
55
operators.operatorframework.io.bundle.metadata.v1: metadata/
66
operators.operatorframework.io.bundle.package.v1: ipfs-operator
77
operators.operatorframework.io.bundle.channels.v1: alpha
8-
operators.operatorframework.io.metrics.builder: operator-sdk-v1.22.0
8+
operators.operatorframework.io.metrics.builder: operator-sdk-v1.26.0
99
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
1010
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
1111

helm/ipfs-operator/crds/CustomResourceDefinition-circuitrelays.cluster.ipfs.io.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.8.0
66
creationTimestamp: null
7-
labels: {}
87
name: circuitrelays.cluster.ipfs.io
98
spec:
109
group: cluster.ipfs.io

helm/ipfs-operator/crds/CustomResourceDefinition-ipfsclusters.cluster.ipfs.io.yaml

+45-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.8.0
66
creationTimestamp: null
7-
labels: {}
87
name: ipfsclusters.cluster.ipfs.io
98
spec:
109
group: cluster.ipfs.io
@@ -33,10 +32,19 @@ spec:
3332
metadata:
3433
type: object
3534
spec:
35+
description: IpfsClusterSpec defines the desired state of the IpfsCluster.
3636
properties:
3737
clusterStorage:
38-
type: string
38+
anyOf:
39+
- type: integer
40+
- type: string
41+
description: clusterStorage defines the amount of storage to be used
42+
by IPFS Cluster.
43+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
44+
x-kubernetes-int-or-string: true
3945
follows:
46+
description: follows defines the list of other IPFS Clusters this
47+
one should follow.
4048
items:
4149
properties:
4250
name:
@@ -48,27 +56,59 @@ spec:
4856
- template
4957
type: object
5058
type: array
59+
ipfsResources:
60+
description: ipfsResources specifies the resource requirements for
61+
each IPFS container. If this value is omitted, then the operator
62+
will automatically determine these settings based on the storage
63+
sizes used.
64+
properties:
65+
limits:
66+
additionalProperties:
67+
anyOf:
68+
- type: integer
69+
- type: string
70+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
71+
x-kubernetes-int-or-string: true
72+
description: 'Limits describes the maximum amount of compute resources
73+
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
74+
type: object
75+
requests:
76+
additionalProperties:
77+
anyOf:
78+
- type: integer
79+
- type: string
80+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
81+
x-kubernetes-int-or-string: true
82+
description: 'Requests describes the minimum amount of compute
83+
resources required. If Requests is omitted for a container,
84+
it defaults to Limits if that is explicitly specified, otherwise
85+
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
86+
type: object
87+
type: object
5188
ipfsStorage:
5289
anyOf:
5390
- type: integer
5491
- type: string
92+
description: ipfsStorage defines the total storage to be allocated
93+
by this resource.
5594
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
5695
x-kubernetes-int-or-string: true
5796
networking:
97+
description: networking defines network configuration settings.
5898
properties:
5999
circuitRelays:
60100
format: int32
61101
type: integer
62102
required:
63103
- circuitRelays
64104
type: object
65-
public:
66-
type: boolean
67105
replicas:
106+
description: replicas sets the number of replicas of IPFS Cluster
107+
nodes we should be running.
68108
format: int32
69109
type: integer
70110
reprovider:
71-
description: Reprovider Describes the settings that each IPFS node
111+
description: reprovider Describes the settings that each IPFS node
72112
should use when reproviding content.
73113
properties:
74114
interval:
@@ -84,14 +124,11 @@ spec:
84124
- roots
85125
type: string
86126
type: object
87-
url:
88-
type: string
89127
required:
90128
- clusterStorage
91129
- follows
92130
- ipfsStorage
93131
- networking
94-
- public
95132
- replicas
96133
type: object
97134
status:

0 commit comments

Comments
 (0)