Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions helm/fdb-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v2
name: fdb-operator
description: A Helm chart for foundationDB operator

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.16.0
6 changes: 6 additions & 0 deletions helm/fdb-operator/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FoundationDB operator has been installed successfully.

To see the logs of the operator you can use below command
kubectl logs deployment/{{ .Values.operator.name }} -n <namespace-name> -f

Thanks for trying out FoundationDB helm chart.
14 changes: 14 additions & 0 deletions helm/fdb-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{/*
Common labels
*/}}
{{- define "chart.labels" -}}
app: fdb-kubernetes-operator-controller-manager
control-plane: controller-manager
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "chart.selectorLabels" -}}
app: fdb-kubernetes-operator-controller-manager
{{- end -}}
36 changes: 36 additions & 0 deletions helm/fdb-operator/templates/manager/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
{{- include "chart.labels" . | nindent 4 }}
name: {{ .Values.operator.name }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "chart.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "chart.labels" . | nindent 8 }}
spec:
containers:
- args:
- --enable-leader-election
command:
- /manager
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: {{ .Values.operator.image }}:{{ .Values.operator.tag }}
name: manager
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 500m
memory: 256Mi
terminationGracePeriodSeconds: 10
78 changes: 78 additions & 0 deletions helm/fdb-operator/templates/rbac/rbac_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: {{ .Values.operator.role }}
rules:
- apiGroups:
- ""
resources:
- pods
- configmaps
- persistentvolumeclaims
- events
verbs:
- get
- watch
- list
- create
- update
- patch
- delete
- apiGroups:
- apps.foundationdb.org
resources:
- foundationdbclusters
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- apps.foundationdb.org
resources:
- foundationdbclusters/status
verbs:
- get
- update
- patch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- services
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
12 changes: 12 additions & 0 deletions helm/fdb-operator/templates/rbac/rbac_role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
name: {{ .Values.operator.rolebinding }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Values.operator.role }}
subjects:
- kind: ServiceAccount
name: default
Empty file.
6 changes: 6 additions & 0 deletions helm/fdb-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
operator:
name: fdb-kubernetes-operator-controller-manager
image: foundationdb/fdb-kubernetes-operator
tag: 0.4.0
role: fdb-kubernetes-operator-manager-role
rolebinding: fdb-kubernetes-operator-manager-rolebinding