Skip to content

Commit

Permalink
Use cve-free ghcr-registry images (#890)
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha authored Feb 29, 2024
1 parent 9b44fd8 commit 0a3062c
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 8 deletions.
1 change: 1 addition & 0 deletions catalog/kubedb/active_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"MySQL": [
"8.2.0",
"8.1.0",
"8.0.36",
"8.0.35",
"8.0.31-innodb",
"5.7.44",
Expand Down
1 change: 1 addition & 0 deletions catalog/kubedb/backup_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"mysql-backup-8.0.21": [
"8.2.0",
"8.1.0",
"8.0.36",
"8.0.35",
"8.0.31-innodb"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ metadata:
spec:
authPlugin: OpenSearch
dashboard:
image: opensearchproject/opensearch-dashboards:1.3.13
image: ghcr.io/appscode-images/opensearch-dashboards:1.3.13
dashboardInitContainer:
yqImage: ghcr.io/kubedb/elasticsearch-dashboard-init:1.3.13-opensearch-v2023.12.07
db:
image: opensearchproject/opensearch:1.3.13
image: ghcr.io/appscode-images/opensearch:1.3.13
distribution: OpenSearch
exporter:
image: prometheuscommunity/elasticsearch-exporter:v1.3.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ metadata:
spec:
authPlugin: OpenSearch
dashboard:
image: opensearchproject/opensearch-dashboards:2.5.0
image: ghcr.io/appscode-images/opensearch-dashboards:2.5.0
dashboardInitContainer:
yqImage: ghcr.io/kubedb/elasticsearch-dashboard-init:2.5.0-opensearch-v2023.12.07
db:
image: opensearchproject/opensearch:2.5.0
image: ghcr.io/appscode-images/opensearch:2.5.0
distribution: OpenSearch
exporter:
image: prometheuscommunity/elasticsearch-exporter:v1.3.0
Expand Down
49 changes: 49 additions & 0 deletions catalog/kubedb/raw/mysql/mysql-8.0.35-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,52 @@ spec:
standalone:
- < 8.0.35
version: 8.0.35

---
apiVersion: catalog.kubedb.com/v1alpha1
kind: MySQLVersion
metadata:
name: 8.0.36
spec:
archiver:
addon:
name: mysql-addon
tasks:
manifestBackup:
name: ManifestBackup
manifestRestore:
name: ManifestRestore
volumeSnapshot:
name: VolumeSnapshot
walg:
image: ghcr.io/kubedb/mysql-archiver:(v0.1.0)_8.0.35
coordinator:
image: ghcr.io/kubedb/mysql-coordinator:v0.18.0
db:
image: ghcr.io/appscode-images/mysql:8.0.36-debian
distribution: Official
exporter:
image: ghcr.io/kubedb/mysqld-exporter:v0.13.1
gitSyncer:
image: registry.k8s.io/git-sync/git-sync:v4.1.0
initContainer:
image: ghcr.io/kubedb/mysql-init:8.0.31-v3
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
image: ghcr.io/kubedb/replication-mode-detector:v0.27.0
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mysql-backup-8.0.21
restoreTask:
name: mysql-restore-8.0.21
updateConstraints:
denylist:
groupReplication:
- < 8.0.35
standalone:
- < 8.0.35
version: 8.0.35
1 change: 1 addition & 0 deletions catalog/kubedb/restore_tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"mysql-restore-8.0.21": [
"8.2.0",
"8.1.0",
"8.0.36",
"8.0.35",
"8.0.31-innodb"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ metadata:
spec:
authPlugin: OpenSearch
dashboard:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "opensearchproject/opensearch-dashboards") $) }}:1.3.13'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/opensearch-dashboards") $) }}:1.3.13'
dashboardInitContainer:
yqImage: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/elasticsearch-dashboard-init") $) }}:1.3.13-opensearch-v2023.12.07'
db:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "opensearchproject/opensearch") $) }}:1.3.13'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/opensearch") $) }}:1.3.13'
distribution: OpenSearch
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/elasticsearch-exporter") $) }}:v1.3.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ metadata:
spec:
authPlugin: OpenSearch
dashboard:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "opensearchproject/opensearch-dashboards") $) }}:2.5.0'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/opensearch-dashboards") $) }}:2.5.0'
dashboardInitContainer:
yqImage: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/elasticsearch-dashboard-init") $) }}:2.5.0-opensearch-v2023.12.07'
db:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "opensearchproject/opensearch") $) }}:2.5.0'
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/opensearch") $) }}:2.5.0'
distribution: OpenSearch
exporter:
image: '{{ include "image.dockerHub" (merge (dict "_repo" "prometheuscommunity/elasticsearch-exporter") $) }}:v1.3.0'
Expand Down
53 changes: 53 additions & 0 deletions charts/kubedb-catalog/templates/mysql/mysql-8.0.35-official.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,56 @@ spec:
- < 8.0.35
version: 8.0.35
{{ end }}

---
{{ if .Values.catalog.mysql }}
apiVersion: catalog.kubedb.com/v1alpha1
kind: MySQLVersion
metadata:
name: '8.0.36'
labels:
{{- include "kubedb-catalog.labels" . | nindent 4 }}
spec:
archiver:
addon:
name: mysql-addon
tasks:
manifestBackup:
name: ManifestBackup
manifestRestore:
name: ManifestRestore
volumeSnapshot:
name: VolumeSnapshot
walg:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-archiver") $) }}:v0.1.0_8.0.35'
coordinator:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-coordinator") $) }}:v0.18.0'
db:
image: '{{ include "image.ghcr" (merge (dict "_repo" "appscode-images/mysql") $) }}:8.0.36-debian'
distribution: Official
exporter:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysqld-exporter") $) }}:v0.13.1'
gitSyncer:
image: '{{ include "image.kubernetes" (merge (dict "_repo" "git-sync/git-sync") $) }}:v4.1.0'
initContainer:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/mysql-init") $) }}:8.0.31-v3'
podSecurityPolicies:
databasePolicyName: mysql-db
replicationModeDetector:
image: '{{ include "image.ghcr" (merge (dict "_repo" "kubedb/replication-mode-detector") $) }}:v0.27.0'
securityContext:
runAsUser: 999
stash:
addon:
backupTask:
name: mysql-backup-8.0.21
restoreTask:
name: mysql-restore-8.0.21
updateConstraints:
denylist:
groupReplication:
- < 8.0.35
standalone:
- < 8.0.35
version: 8.0.35
{{ end }}

0 comments on commit 0a3062c

Please sign in to comment.