Skip to content

Commit 1f7a925

Browse files
committed
Adding helm support for deploying the operators
1 parent 3aa111b commit 1f7a925

File tree

11 files changed

+318
-50
lines changed

11 files changed

+318
-50
lines changed

manifests/templates/deployment-replication/deployment-replication.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ .DeploymentReplication.FilterStart }}
12

23
apiVersion: extensions/v1beta1
34
kind: Deployment
@@ -14,6 +15,7 @@ spec:
1415
name: {{ .DeploymentReplication.OperatorDeploymentName }}
1516
app: arango-deployment-replication-operator
1617
spec:
18+
serviceAccountName: {{ .DeploymentReplication.Operator.ServiceAccountName }}
1719
containers:
1820
- name: operator
1921
imagePullPolicy: {{ .ImagePullPolicy }}
@@ -59,3 +61,5 @@ spec:
5961
operator: "Exists"
6062
effect: "NoExecute"
6163
tolerationSeconds: 5
64+
65+
{{ .DeploymentReplication.FilterEnd }}

manifests/templates/deployment-replication/rbac.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
{{- if .RBAC -}}
1+
{{ .DeploymentReplication.FilterStart }}
2+
{{ .RBACFilterStart }}
3+
24
## Cluster role granting access to ArangoDeploymentReplication resources.
35
apiVersion: rbac.authorization.k8s.io/v1beta1
46
kind: ClusterRole
@@ -72,4 +74,5 @@ subjects:
7274
name: {{ .DeploymentReplication.Operator.ServiceAccountName }}
7375
namespace: {{ .DeploymentReplication.Operator.Namespace }}
7476

75-
{{- end -}}
77+
{{ .RBACFilterEnd }}
78+
{{ .DeploymentReplication.FilterEnd }}

manifests/templates/deployment-replication/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{ .DeploymentReplication.FilterStart }}
2+
13
apiVersion: v1
24
kind: Service
35
metadata:
@@ -17,3 +19,5 @@ spec:
1719
app: arango-deployment-replication-operator
1820
role: leader
1921
type: {{ .DeploymentReplication.Operator.ServiceType }}
22+
23+
{{ .DeploymentReplication.FilterEnd }}

manifests/templates/deployment/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ .Deployment.FilterStart }}
12

23
apiVersion: extensions/v1beta1
34
kind: Deployment
@@ -14,6 +15,7 @@ spec:
1415
name: {{ .Deployment.OperatorDeploymentName }}
1516
app: arango-deployment-operator
1617
spec:
18+
serviceAccountName: {{ .Deployment.Operator.ServiceAccountName }}
1719
containers:
1820
- name: operator
1921
imagePullPolicy: {{ .ImagePullPolicy }}
@@ -60,3 +62,5 @@ spec:
6062
operator: "Exists"
6163
effect: "NoExecute"
6264
tolerationSeconds: 5
65+
66+
{{ .Deployment.FilterEnd }}

manifests/templates/deployment/rbac.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
{{- if .RBAC -}}
1+
{{ .Deployment.FilterStart }}
2+
{{ .RBACFilterStart }}
3+
24
## Cluster role granting access to ArangoDeployment resources.
35
apiVersion: rbac.authorization.k8s.io/v1beta1
46
kind: ClusterRole
@@ -72,4 +74,5 @@ subjects:
7274
name: {{ .Deployment.Operator.ServiceAccountName }}
7375
namespace: {{ .Deployment.Operator.Namespace }}
7476

75-
{{- end -}}
77+
{{ .RBACFilterEnd }}
78+
{{ .Deployment.FilterEnd }}

manifests/templates/deployment/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{ .Deployment.FilterStart }}
2+
13
apiVersion: v1
24
kind: Service
35
metadata:
@@ -17,3 +19,5 @@ spec:
1719
app: arango-deployment-operator
1820
role: leader
1921
type: {{ .Deployment.Operator.ServiceType }}
22+
23+
{{ .Deployment.FilterEnd }}

manifests/templates/storage/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{ .Storage.FilterStart }}
2+
13
## Service accounts
24
apiVersion: v1
35
kind: ServiceAccount
@@ -68,3 +70,5 @@ spec:
6870
operator: "Exists"
6971
effect: "NoExecute"
7072
tolerationSeconds: 5
73+
74+
{{ .Storage.FilterEnd }}

manifests/templates/storage/rbac.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
{{ .Storage.FilterStart }}
2+
{{ .RBACFilterStart }}
13

2-
{{- if .RBAC -}}
34
## Cluster role granting access to ArangoLocalStorage resources.
45
apiVersion: rbac.authorization.k8s.io/v1beta1
56
kind: ClusterRole
@@ -81,4 +82,6 @@ subjects:
8182
- kind: ServiceAccount
8283
name: {{ .Storage.Operator.ServiceAccountName }}
8384
namespace: {{ .Storage.Operator.Namespace }}
84-
{{- end -}}
85+
86+
{{ .RBACFilterEnd }}
87+
{{ .Storage.FilterEnd }}

manifests/templates/storage/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{ .Storage.FilterStart }}
2+
13
apiVersion: v1
24
kind: Service
35
metadata:
@@ -17,3 +19,5 @@ spec:
1719
app: arango-storage-operator
1820
role: leader
1921
type: {{ .Storage.Operator.ServiceType }}
22+
23+
{{ .Storage.FilterEnd }}

manifests/templates/test/rbac.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .RBAC -}}
1+
{{ .RBACFilterStart }}
22

33
## Cluster role granting access to resources needed by the integration tests.
44
apiVersion: rbac.authorization.k8s.io/v1beta1
@@ -34,4 +34,4 @@ subjects:
3434
name: {{ .Test.ServiceAccountName }}
3535
namespace: {{ .Test.Namespace }}
3636

37-
{{- end -}}
37+
{{ .RBACFilterEnd }}

0 commit comments

Comments
 (0)