Skip to content

Commit

Permalink
bump CNPG library
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubhajek committed Jan 6, 2025
1 parent fb6f0c2 commit fd6fa9b
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions libs/cloudnative-pg/config.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,39 @@
local config = import 'jsonnet/config.jsonnet';

local versions = [
{ version: '1.24.1' }, // released on 16 OCT, 2024
{ version: '1.23.5' }, // released on 16 OCT, 2024
{ version: '1.25.0' }, // released on 23 DEC 2024
{ version: '1.24.2' }, // released on 23 DEC 2024
{ version: '1.23.6' }, // released on 23 DEC, 2024
];

config.new(
name='cloudnative-pg',
specs=[
{

local url = 'https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/main/config/crd/bases/',

output: v.version,
crds: [
'%s/postgresql.cnpg.io_backups.yaml' % url,
'%s/postgresql.cnpg.io_clusters.yaml' % url,
'%s/postgresql.cnpg.io_clusterimagecatalogs.yaml' % url,
'%s/postgresql.cnpg.io_imagecatalogs.yaml' % url,
'%s/postgresql.cnpg.io_poolers.yaml' % url,
'%s/postgresql.cnpg.io_scheduledbackups.yaml' % url,
],
crds:
if (v.version == '1.25.0') then
[
'%s/postgresql.cnpg.io_backups.yaml' % url,
'%s/postgresql.cnpg.io_clusterimagecatalogs.yaml' % url,
'%s/postgresql.cnpg.io_clusters.yaml' % url,
'%s/postgresql.cnpg.io_databases.yaml' % url, // Added in v1.25.0
'%s/postgresql.cnpg.io_imagecatalogs.yaml' % url,
'%s/postgresql.cnpg.io_poolers.yaml' % url,
'%s/postgresql.cnpg.io_publications.yaml' % url, // Added in v1.25.0
'%s/postgresql.cnpg.io_scheduledbackups.yaml' % url,
'%s/postgresql.cnpg.io_subscriptions.yaml' % url, // Added in v1.25.0
]
else
[
'%s/postgresql.cnpg.io_backups.yaml' % url,
'%s/postgresql.cnpg.io_clusterimagecatalogs.yaml' % url,
'%s/postgresql.cnpg.io_clusters.yaml' % url,
'%s/postgresql.cnpg.io_imagecatalogs.yaml' % url,
'%s/postgresql.cnpg.io_poolers.yaml' % url,
'%s/postgresql.cnpg.io_scheduledbackups.yaml' % url,
],
prefix: '^io\\.cnpg\\.postgresql\\..*',
localName: 'cloudnative-pg',
}
Expand Down

0 comments on commit fd6fa9b

Please sign in to comment.