Skip to content

Commit

Permalink
set archiver ref
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Dec 19, 2024
1 parent ea15c12 commit 9cc2962
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
9 changes: 6 additions & 3 deletions charts/kubedbcom-mariadb-editor-options/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedbcom-mariadb-editor-options.labels" . | nindent 4 }}
{{- if .Values.spec.admin.archiver.enable.default }}
kubedb.com/archiver: "true"
{{- end }}
{{- if .Values.spec.annotations }}
annotations:
{{- include "kubedbcom-mariadb-editor-options.annotations" . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.spec.admin.archiver.enable.default }}
archiver:
ref:
name: {{ .Values.spec.archiverName }}
namespace: kubedb
{{- end }}
version: {{ .Values.spec.admin.databases.MariaDB.versions.default | quote }}
{{- if .Values.spec.authSecret.name }}
authSecret:
Expand Down
9 changes: 6 additions & 3 deletions charts/kubedbcom-mongodb-editor-options/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedbcom-mongodb-editor-options.labels" . | nindent 4 }}
{{- if .Values.spec.admin.archiver.enable.default }}
kubedb.com/archiver: "true"
{{- end }}
annotations:
app.kubernetes.io/cluster-tier: {{ .Values.spec.admin.clusterTier.default }}
{{- if and (eq .Values.spec.backup.tool "KubeStash") (.Values.spec.admin.backup.enable.default) (eq .Values.spec.admin.backup.by "BackupBlueprint") }}
Expand All @@ -101,6 +98,12 @@ metadata:
{{- include "kubedbcom-mongodb-editor-options.annotations" . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.spec.admin.archiver.enable.default }}
archiver:
ref:
name: {{ .Values.spec.archiverName }}
namespace: kubedb
{{- end }}
version: {{ .Values.spec.admin.databases.MongoDB.versions.default | quote }}
{{- if or (eq .Values.spec.mode "Standalone") (eq .Values.spec.mode "Replicaset") }}
replicas: {{ (eq .Values.spec.mode "Replicaset") | ternary .Values.spec.replicaSet.replicas 1 }}
Expand Down
9 changes: 6 additions & 3 deletions charts/kubedbcom-mssqlserver-editor-options/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedbcom-mssqlserver-editor-options.labels" . | nindent 4 }}
{{- if .Values.spec.admin.archiver.enable.default }}
kubedb.com/archiver: "true"
{{- end }}
{{- if .Values.spec.annotations }}
annotations:
{{- include "kubedbcom-mssqlserver-editor-options.annotations" . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.spec.admin.archiver.enable.default }}
archiver:
ref:
name: {{ .Values.spec.archiverName }}
namespace: kubedb
{{- end }}
version: {{ .Values.spec.admin.databases.MSSQLServer.versions.default | quote }}
storageType: Durable
storage:
Expand Down
9 changes: 6 additions & 3 deletions charts/kubedbcom-mysql-editor-options/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedbcom-mysql-editor-options.labels" . | nindent 4 }}
{{- if .Values.spec.admin.archiver.enable.default }}
kubedb.com/archiver: "true"
{{- end }}
{{- if .Values.spec.annotations }}
annotations:
{{- include "kubedbcom-mysql-editor-options.annotations" . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.spec.admin.archiver.enable.default }}
archiver:
ref:
name: {{ .Values.spec.archiverName }}
namespace: kubedb
{{- end }}
version: {{ .Values.spec.admin.databases.MySQL.versions.default | quote }}
{{- if eq .Values.spec.mode "Standalone" }}
replicas: 1
Expand Down
9 changes: 6 additions & 3 deletions charts/kubedbcom-postgres-editor-options/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,17 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubedbcom-postgres-editor-options.labels" . | nindent 4 }}
{{- if .Values.spec.admin.archiver.enable.default }}
kubedb.com/archiver: "true"
{{- end }}
{{- if .Values.spec.annotations }}
annotations:
{{- include "kubedbcom-postgres-editor-options.annotations" . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.spec.admin.archiver.enable.default }}
archiver:
ref:
name: {{ .Values.spec.archiverName }}
namespace: kubedb
{{- end }}
version: {{ .Values.spec.admin.databases.Postgres.versions.default | quote }}
{{- if .Values.spec.authSecret.name }}
authSecret:
Expand Down

0 comments on commit 9cc2962

Please sign in to comment.