Skip to content

Commit

Permalink
support: install option for kubeblocks-csi-driver (apecloud#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
JingchengLi authored Mar 31, 2023
1 parent ccae95d commit 1cd6563
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
50 changes: 50 additions & 0 deletions deploy/helm/templates/addons/csi-driver-addon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: extensions.kubeblocks.io/v1alpha1
kind: Addon
metadata:
name: kubeblocks-csi-driver
labels:
{{- include "kubeblocks.labels" . | nindent 4 }}
spec:
description: 'Kubeblocks CSI driver provides a container storage interface used by Container Orchestrators
to manage the lifecycle of block storage for cloud vendors.'
type: Helm

helm:
# chartLocationURL: https://github.com/apecloud/helm-charts/releases/download/kubeblocks-csi-driver-0.1.0/kubeblocks-csi-driver-0.1.0.tgz
chartLocationURL: https://jihulab.com/api/v4/projects/85949/packages/helm/stable/charts/kubeblocks-csi-driver-0.1.0.tgz
valuesMapping:
valueMap:
replicaCount: controller.replicaCount
jsonMap:
tolerations: controller.tolerations

resources:
cpu:
requests: controller.resources.requests.cpu
limits: controller.resources.limits.cpu
memory:
requests: controller.resources.requests.memory
limits: controller.resources.limits.memory
extras:
- name: node
jsonMap:
tolerations: node.tolerations

resources:
cpu:
requests: node.resources.requests.cpu
limits: node.resources.limits.cpu
memory:
requests: node.resources.requests.memory
limits: node.resources.limits.memory

defaultInstallValues:
- enabled: false

installable:
autoInstall: {{ get ( get ( .Values | toYaml | fromYaml ) "kubeblocks-csi-driver" ) "enabled" }}
selectors:
- key: KubeGitVersion
operator: Contains
values:
- eks
3 changes: 3 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,9 @@ snapshot-controller:
values:
- "true"

kubeblocks-csi-driver:
enabled: false

## csi-s3 settings
## ref: https://artifacthub.io/packages/helm/cloudve/csi-s3#configuration
##
Expand Down
1 change: 1 addition & 0 deletions docs/release_notes/v0.1.0/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ We would like to extend our appreciation to all contributors who helped make thi
* Prometheus and Alertmanager
* AlertManager Webhook Adaptor
* Grafana
* Kubeblocks CSI driver
* S3 CSI driver
* Snapshot Controller
* KubeBlocks private network Load Balancer
Expand Down

0 comments on commit 1cd6563

Please sign in to comment.