Skip to content

Commit

Permalink
feat: support global registry and remove br related code
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <[email protected]>
  • Loading branch information
aylei committed Nov 28, 2023
1 parent 8717933 commit 57eb3e0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 228 deletions.
2 changes: 1 addition & 1 deletion charts/matrixone-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: matrixone-operator
description: Matrixone Kubernetes Operator
type: application
version: 1.0.0-rc1
version: 1.0.0-rc2
appVersion: 0.1.0
kubeVersion: ">=1.19.0-0"
icon: https://raw.githubusercontent.com/matrixorigin/artwork/main/docs/overview/logo.png
Expand Down
7 changes: 7 additions & 0 deletions charts/matrixone-operator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,10 @@ caBundle: {{ $ca.Cert | b64enc }}
tls.crt: {{ $cert.Cert | b64enc }}
tls.key: {{ $cert.Key | b64enc }}
{{- end -}}

{{/*
Generate default image
*/}}
{{- define "matrixone-operator.image" -}}
"{{ .Values.globalRegistryPrefix }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
2 changes: 1 addition & 1 deletion charts/matrixone-operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ data:
{{- end }}
brConfig: |
image: {{ .Values.backupRestore.image }}
image: "{{- .Values.globalRegistryPrefix -}}{{- .Values.backupRestore.image -}}"
2 changes: 1 addition & 1 deletion charts/matrixone-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{ include "matrixone-operator.image" . }}
command:
- /manager
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down
9 changes: 8 additions & 1 deletion charts/matrixone-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ image:
pullPolicy: IfNotPresent

backupRestore:
image: aylei/mobr
image: matrixorigin/mobr:1.0.0-rc1

# globalRegistryPrefix add a registry prefix to every image operator used, which is useful when switching operator
# to a private registry
globalRegistryPrefix: ""

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -64,6 +68,9 @@ affinity: {}

kruise:
featureGates: "StatefulSetAutoDeletePVC=true,PodUnavailableBudgetDeleteGate=true,PodUnavailableBudgetUpdateGate=true"
manager:
image:
repository: openkruise/kruise-manager

defaultArgs:
- name: logService
Expand Down
32 changes: 0 additions & 32 deletions cmd/cmdrest/go.mod

This file was deleted.

85 changes: 0 additions & 85 deletions cmd/cmdrest/go.sum

This file was deleted.

107 changes: 0 additions & 107 deletions cmd/cmdrest/main.go

This file was deleted.

0 comments on commit 57eb3e0

Please sign in to comment.