Skip to content

Commit

Permalink
deprecate all older official versions for mongodb
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 8, 2023
1 parent c78e18f commit 3b16a0f
Show file tree
Hide file tree
Showing 17 changed files with 330 additions and 73 deletions.
9 changes: 4 additions & 5 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,12 @@
"1.5.4-v1"
],
"MongoDB": [
"6.0.5",
"5.0.15",
"6.0.12",
"5.0.23",
"4.4.25",
"percona-4.4.10",
"4.4.6",
"4.2.24",
"percona-4.2.7",
"4.2.3"
"percona-4.2.7"
],
"MySQL": [
"8.1.0",
Expand Down
9 changes: 4 additions & 5 deletions catalog/kubedb/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,17 @@
],
"mongodb-backup-4.2.3": [
"percona-4.2.7",
"4.2.24",
"4.2.3"
"4.2.24"
],
"mongodb-backup-4.4.6": [
"percona-4.4.10",
"4.4.6"
"4.4.25"
],
"mongodb-backup-5.0.15": [
"5.0.15"
"5.0.23"
],
"mongodb-backup-6.0.5": [
"6.0.5"
"6.0.12"
],
"mysql-backup-5.7.25": [
"5.7.41"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: "4.2"
spec:
db:
image: ghcr.io/kubedb/mongo:4.2
deprecated: true
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.20.4
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.1.0
initContainer:
image: ghcr.io/kubedb/mongodb-init:0.3.0
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: ghcr.io/kubedb/replication-mode-detector:v0.25.0-rc.1
version: 4.2.3

---
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: 4.2.3
spec:
Expand All @@ -17,6 +39,7 @@ spec:
image: ghcr.io/kubedb/wal-g:v2023.11.30_mongo
db:
image: ghcr.io/appscode-images/mongo:4.2.3
deprecated: true
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.32.0
Expand All @@ -40,25 +63,3 @@ spec:
allowlist:
- '>= 4.4.0, < 5.0.0'
version: 4.2.3

---
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: "4.2"
spec:
db:
image: ghcr.io/kubedb/mongo:4.2
deprecated: true
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.20.4
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.1.0
initContainer:
image: ghcr.io/kubedb/mongodb-init:0.3.0
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: ghcr.io/kubedb/replication-mode-detector:v0.25.0-rc.1
version: 4.2.3
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
image: ghcr.io/kubedb/wal-g:v2023.11.30_mongo
db:
image: ghcr.io/appscode-images/mongo:4.4.6
deprecated: true
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.32.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
image: ghcr.io/kubedb/wal-g:v2023.11.30_mongo
db:
image: ghcr.io/appscode-images/mongo:5.0.15
deprecated: true
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.32.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
image: ghcr.io/kubedb/wal-g:v2023.11.30_mongo
db:
image: ghcr.io/appscode-images/mongo:6.0.5
deprecated: true
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.32.0
Expand Down
42 changes: 42 additions & 0 deletions catalog/kubedb/raw/mongodb/mongodb-4.4.25-official.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: 4.4.25
spec:
archiver:
addon:
name: mongodb-addon
tasks:
manifestBackup:
name: ManifestBackup
manifestRestore:
name: ManifestRestore
volumeSnapshot:
name: VolumeSnapshot
walg:
image: ghcr.io/kubedb/wal-g:v2023.11.30_mongo
db:
image: ghcr.io/appscode-images/mongo:4.4.25
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.32.0
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.1.0
initContainer:
image: ghcr.io/kubedb/mongodb-init:4.2-v9
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: ghcr.io/kubedb/replication-mode-detector:v0.25.0-rc.1
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mongodb-backup-4.4.6
restoreTask:
name: mongodb-restore-4.4.6
updateConstraints:
allowlist:
- '>= 5.0.0'
version: 4.4.25
39 changes: 39 additions & 0 deletions catalog/kubedb/raw/mongodb/mongodb-5.0.23-official.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: 5.0.23
spec:
archiver:
addon:
name: mongodb-addon
tasks:
manifestBackup:
name: ManifestBackup
manifestRestore:
name: ManifestRestore
volumeSnapshot:
name: VolumeSnapshot
walg:
image: ghcr.io/kubedb/wal-g:v2023.11.30_mongo
db:
image: ghcr.io/appscode-images/mongo:5.0.23
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.32.0
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.1.0
initContainer:
image: ghcr.io/kubedb/mongodb-init:4.2-v9
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: ghcr.io/kubedb/replication-mode-detector:v0.25.0-rc.1
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mongodb-backup-5.0.15
restoreTask:
name: mongodb-restore-5.0.15
version: 5.0.23
39 changes: 39 additions & 0 deletions catalog/kubedb/raw/mongodb/mongodb-6.0.12-official.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: 6.0.12
spec:
archiver:
addon:
name: mongodb-addon
tasks:
manifestBackup:
name: ManifestBackup
manifestRestore:
name: ManifestRestore
volumeSnapshot:
name: VolumeSnapshot
walg:
image: ghcr.io/kubedb/wal-g:v2023.11.30_mongo
db:
image: ghcr.io/appscode-images/mongo:6.0.12
distribution: Official
exporter:
image: ghcr.io/kubedb/mongodb_exporter:v0.32.0
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.1.0
initContainer:
image: ghcr.io/kubedb/mongodb-init:6.0-v9
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: ghcr.io/kubedb/replication-mode-detector:v0.25.0-rc.1
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mongodb-backup-6.0.5
restoreTask:
name: mongodb-restore-6.0.5
version: 6.0.12
9 changes: 4 additions & 5 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,17 @@
],
"mongodb-restore-4.2.3": [
"percona-4.2.7",
"4.2.24",
"4.2.3"
"4.2.24"
],
"mongodb-restore-4.4.6": [
"percona-4.4.10",
"4.4.6"
"4.4.25"
],
"mongodb-restore-5.0.15": [
"5.0.15"
"5.0.23"
],
"mongodb-restore-6.0.5": [
"6.0.5"
"6.0.12"
],
"mysql-restore-5.7.25": [
"5.7.41"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
{{ if .Values.catalog.mongodb }}
{{ if and .Values.catalog.mongodb (not .Values.skipDeprecated) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: '4.2'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongo") $) }}:4.2'
deprecated: true
distribution: Official
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongodb_exporter") $) }}:v0.20.4'
gitSyncer:
image: '{{ include "image.kubernetes" (merge (dict "_repo" "git-sync/git-sync") $) }}:v4.1.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongodb-init") $) }}:0.3.0'
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/replication-mode-detector") $) }}:v0.25.0-rc.1'
version: 4.2.3
{{ end }}

---
{{ if and .Values.catalog.mongodb (not .Values.skipDeprecated) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
Expand All @@ -20,6 +46,7 @@ spec:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/wal-g") $) }}:v2023.11.30_mongo'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mongo") $) }}:4.2.3'
deprecated: true
distribution: Official
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongodb_exporter") $) }}:v0.32.0'
Expand All @@ -44,29 +71,3 @@ spec:
- '>= 4.4.0, < 5.0.0'
version: 4.2.3
{{ end }}

---
{{ if and .Values.catalog.mongodb (not .Values.skipDeprecated) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: '4.2'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongo") $) }}:4.2'
deprecated: true
distribution: Official
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongodb_exporter") $) }}:v0.20.4'
gitSyncer:
image: '{{ include "image.kubernetes" (merge (dict "_repo" "git-sync/git-sync") $) }}:v4.1.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongodb-init") $) }}:0.3.0'
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/replication-mode-detector") $) }}:v0.25.0-rc.1'
version: 4.2.3
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{{ if and .Values.catalog.mongodb (not .Values.skipDeprecated) }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MongoDBVersion
metadata:
name: '4.4.6'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
archiver:
addon:
name: mongodb-addon
tasks:
manifestBackup:
name: ManifestBackup
manifestRestore:
name: ManifestRestore
volumeSnapshot:
name: VolumeSnapshot
walg:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/wal-g") $) }}:v2023.11.30_mongo'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mongo") $) }}:4.4.6'
deprecated: true
distribution: Official
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongodb_exporter") $) }}:v0.32.0'
gitSyncer:
image: '{{ include "image.kubernetes" (merge (dict "_repo" "git-sync/git-sync") $) }}:v4.1.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mongodb-init") $) }}:4.2-v9'
podSecurityPolicies:
databasePolicyName: mongodb-db
replicationModeDetector:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/replication-mode-detector") $) }}:v0.25.0-rc.1'
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mongodb-backup-4.4.6
restoreTask:
name: mongodb-restore-4.4.6
updateConstraints:
allowlist:
- '>= 5.0.0'
version: 4.4.6
{{ end }}
Loading

0 comments on commit 3b16a0f

Please sign in to comment.