Skip to content

Commit 483fbb3

Browse files
juliajohannesenjsonnet-libs-bot
authored andcommitted
update: source github.com/jsonnet-libs/k8s@8bd61ee3
1 parent 584c1c0 commit 483fbb3

32 files changed

Lines changed: 700 additions & 16 deletions

1.25.3/_gen/postgresql/v1/cluster.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
withAdditionalCommandArgs(additionalCommandArgs): { spec+: { backup+: { barmanObjectStore+: { data+: { additionalCommandArgs: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } } } },
486486
'#withAdditionalCommandArgsMixin':: d.fn(help="\"AdditionalCommandArgs represents additional arguments that can be appended\\nto the 'barman-cloud-backup' command-line invocation. These arguments\\nprovide flexibility to customize the backup process further according to\\nspecific requirements or configurations.\\n\\nExample:\\nIn a scenario where specialized backup options are required, such as setting\\na specific timeout or defining custom behavior, users can use this field\\nto specify additional command arguments.\\n\\nNote:\\nIt's essential to ensure that the provided arguments are valid and supported\\nby the 'barman-cloud-backup' command, to avoid potential errors or unintended\\nbehavior during execution.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='additionalCommandArgs', type=d.T.array)]),
487487
withAdditionalCommandArgsMixin(additionalCommandArgs): { spec+: { backup+: { barmanObjectStore+: { data+: { additionalCommandArgs+: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } } } },
488-
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
488+
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, `lz4`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
489489
withCompression(compression): { spec+: { backup+: { barmanObjectStore+: { data+: { compression: compression } } } } },
490490
'#withEncryption':: d.fn(help='"Whenever to force the encryption of files (if the bucket is\\nnot already configured for that).\\nAllowed options are empty string (use the bucket policy, default),\\n`AES256` and `aws:kms`"', args=[d.arg(name='encryption', type=d.T.string)]),
491491
withEncryption(encryption): { spec+: { backup+: { barmanObjectStore+: { data+: { encryption: encryption } } } } },
@@ -1086,7 +1086,7 @@
10861086
withAdditionalCommandArgs(additionalCommandArgs): { barmanObjectStore+: { data+: { additionalCommandArgs: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } },
10871087
'#withAdditionalCommandArgsMixin':: d.fn(help="\"AdditionalCommandArgs represents additional arguments that can be appended\\nto the 'barman-cloud-backup' command-line invocation. These arguments\\nprovide flexibility to customize the backup process further according to\\nspecific requirements or configurations.\\n\\nExample:\\nIn a scenario where specialized backup options are required, such as setting\\na specific timeout or defining custom behavior, users can use this field\\nto specify additional command arguments.\\n\\nNote:\\nIt's essential to ensure that the provided arguments are valid and supported\\nby the 'barman-cloud-backup' command, to avoid potential errors or unintended\\nbehavior during execution.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='additionalCommandArgs', type=d.T.array)]),
10881088
withAdditionalCommandArgsMixin(additionalCommandArgs): { barmanObjectStore+: { data+: { additionalCommandArgs+: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } },
1089-
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
1089+
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, `lz4`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
10901090
withCompression(compression): { barmanObjectStore+: { data+: { compression: compression } } },
10911091
'#withEncryption':: d.fn(help='"Whenever to force the encryption of files (if the bucket is\\nnot already configured for that).\\nAllowed options are empty string (use the bucket policy, default),\\n`AES256` and `aws:kms`"', args=[d.arg(name='encryption', type=d.T.string)]),
10921092
withEncryption(encryption): { barmanObjectStore+: { data+: { encryption: encryption } } },

1.25.3/_gen/postgresql/v1/clusterImageCatalog.libsonnet

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
}),
5252
'#spec':: d.obj(help='"Specification of the desired behavior of the ClusterImageCatalog.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"'),
5353
spec: {
54+
'#componentImages':: d.obj(help='"ComponentImages is a list of named images for components other than PostgreSQL\\n(e.g. pgbouncer). Keys must be unique within a catalog."'),
55+
componentImages: {
56+
'#withImage':: d.fn(help='"Image is the container image reference."', args=[d.arg(name='image', type=d.T.string)]),
57+
withImage(image): { image: image },
58+
'#withKey':: d.fn(help='"Key is the unique identifier for this image within the catalog."', args=[d.arg(name='key', type=d.T.string)]),
59+
withKey(key): { key: key },
60+
},
5461
'#images':: d.obj(help='"List of CatalogImages available in the catalog"'),
5562
images: {
5663
'#extensions':: d.obj(help='"The configuration of the extensions to be added"'),
@@ -101,6 +108,10 @@
101108
'#withMajor':: d.fn(help='"The PostgreSQL major version of the image. Must be unique within the catalog."', args=[d.arg(name='major', type=d.T.integer)]),
102109
withMajor(major): { major: major },
103110
},
111+
'#withComponentImages':: d.fn(help='"ComponentImages is a list of named images for components other than PostgreSQL\\n(e.g. pgbouncer). Keys must be unique within a catalog."', args=[d.arg(name='componentImages', type=d.T.array)]),
112+
withComponentImages(componentImages): { spec+: { componentImages: if std.isArray(v=componentImages) then componentImages else [componentImages] } },
113+
'#withComponentImagesMixin':: d.fn(help='"ComponentImages is a list of named images for components other than PostgreSQL\\n(e.g. pgbouncer). Keys must be unique within a catalog."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='componentImages', type=d.T.array)]),
114+
withComponentImagesMixin(componentImages): { spec+: { componentImages+: if std.isArray(v=componentImages) then componentImages else [componentImages] } },
104115
'#withImages':: d.fn(help='"List of CatalogImages available in the catalog"', args=[d.arg(name='images', type=d.T.array)]),
105116
withImages(images): { spec+: { images: if std.isArray(v=images) then images else [images] } },
106117
'#withImagesMixin':: d.fn(help='"List of CatalogImages available in the catalog"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='images', type=d.T.array)]),

1.25.3/_gen/postgresql/v1/imageCatalog.libsonnet

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949
} + self.metadata.withName(name=name),
5050
'#spec':: d.obj(help='"Specification of the desired behavior of the ImageCatalog.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status"'),
5151
spec: {
52+
'#componentImages':: d.obj(help='"ComponentImages is a list of named images for components other than PostgreSQL\\n(e.g. pgbouncer). Keys must be unique within a catalog."'),
53+
componentImages: {
54+
'#withImage':: d.fn(help='"Image is the container image reference."', args=[d.arg(name='image', type=d.T.string)]),
55+
withImage(image): { image: image },
56+
'#withKey':: d.fn(help='"Key is the unique identifier for this image within the catalog."', args=[d.arg(name='key', type=d.T.string)]),
57+
withKey(key): { key: key },
58+
},
5259
'#images':: d.obj(help='"List of CatalogImages available in the catalog"'),
5360
images: {
5461
'#extensions':: d.obj(help='"The configuration of the extensions to be added"'),
@@ -99,6 +106,10 @@
99106
'#withMajor':: d.fn(help='"The PostgreSQL major version of the image. Must be unique within the catalog."', args=[d.arg(name='major', type=d.T.integer)]),
100107
withMajor(major): { major: major },
101108
},
109+
'#withComponentImages':: d.fn(help='"ComponentImages is a list of named images for components other than PostgreSQL\\n(e.g. pgbouncer). Keys must be unique within a catalog."', args=[d.arg(name='componentImages', type=d.T.array)]),
110+
withComponentImages(componentImages): { spec+: { componentImages: if std.isArray(v=componentImages) then componentImages else [componentImages] } },
111+
'#withComponentImagesMixin':: d.fn(help='"ComponentImages is a list of named images for components other than PostgreSQL\\n(e.g. pgbouncer). Keys must be unique within a catalog."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='componentImages', type=d.T.array)]),
112+
withComponentImagesMixin(componentImages): { spec+: { componentImages+: if std.isArray(v=componentImages) then componentImages else [componentImages] } },
102113
'#withImages':: d.fn(help='"List of CatalogImages available in the catalog"', args=[d.arg(name='images', type=d.T.array)]),
103114
withImages(images): { spec+: { images: if std.isArray(v=images) then images else [images] } },
104115
'#withImagesMixin':: d.fn(help='"List of CatalogImages available in the catalog"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='images', type=d.T.array)]),

1.25.3/_gen/postgresql/v1/pooler.libsonnet

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@
139139
'#withName':: d.fn(help='"Name of the referent."', args=[d.arg(name='name', type=d.T.string)]),
140140
withName(name): { spec+: { pgbouncer+: { clientTLSSecret+: { name: name } } } },
141141
},
142+
'#imageCatalogRef':: d.obj(help='"ImageCatalogRef points to an entry in an ImageCatalog or ClusterImageCatalog.\\nMutually exclusive with Image."'),
143+
imageCatalogRef: {
144+
'#withApiGroup':: d.fn(help='"APIGroup is the group for the resource being referenced.\\nIf APIGroup is not specified, the specified Kind must be in the core API group.\\nFor any other third-party types, APIGroup is required."', args=[d.arg(name='apiGroup', type=d.T.string)]),
145+
withApiGroup(apiGroup): { spec+: { pgbouncer+: { imageCatalogRef+: { apiGroup: apiGroup } } } },
146+
'#withKey':: d.fn(help="\"Key identifies the entry within the catalog's componentImages list.\"", args=[d.arg(name='key', type=d.T.string)]),
147+
withKey(key): { spec+: { pgbouncer+: { imageCatalogRef+: { key: key } } } },
148+
'#withKind':: d.fn(help='"Kind is the type of resource being referenced"', args=[d.arg(name='kind', type=d.T.string)]),
149+
withKind(kind): { spec+: { pgbouncer+: { imageCatalogRef+: { kind: kind } } } },
150+
'#withName':: d.fn(help='"Name is the name of resource being referenced"', args=[d.arg(name='name', type=d.T.string)]),
151+
withName(name): { spec+: { pgbouncer+: { imageCatalogRef+: { name: name } } } },
152+
},
142153
'#serverCASecret':: d.obj(help='"ServerCASecret provides PgBouncer’s server_tls_ca_file, the root\\nCA for validating PostgreSQL certificates"'),
143154
serverCASecret: {
144155
'#withName':: d.fn(help='"Name of the referent."', args=[d.arg(name='name', type=d.T.string)]),
@@ -151,6 +162,8 @@
151162
},
152163
'#withAuthQuery':: d.fn(help='"The query that will be used to download the hash of the password\\nof a certain user. Default: \\"SELECT usename, passwd FROM public.user_search($1)\\".\\nIn case it is specified, also an AuthQuerySecret has to be specified and\\nno automatic CNPG Cluster integration will be triggered."', args=[d.arg(name='authQuery', type=d.T.string)]),
153164
withAuthQuery(authQuery): { spec+: { pgbouncer+: { authQuery: authQuery } } },
165+
'#withImage':: d.fn(help='"Image is the pgbouncer container image to use. When set, it takes\\nprecedence over ImageCatalogRef and the operator default, but is\\noverridden by an explicit image set in the pod template."', args=[d.arg(name='image', type=d.T.string)]),
166+
withImage(image): { spec+: { pgbouncer+: { image: image } } },
154167
'#withParameters':: d.fn(help='"Additional parameters to be passed to PgBouncer - please check\\nthe CNPG documentation for a list of options you can configure"', args=[d.arg(name='parameters', type=d.T.object)]),
155168
withParameters(parameters): { spec+: { pgbouncer+: { parameters: parameters } } },
156169
'#withParametersMixin':: d.fn(help='"Additional parameters to be passed to PgBouncer - please check\\nthe CNPG documentation for a list of options you can configure"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='parameters', type=d.T.object)]),

1.26.0/_gen/postgresql/v1/cluster.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
withAdditionalCommandArgs(additionalCommandArgs): { spec+: { backup+: { barmanObjectStore+: { data+: { additionalCommandArgs: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } } } },
486486
'#withAdditionalCommandArgsMixin':: d.fn(help="\"AdditionalCommandArgs represents additional arguments that can be appended\\nto the 'barman-cloud-backup' command-line invocation. These arguments\\nprovide flexibility to customize the backup process further according to\\nspecific requirements or configurations.\\n\\nExample:\\nIn a scenario where specialized backup options are required, such as setting\\na specific timeout or defining custom behavior, users can use this field\\nto specify additional command arguments.\\n\\nNote:\\nIt's essential to ensure that the provided arguments are valid and supported\\nby the 'barman-cloud-backup' command, to avoid potential errors or unintended\\nbehavior during execution.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='additionalCommandArgs', type=d.T.array)]),
487487
withAdditionalCommandArgsMixin(additionalCommandArgs): { spec+: { backup+: { barmanObjectStore+: { data+: { additionalCommandArgs+: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } } } },
488-
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
488+
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, `lz4`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
489489
withCompression(compression): { spec+: { backup+: { barmanObjectStore+: { data+: { compression: compression } } } } },
490490
'#withEncryption':: d.fn(help='"Whenever to force the encryption of files (if the bucket is\\nnot already configured for that).\\nAllowed options are empty string (use the bucket policy, default),\\n`AES256` and `aws:kms`"', args=[d.arg(name='encryption', type=d.T.string)]),
491491
withEncryption(encryption): { spec+: { backup+: { barmanObjectStore+: { data+: { encryption: encryption } } } } },
@@ -1086,7 +1086,7 @@
10861086
withAdditionalCommandArgs(additionalCommandArgs): { barmanObjectStore+: { data+: { additionalCommandArgs: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } },
10871087
'#withAdditionalCommandArgsMixin':: d.fn(help="\"AdditionalCommandArgs represents additional arguments that can be appended\\nto the 'barman-cloud-backup' command-line invocation. These arguments\\nprovide flexibility to customize the backup process further according to\\nspecific requirements or configurations.\\n\\nExample:\\nIn a scenario where specialized backup options are required, such as setting\\na specific timeout or defining custom behavior, users can use this field\\nto specify additional command arguments.\\n\\nNote:\\nIt's essential to ensure that the provided arguments are valid and supported\\nby the 'barman-cloud-backup' command, to avoid potential errors or unintended\\nbehavior during execution.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='additionalCommandArgs', type=d.T.array)]),
10881088
withAdditionalCommandArgsMixin(additionalCommandArgs): { barmanObjectStore+: { data+: { additionalCommandArgs+: if std.isArray(v=additionalCommandArgs) then additionalCommandArgs else [additionalCommandArgs] } } },
1089-
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
1089+
'#withCompression':: d.fn(help='"Compress a backup file (a tar file per tablespace) while streaming it\\nto the object store. Available options are empty string (no\\ncompression, default), `gzip`, `bzip2`, `lz4`, and `snappy`."', args=[d.arg(name='compression', type=d.T.string)]),
10901090
withCompression(compression): { barmanObjectStore+: { data+: { compression: compression } } },
10911091
'#withEncryption':: d.fn(help='"Whenever to force the encryption of files (if the bucket is\\nnot already configured for that).\\nAllowed options are empty string (use the bucket policy, default),\\n`AES256` and `aws:kms`"', args=[d.arg(name='encryption', type=d.T.string)]),
10921092
withEncryption(encryption): { barmanObjectStore+: { data+: { encryption: encryption } } },

0 commit comments

Comments
 (0)