Skip to content

Commit

Permalink
Merge pull request #74 from runkecheng/rename_keyword
Browse files Browse the repository at this point in the history
charts: modify the keyword #75
  • Loading branch information
andyli029 authored Apr 27, 2021
2 parents 5aca39d + 7230d9c commit 1c48d9f
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 28 deletions.
6 changes: 3 additions & 3 deletions charts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: xenondb
description: XenonDB is a High-Availability MySQL cluster, open source.
home: https://github.com/radondb/xenondb.git
name: radondb-mysql
description: RadonDB MySQL is a High-Availability MySQL cluster, open source.
home: https://github.com/radondb/radondb-mysql-kubernetes.git

# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
13 changes: 7 additions & 6 deletions charts/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# RadonDB MySQL
RadonDB MySQL is a open-source, cloud-native, High-Availability cluster solutions that is based on MySQL.

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

# Github

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

# Features

- High availability MySQL database
- Non-centralized automatic leader election
- Second level switch leader to follower
Expand Down Expand Up @@ -50,17 +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
12 changes: 6 additions & 6 deletions docs/zh-cn/charts.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# XenonDB Charts
# RadonDB MySQL Charts

## 简介

XenonDB chart 使用 [Helm](https://helm.sh) 包管理器在 [Kubernetes](http://kubernetes.io) 集群上部署一主多从 [MySQL](https://MySQL.org) 集群。
RadonDB MySQL chart 使用 [Helm](https://helm.sh) 包管理器在 [Kubernetes](http://kubernetes.io) 集群上部署一主多从 [MySQL](https://MySQL.org) 集群。

## 先决条件

Expand Down Expand Up @@ -37,16 +37,16 @@ $ helm delete my-release
删除持久化存储卷:

```
kubectl delete pvc data-my-release-xenondb-0
kubectl delete pvc data-my-release-xenondb-1
kubectl delete pvc data-my-release-xenondb-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
```

以上指令会删除所有与该 Chart 关联的 Kubernets 组件,并彻底删除该 release。

## 配置

下表列出了 xenondb chart 的配置参数及对应的默认值。
下表列出了 RadonDB MySQL chart 的配置参数及对应的默认值。

| 参数 | 描述 | 默认值 |
| -------------------------------------------- | -------------------------------------------------------- | -------------------------------------- |
Expand Down

0 comments on commit 1c48d9f

Please sign in to comment.