Skip to content

Commit

Permalink
chart:modify the keyword radondb#75
Browse files Browse the repository at this point in the history
  • Loading branch information
runkecheng committed Apr 27, 2021
1 parent 7fd6aed commit e221b74
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 20 deletions.
4 changes: 2 additions & 2 deletions charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: xenondb
name: radondb-mysql
description: XenonDB is a High-Availability MySQL cluster, open source.
home: https://github.com/radondb/xenondb.git
home: https://github.com/radondb/radondb-mysql-kubernetes.git

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
13 changes: 8 additions & 5 deletions charts/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# RadonDB-MySQL

RadonDB-MySQL is a open-source, cloud-native, High-Availability cluster solutions that is based on MySQL.

# Github

https://github.com/radondb/radondb-mysql-kubernetes
https://github.com/radondb/radondb-mysql-kubernetes.git

# Features

- High availability MySQL database
- Non-centralized automatic leader election
- Second level switch leader to follower
Expand Down Expand Up @@ -49,16 +52,16 @@ $ helm delete my-release
To delete the pvc:

```
kubectl delete pvc data-my-release-mysql-0
kubectl delete pvc data-my-release-mysql-1
kubectl delete pvc data-my-release-mysql-2
kubectl delete pvc data-my-release-radondb-mysql-0
kubectl delete pvc data-my-release-radondb-mysql-1
kubectl delete pvc data-my-release-radondb-mysql-2
```

The commands remove all the Kubernetes components associated with the chart and deletes the release completely.

# Configuration

The following table lists the configurable parameters of the xenondb chart and their default values.
The following table lists the configurable parameters of the radondb-mysql chart and their default values.


| Parameter | Description | Default |
Expand Down
2 changes: 1 addition & 1 deletion charts/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ Create the name of the service account to use
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "xenondb.chart" -}}
{{- define "radondb-mysql.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
data:
Expand Down
4 changes: 2 additions & 2 deletions charts/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
rules:
Expand All @@ -23,7 +23,7 @@ metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
roleRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
type: Opaque
Expand Down
8 changes: 4 additions & 4 deletions charts/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- if .Values.service.annotations }}
Expand All @@ -29,7 +29,7 @@ metadata:
name: {{ template "fullname" . }}-leader
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
spec:
Expand Down Expand Up @@ -60,7 +60,7 @@ metadata:
name: {{ template "fullname" . }}-follower
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
spec:
Expand Down Expand Up @@ -91,7 +91,7 @@ metadata:
name: "{{ template "fullname" . }}-metrics"
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- if .Values.metrics.annotations }}
Expand Down
2 changes: 1 addition & 1 deletion charts/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
{{- end }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- if .Values.metrics.serviceMonitor.selector }}
Expand Down
2 changes: 1 addition & 1 deletion charts/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "fullname" . }}
chart: {{ template "xenondb.chart" . }}
chart: {{ template "radondb-mysql.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- with .Values.statefulsetAnnotations }}
Expand Down
2 changes: 1 addition & 1 deletion charts/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Default values for xenondb.
# Default values for radondb-mysql.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

Expand Down

0 comments on commit e221b74

Please sign in to comment.