Skip to content

Commit ef2efc7

Browse files
committed
update deployment plan and add makefile
1 parent 2692d3b commit ef2efc7

File tree

15 files changed

+33
-123
lines changed

15 files changed

+33
-123
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,7 @@ kubeconfig.yaml
8181
./deployment.yaml
8282
./tarantool-operator
8383
helm_values.yaml
84+
deploy/*
85+
86+
ci/helm-chart/templates/crds/tarantool.io_*s_crd.yaml
87+
ci/helm-chart/templates/crds/tarantool_*_cr.yaml

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
docker:
2+
docker build -f build/Dockerfile -t tarantool-operator .
3+
4+
crds:
5+
operator-sdk generate crds
6+
cp -r deploy/* ./ci/helm-chart/templates/

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,24 @@ Tarantool Operator is up and running.
233233
234234
This will add one more replica to each Storages Role replica set. View the new cluster topology via the cluster web UI.
235235
236+
## Development
237+
238+
### Regenerate the Custom Resource Definitions
239+
240+
```shell
241+
make crds
242+
```
243+
236244
### Building tarantool-operator docker image
237245
238246
```shell
239-
docker build -f build/Dockerfile -t tarantool-operator .
247+
make docker
240248
```
241249
242250
### Running tests
243251
244252
```shell
253+
# In the examples/kv directory
245254
make build
246255
make start
247256
./bootstrap.sh

ci/helm-chart/.helmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@
2121
.idea/
2222
*.tmproj
2323
.vscode/
24+
# ignore the custom resource examples
25+
templates/crds/tarantool_*cr.yaml
26+
# Ignore plural definitions, not required
27+
templates/crds/tarantool.io_replicasettemplates_crd.yaml
28+
templates/crds/tarantool.io_roles_crd.yaml
29+
templates/crds/tarantool.io_clusters_crd.yaml

ci/helm-chart/templates/crds/tarantool_v1alpha1_replicasettemplate_crd.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: apiextensions.k8s.io/v1beta1
32
kind: CustomResourceDefinition
43
metadata:
@@ -39,4 +38,3 @@ spec:
3938
- name: v1alpha1
4039
served: true
4140
storage: true
42-
---

ci/helm-chart/templates/crds/tarantool_v1alpha1_role_crd.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: apiextensions.k8s.io/v1beta1
32
kind: CustomResourceDefinition
43
metadata:
@@ -77,4 +76,3 @@ spec:
7776
- name: v1alpha1
7877
served: true
7978
storage: true
80-
---

ci/helm-chart/templates/role.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
---
21
apiVersion: rbac.authorization.k8s.io/v1
32
kind: Role
43
metadata:
54
creationTimestamp: null
65
name: tarantool-operator
7-
namespace: {{ .Values.namespace }}
86
rules:
97
- apiGroups:
108
- ""
@@ -52,4 +50,3 @@ rules:
5250
- replicasettemplates
5351
verbs:
5452
- '*'
55-
---
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
---
21
kind: RoleBinding
32
apiVersion: rbac.authorization.k8s.io/v1
43
metadata:
54
name: tarantool-operator
6-
namespace: {{ .Values.namespace }}
75
subjects:
86
- kind: ServiceAccount
97
name: tarantool-operator
108
roleRef:
119
kind: Role
1210
name: tarantool-operator
1311
apiGroup: rbac.authorization.k8s.io
14-
---
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
---
21
apiVersion: v1
32
kind: ServiceAccount
43
metadata:
54
name: tarantool-operator
6-
namespace: {{ .Values.namespace }}
7-
---

deploy/operator.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)