Skip to content

Commit 9024f76

Browse files
authored
rename to juicefs-operator (#155)
Signed-off-by: Xuhui zhang <[email protected]>
1 parent 4d07dcf commit 9024f76

15 files changed

+49
-49
lines changed

.github/workflows/go.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
echo "something wrong in juicefs s3 gateway chart"
4040
exit 1
4141
fi
42-
helm template charts/juicefs-cache-group-operator
42+
helm template charts/juicefs-operator
4343
rst=$?
4444
if [ $rst -ne 0 ]; then
4545
echo "something wrong in juicefs cache group operator chart"

charts/juicefs-cache-group-operator/Chart.yaml renamed to charts/juicefs-operator/Chart.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: juicefs-cache-group-operator
2+
name: juicefs-operator
33
description: A Helm chart for JuiceFS Cache Group Operator
44

55
# A chart can be either an 'application' or a 'library' chart.
@@ -22,9 +22,9 @@ version: 0.3.3
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
2424
appVersion: "0.3.3"
25-
home: https://github.com/juicedata/juicefs-cache-group-operator
25+
home: https://github.com/juicedata/juicefs-operator
2626
sources:
27-
- https://github.com/juicedata/juicefs-cache-group-operator
27+
- https://github.com/juicedata/juicefs-operator
2828
icon: https://s.juicefs.com/static/jfs/logo.svg
2929
maintainers:
3030

charts/juicefs-cache-group-operator/README.md renamed to charts/juicefs-operator/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
This Helm chart installs the JuiceFS Cache Group Operator.
77

8-
**Homepage:** <https://github.com/juicedata/juicefs-cache-group-operator>
8+
**Homepage:** <https://github.com/juicedata/juicefs-operator>
99

1010
## Maintainers
1111

@@ -15,7 +15,7 @@ This Helm chart installs the JuiceFS Cache Group Operator.
1515

1616
## Source Code
1717

18-
* <https://github.com/juicedata/juicefs-cache-group-operator>
18+
* <https://github.com/juicedata/juicefs-operator>
1919

2020
## Requirements
2121

@@ -28,7 +28,7 @@ The following table lists the configurable parameters of the JuiceFS Cache Group
2828
| Parameter | Description | Default |
2929
| ------------------------------------ | ----------------------------------------------------- | -------------------------------------------------------------------- |
3030
| `replicaCount` | Number of replicas for the deployment | `2` |
31-
| `image.repository` | Image repository | `juicedata/juicefs-cache-group-operator` |
31+
| `image.repository` | Image repository | `juicedata/juicefs-operator` |
3232
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
3333
| `image.tag` | Image tag | `${Chart.AppVersion}` |
3434
| `logLevel` | Logging verbosity level | `info` |

charts/juicefs-cache-group-operator/templates/NOTES.txt renamed to charts/juicefs-operator/templates/NOTES.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
1. Wait for the operator to be ready using kubectl wait:
22

3-
kubectl wait --for=condition=Available=true --timeout=120s deployment/juicefs-cache-group-operator
3+
kubectl wait --for=condition=Available=true --timeout=120s deployment/juicefs-operator
44

55
2. Create the sample Cache Group Cluster
66

@@ -30,6 +30,6 @@ spec:
3030
If you are upgrading from a version of the chart that uses older Custom Resource Definitions (CRD) it is necessary to manually upgrade the CRDs as this is not managed by Helm.
3131
To update to the latest version of the CRDs:
3232

33-
$ kubectl apply -f https://raw.githubusercontent.com/juicedata/juicefs-cache-group-operator/refs/tags/v{{ .Chart.AppVersion }}/dist/crd.yaml
33+
$ kubectl apply -f https://raw.githubusercontent.com/juicedata/juicefs-operator/refs/tags/v{{ .Chart.AppVersion }}/dist/crd.yaml
3434

3535
{{- end -}}

charts/juicefs-cache-group-operator/templates/_helpers.tpl renamed to charts/juicefs-operator/templates/_helpers.tpl

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "juicefs-cache-group-operator.name" -}}
4+
{{- define "juicefs-operator.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,12 +10,12 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "juicefs-cache-group-operator.fullname" -}}
13+
{{- define "juicefs-operator.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
1717
{{- $name := default .Chart.Name .Values.nameOverride }}
18-
{{- if contains $name .Release.Name }}
18+
{{- if or (contains $name .Release.Name) (contains "juicefs-cache-group-operator" .Release.Name ) }}
1919
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
2020
{{- else }}
2121
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "juicefs-cache-group-operator.chart" -}}
29+
{{- define "juicefs-operator.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
3232

3333
{{/*
3434
Common labels
3535
*/}}
36-
{{- define "juicefs-cache-group-operator.labels" -}}
37-
helm.sh/chart: {{ include "juicefs-cache-group-operator.chart" . }}
38-
{{ include "juicefs-cache-group-operator.selectorLabels" . }}
36+
{{- define "juicefs-operator.labels" -}}
37+
helm.sh/chart: {{ include "juicefs-operator.chart" . }}
38+
{{ include "juicefs-operator.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
@@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{/*
4646
Selector labels
4747
*/}}
48-
{{- define "juicefs-cache-group-operator.selectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "juicefs-cache-group-operator.name" . }}
48+
{{- define "juicefs-operator.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "juicefs-operator.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252

5353
{{/*
5454
Create the name of the service account to use
5555
*/}}
56-
{{- define "juicefs-cache-group-operator.serviceAccountName" -}}
56+
{{- define "juicefs-operator.serviceAccountName" -}}
5757
{{- if .Values.serviceAccount.create }}
58-
{{- default (include "juicefs-cache-group-operator.fullname" .) .Values.serviceAccount.name }}
58+
{{- default (include "juicefs-operator.fullname" .) .Values.serviceAccount.name }}
5959
{{- else }}
6060
{{- default "default" .Values.serviceAccount.name }}
6161
{{- end }}

charts/juicefs-cache-group-operator/templates/dashboard.yaml renamed to charts/juicefs-operator/templates/dashboard.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ kind: Deployment
1010
metadata:
1111
labels:
1212
app.kubernetes.io/component: dashboard
13-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
13+
{{- include "juicefs-operator.labels" . | nindent 4 }}
1414
{{- if .Values.dashboard.labels }}
1515
{{- toYaml .Values.dashboard.labels | nindent 4}}
1616
{{- end}}
@@ -25,12 +25,12 @@ spec:
2525
selector:
2626
matchLabels:
2727
app: juicefs-csi-dashboard
28-
{{- include "juicefs-cache-group-operator.selectorLabels" . | nindent 6 }}
28+
{{- include "juicefs-operator.selectorLabels" . | nindent 6 }}
2929
template:
3030
metadata:
3131
labels:
3232
app: juicefs-csi-dashboard
33-
{{- include "juicefs-cache-group-operator.selectorLabels" . | nindent 8 }}
33+
{{- include "juicefs-operator.selectorLabels" . | nindent 8 }}
3434
{{- if .Values.dashboard.labels }}
3535
{{- toYaml .Values.dashboard.labels | nindent 8}}
3636
{{- end}}
@@ -39,7 +39,7 @@ spec:
3939
{{- toYaml . | nindent 8 }}
4040
{{- end }}
4141
spec:
42-
serviceAccountName: {{ include "juicefs-cache-group-operator.serviceAccountName" . }}
42+
serviceAccountName: {{ include "juicefs-operator.serviceAccountName" . }}
4343
{{- with .Values.imagePullSecrets }}
4444
imagePullSecrets:
4545
{{- toYaml . | nindent 8 }}

charts/juicefs-cache-group-operator/templates/deployment.yaml renamed to charts/juicefs-operator/templates/deployment.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: {{ include "juicefs-cache-group-operator.fullname" . }}
4+
name: {{ include "juicefs-operator.fullname" . }}
55
namespace: {{ .Release.Namespace}}
66
labels:
7-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
7+
{{- include "juicefs-operator.labels" . | nindent 4 }}
88
spec:
99
replicas: {{ .Values.replicaCount }}
1010
selector:
1111
matchLabels:
12-
{{- include "juicefs-cache-group-operator.selectorLabels" . | nindent 6 }}
12+
{{- include "juicefs-operator.selectorLabels" . | nindent 6 }}
1313
template:
1414
metadata:
1515
{{- with .Values.podAnnotations }}
1616
annotations:
1717
{{- toYaml . | nindent 8 }}
1818
{{- end }}
1919
labels:
20-
{{- include "juicefs-cache-group-operator.labels" . | nindent 8 }}
20+
{{- include "juicefs-operator.labels" . | nindent 8 }}
2121
{{- with .Values.podLabels }}
2222
{{- toYaml . | nindent 8 }}
2323
{{- end }}
@@ -26,7 +26,7 @@ spec:
2626
imagePullSecrets:
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
29-
serviceAccountName: {{ include "juicefs-cache-group-operator.serviceAccountName" . }}
29+
serviceAccountName: {{ include "juicefs-operator.serviceAccountName" . }}
3030
securityContext:
3131
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3232
containers:

charts/juicefs-cache-group-operator/templates/ingress.yaml renamed to charts/juicefs-operator/templates/ingress.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ metadata:
1717
name: juicefs-csi-dashboard
1818
namespace: {{ .Release.Namespace | quote }}
1919
labels:
20-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
20+
{{- include "juicefs-operator.labels" . | nindent 4 }}
2121
{{- with .Values.dashboard.ingress.annotations }}
2222
annotations:
2323
{{- toYaml . | nindent 4 }}

charts/juicefs-cache-group-operator/templates/rbac.yaml renamed to charts/juicefs-operator/templates/rbac.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: Role
33
metadata:
44
labels:
5-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
6-
name: {{ include "juicefs-cache-group-operator.fullname" . }}-leader-election-role
5+
{{- include "juicefs-operator.labels" . | nindent 4 }}
6+
name: {{ include "juicefs-operator.fullname" . }}-leader-election-role
77
namespace: {{ .Release.Namespace }}
88
rules:
99
- apiGroups:
@@ -42,8 +42,8 @@ apiVersion: rbac.authorization.k8s.io/v1
4242
kind: ClusterRole
4343
metadata:
4444
labels:
45-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
46-
name: {{ include "juicefs-cache-group-operator.fullname" . }}-manager-role
45+
{{- include "juicefs-operator.labels" . | nindent 4 }}
46+
name: {{ include "juicefs-operator.fullname" . }}-manager-role
4747
rules:
4848
- apiGroups:
4949
- ""
@@ -195,29 +195,29 @@ apiVersion: rbac.authorization.k8s.io/v1
195195
kind: RoleBinding
196196
metadata:
197197
labels:
198-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
199-
name: {{ include "juicefs-cache-group-operator.fullname" . }}-leader-election-rolebinding
198+
{{- include "juicefs-operator.labels" . | nindent 4 }}
199+
name: {{ include "juicefs-operator.fullname" . }}-leader-election-rolebinding
200200
namespace: {{ .Release.Namespace }}
201201
roleRef:
202202
apiGroup: rbac.authorization.k8s.io
203203
kind: Role
204-
name: {{ include "juicefs-cache-group-operator.fullname" . }}-leader-election-role
204+
name: {{ include "juicefs-operator.fullname" . }}-leader-election-role
205205
subjects:
206206
- kind: ServiceAccount
207-
name: {{ include "juicefs-cache-group-operator.serviceAccountName" . }}
207+
name: {{ include "juicefs-operator.serviceAccountName" . }}
208208
namespace: {{ .Release.Namespace }}
209209
---
210210
apiVersion: rbac.authorization.k8s.io/v1
211211
kind: ClusterRoleBinding
212212
metadata:
213213
labels:
214-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
215-
name: {{ include "juicefs-cache-group-operator.fullname" . }}-manager-rolebinding
214+
{{- include "juicefs-operator.labels" . | nindent 4 }}
215+
name: {{ include "juicefs-operator.fullname" . }}-manager-rolebinding
216216
roleRef:
217217
apiGroup: rbac.authorization.k8s.io
218218
kind: ClusterRole
219-
name: {{ include "juicefs-cache-group-operator.fullname" . }}-manager-role
219+
name: {{ include "juicefs-operator.fullname" . }}-manager-role
220220
subjects:
221221
- kind: ServiceAccount
222-
name: {{ include "juicefs-cache-group-operator.serviceAccountName" . }}
222+
name: {{ include "juicefs-operator.serviceAccountName" . }}
223223
namespace: {{ .Release.Namespace }}

charts/juicefs-cache-group-operator/templates/secret.yaml renamed to charts/juicefs-operator/templates/secret.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: {{ .Release.Namespace | quote }}
77
labels:
88
app.kubernetes.io/component: dashboard-secret
9-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
9+
{{- include "juicefs-operator.labels" . | nindent 4 }}
1010
type: Opaque
1111
stringData:
1212
username: {{ .Values.dashboard.auth.username }}

charts/juicefs-cache-group-operator/templates/service.yaml renamed to charts/juicefs-operator/templates/service.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
namespace: {{ .Release.Namespace | quote }}
88
labels:
99
app.kubernetes.io/component: dashboard
10-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
10+
{{- include "juicefs-operator.labels" . | nindent 4 }}
1111
spec:
1212
type: {{ .Values.dashboard.service.type }}
1313
ports:
@@ -17,5 +17,5 @@ spec:
1717
name: http
1818
selector:
1919
app: juicefs-csi-dashboard
20-
{{- include "juicefs-cache-group-operator.selectorLabels" . | nindent 4 }}
20+
{{- include "juicefs-operator.selectorLabels" . | nindent 4 }}
2121
{{- end }}

charts/juicefs-cache-group-operator/templates/serviceaccount.yaml renamed to charts/juicefs-operator/templates/serviceaccount.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: {{ include "juicefs-cache-group-operator.serviceAccountName" . }}
5+
name: {{ include "juicefs-operator.serviceAccountName" . }}
66
labels:
7-
{{- include "juicefs-cache-group-operator.labels" . | nindent 4 }}
7+
{{- include "juicefs-operator.labels" . | nindent 4 }}
88
{{- with .Values.serviceAccount.annotations }}
99
annotations:
1010
{{- toYaml . | nindent 4 }}

charts/juicefs-cache-group-operator/values.yaml renamed to charts/juicefs-operator/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Default values for juicefs-cache-group-operator.
1+
# Default values for juicefs-operator.
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

55
replicaCount: 2
66

77
image:
8-
repository: juicedata/juicefs-cache-group-operator
8+
repository: juicedata/juicefs-operator
99
pullPolicy: IfNotPresent
1010
# Overrides the image tag whose default is the chart appVersion.
1111
tag: "v0.3.3"

0 commit comments

Comments
 (0)