mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-02-06 01:06:27 +00:00
Compare commits
1 Commits
bats
...
etcd-quota
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ec82c28e2 |
@@ -3,4 +3,4 @@ name: etcd
|
|||||||
description: Storage for Kubernetes clusters
|
description: Storage for Kubernetes clusters
|
||||||
icon: https://www.svgrepo.com/show/353714/etcd.svg
|
icon: https://www.svgrepo.com/show/353714/etcd.svg
|
||||||
type: application
|
type: application
|
||||||
version: 2.0.0
|
version: 2.0.1
|
||||||
|
|||||||
@@ -1,9 +1,20 @@
|
|||||||
|
{{- define "calculateQuotaBackendBytes" -}}
|
||||||
|
{{- $units := dict "Ki" 1024 "Mi" 1048576 "Gi" 1073741824 -}}
|
||||||
|
{{- $value := regexFind "[0-9.]+" . -}}
|
||||||
|
{{- $unit := regexFind "[a-zA-Z]+" . -}}
|
||||||
|
{{- $numericValue := float64 $value -}}
|
||||||
|
{{- $bytes := mulf $numericValue (index $units $unit) -}}
|
||||||
|
{{- $result := mulf $bytes 0.95 -}}
|
||||||
|
{{- printf "%.0f" $result -}}
|
||||||
|
{{- end -}}
|
||||||
---
|
---
|
||||||
apiVersion: etcd.aenix.io/v1alpha1
|
apiVersion: etcd.aenix.io/v1alpha1
|
||||||
kind: EtcdCluster
|
kind: EtcdCluster
|
||||||
metadata:
|
metadata:
|
||||||
name: etcd
|
name: etcd
|
||||||
spec:
|
spec:
|
||||||
|
options:
|
||||||
|
quota-backend-bytes: {{ include "calculateQuotaBackendBytes" .Values.size | quote }}
|
||||||
replicas: {{ .Values.replicas }}
|
replicas: {{ .Values.replicas }}
|
||||||
storage:
|
storage:
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
etcd 1.0.0 f7eaab0
|
etcd 1.0.0 f7eaab0
|
||||||
etcd 2.0.0 HEAD
|
etcd 2.0.0 a6d0f7cf
|
||||||
|
etcd 2.0.1 HEAD
|
||||||
ingress 1.0.0 HEAD
|
ingress 1.0.0 HEAD
|
||||||
monitoring 1.0.0 HEAD
|
monitoring 1.0.0 HEAD
|
||||||
|
|||||||
Reference in New Issue
Block a user