Skip to content

Commit

Permalink
Move image parameters to the root (#17)
Browse files Browse the repository at this point in the history
* Update image repository and tag of BanyanDB cluster

* Move image parameters to the root

* Update configuration in the document
  • Loading branch information
ButterBright authored May 13, 2024
1 parent 5f364d1 commit 5c073c1
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 39 deletions.
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The command removes all the banyandb components associated with the chart and de
| cluster.data.grpcSvc.port | int | `17912` | |
| cluster.data.name | string | `"banyandb"` | |
| cluster.data.nodeSelector | list | `[]` | |
| cluster.data.podAnnotations.example | string | `"banyandb-foo"` | |
| cluster.data.podAnnotations | string | `nil` | |
| cluster.data.podDisruptionBudget | object | `{}` | |
| cluster.data.priorityClassName | string | `""` | |
| cluster.data.replicas | int | `3` | |
Expand All @@ -63,14 +63,9 @@ The command removes all the banyandb components associated with the chart and de
| cluster.data.role | string | `"data"` | |
| cluster.data.securityContext | object | `{}` | |
| cluster.data.sidecar | list | `[]` | |
| cluster.data.tls.etcdSecretName | string | `""` | |
| cluster.data.tls.grpcSecretName | string | `""` | |
| cluster.data.tolerations | list | `[]` | |
| cluster.enabled | bool | `true` | |
| cluster.etcdEndpoints | list | `[]` | |
| cluster.image.pullPolicy | string | `"IfNotPresent"` | |
| cluster.image.repository | string | `"docker.io/apache/skywalking-banyandb"` | |
| cluster.image.tag | string | `"0.6.0"` | |
| cluster.liaison.affinity | object | `{}` | |
| cluster.liaison.env | list | `[]` | |
| cluster.liaison.grpcSvc.annotations | object | `{}` | |
Expand All @@ -90,17 +85,14 @@ The command removes all the banyandb components associated with the chart and de
| cluster.liaison.ingress.tls | list | `[]` | |
| cluster.liaison.name | string | `"banyandb"` | |
| cluster.liaison.nodeSelector | list | `[]` | |
| cluster.liaison.podAnnotations.example | string | `"banyandb-foo"` | |
| cluster.liaison.podAnnotations | string | `nil` | |
| cluster.liaison.podDisruptionBudget | object | `{}` | |
| cluster.liaison.priorityClassName | string | `""` | |
| cluster.liaison.replicas | int | `2` | |
| cluster.liaison.resources.limits | list | `[]` | |
| cluster.liaison.resources.requests | list | `[]` | |
| cluster.liaison.role | string | `"liaison"` | |
| cluster.liaison.securityContext | object | `{}` | |
| cluster.liaison.tls.etcdSecretName | string | `""` | |
| cluster.liaison.tls.grpcSecretName | string | `""` | |
| cluster.liaison.tls.httpSecretName | string | `""` | |
| cluster.liaison.tolerations | list | `[]` | |
| etcd.auth.client.caFilename | string | `""` | |
| etcd.auth.client.certFilename | string | `"tls.crt"` | |
Expand All @@ -114,6 +106,9 @@ The command removes all the banyandb components associated with the chart and de
| etcd.enabled | bool | `true` | |
| etcd.replicaCount | int | `1` | |
| fullnameOverride | string | `"banyandb"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"docker.io/apache/skywalking-banyandb"` | |
| image.tag | string | `"0.6.0"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
Expand All @@ -130,9 +125,6 @@ The command removes all the banyandb components associated with the chart and de
| standalone.httpSvc.loadBalancerSourceRanges | list | `[]` | |
| standalone.httpSvc.port | int | `17913` | |
| standalone.httpSvc.type | string | `"LoadBalancer"` | |
| standalone.image.pullPolicy | string | `"IfNotPresent"` | |
| standalone.image.repository | string | `"docker.io/apache/skywalking-banyandb"` | |
| standalone.image.tag | string | `"0.6.0"` | |
| standalone.ingress.annotations | object | `{}` | |
| standalone.ingress.enabled | bool | `false` | |
| standalone.ingress.labels | object | `{}` | |
Expand All @@ -156,14 +148,14 @@ The command removes all the banyandb components associated with the chart and de
| storage.persistentVolumeClaims[0].existingClaimName | string | `nil` | |
| storage.persistentVolumeClaims[0].mountTargets[0] | string | `"measure"` | |
| storage.persistentVolumeClaims[0].mountTargets[1] | string | `"stream"` | |
| storage.persistentVolumeClaims[0].size | string | `"200Gi"` | |
| storage.persistentVolumeClaims[0].size | string | `"50Gi"` | |
| storage.persistentVolumeClaims[0].storageClass | string | `nil` | |
| storage.persistentVolumeClaims[0].volumeMode | string | `"Filesystem"` | |
| storage.persistentVolumeClaims[1].accessModes[0] | string | `"ReadWriteOnce"` | |
| storage.persistentVolumeClaims[1].claimName | string | `"meta"` | |
| storage.persistentVolumeClaims[1].existingClaimName | string | `nil` | |
| storage.persistentVolumeClaims[1].mountTargets[0] | string | `"metadata"` | |
| storage.persistentVolumeClaims[1].size | string | `"10Gi"` | |
| storage.persistentVolumeClaims[1].size | string | `"5Gi"` | |
| storage.persistentVolumeClaims[1].storageClass | string | `nil` | |
| storage.persistentVolumeClaims[1].volumeMode | string | `"Filesystem"` | |

Expand Down
4 changes: 2 additions & 2 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ spec:
priorityClassName: {{ .Values.cluster.liaison.priorityClassName }}
containers:
- name: {{ .Values.cluster.liaison.name }}
image: {{ .Values.cluster.image.repository }}:{{ required "banyandb.image.tag is required" .Values.cluster.image.tag }}
imagePullPolicy: {{ .Values.cluster.image.pullPolicy }}
image: {{ .Values.image.repository }}:{{ required "banyandb.image.tag is required" .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range $env := .Values.cluster.liaison.env }}
- name: {{ $env.name }}
Expand Down
10 changes: 5 additions & 5 deletions chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

{{- if and .Values.standalone.enabled }}
{{- if .Values.standalone.enabled }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -53,8 +53,8 @@ spec:
priorityClassName: {{ .Values.standalone.priorityClassName }}
containers:
- name: {{ .Values.standalone.name }}
image: {{ .Values.standalone.image.repository }}:{{ required "banyandb.image.tag is required" .Values.standalone.image.tag }}
imagePullPolicy: {{ .Values.standalone.image.pullPolicy }}
image: {{ .Values.image.repository }}:{{ required "banyandb.image.tag is required" .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range $env := .Values.standalone.env }}
- name: {{ $env.name }}
Expand Down Expand Up @@ -292,8 +292,8 @@ spec:
priorityClassName: {{ .Values.cluster.data.priorityClassName }}
containers:
- name: {{ .Values.cluster.data.name }}
image: {{ .Values.cluster.image.repository }}:{{ required "banyandb.image.tag is required" .Values.cluster.image.tag }}
imagePullPolicy: {{ .Values.cluster.image.pullPolicy }}
image: {{ .Values.image.repository }}:{{ required "banyandb.image.tag is required" .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range $env := .Values.cluster.data.env }}
- name: {{ $env.name }}
Expand Down
13 changes: 5 additions & 8 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

image:
repository: docker.io/apache/skywalking-banyandb
tag: 0.6.0
pullPolicy: IfNotPresent

standalone:
enabled: false
name: banyandb
Expand All @@ -26,10 +31,6 @@ standalone:
# runAsUser: 1000
# runAsGroup: 1000
# fsGroup: 1000
image:
repository: docker.io/apache/skywalking-banyandb
tag: 0.6.0
pullPolicy: IfNotPresent
env: []
# - name: BANYANDB_FOO
# value: "bar"
Expand Down Expand Up @@ -124,10 +125,6 @@ standalone:

cluster:
enabled: true
image:
repository: ghcr.io/apache/skywalking-banyandb
tag: dc88130e8d0516c7989734bdeb505e2d92c1ab71
pullPolicy: IfNotPresent
etcdEndpoints: []
liaison:
name: banyandb
Expand Down
9 changes: 5 additions & 4 deletions test/e2e/values.cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

image:
repository: docker.io/apache/skywalking-banyandb
tag: 0.6.0
pullPolicy: IfNotPresent

cluster:
enabled: true
image:
repository: docker.io/apache/skywalking-banyandb
tag: 0.6.0
pullPolicy: IfNotPresent
etcdEndpoints: []
liaison:
name: banyandb
Expand Down
11 changes: 6 additions & 5 deletions test/e2e/values.standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ cluster:
etcd:
enabled: false

image:
repository: docker.io/apache/skywalking-banyandb
tag: 0.6.0
pullPolicy: IfNotPresent

standalone:
enabled: true
name: banyandb
Expand All @@ -32,10 +37,6 @@ standalone:
# runAsUser: 1000
# runAsGroup: 1000
# fsGroup: 1000
image:
repository: docker.io/apache/skywalking-banyandb
tag: 0.6.0
pullPolicy: IfNotPresent
env: []
# - name: BANYANDB_FOO
# value: "bar"
Expand Down Expand Up @@ -150,4 +151,4 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

fullnameOverride: "banyandb"
fullnameOverride: "banyandb"

0 comments on commit 5c073c1

Please sign in to comment.