Skip to content

Commit 62724c3

Browse files
zalegralajsonnet-libs-bot
authored andcommitted
update: source github.com/jsonnet-libs/k8s@08922e80
1 parent b470dfa commit 62724c3

24 files changed

Lines changed: 1804 additions & 32 deletions

1.25.3/_gen/postgresql/v1/cluster.libsonnet

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,11 +1587,38 @@
15871587
'#withSysctlsMixin':: d.fn(help='"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\\nsysctls (by the container runtime) might fail to launch.\\nNote that this field cannot be set when spec.os.name is windows."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sysctls', type=d.T.array)]),
15881588
withSysctlsMixin(sysctls): { spec+: { podSecurityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } },
15891589
},
1590+
'#podSelectorRefs':: d.obj(help="\"PodSelectorRefs defines named pod label selectors that can be referenced\\nin pg_hba rules using the ${podselector:NAME} syntax in the address field.\\nThe operator resolves matching pod IPs and the instance manager expands\\npg_hba lines accordingly. Only pods in the Cluster's own namespace are considered.\""),
1591+
podSelectorRefs: {
1592+
'#selector':: d.obj(help="\"Selector is a label selector that identifies the pods whose IPs\\nshould be resolved. Only pods in the Cluster's namespace are considered.\""),
1593+
selector: {
1594+
'#matchExpressions':: d.obj(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."'),
1595+
matchExpressions: {
1596+
'#withKey':: d.fn(help='"key is the label key that the selector applies to."', args=[d.arg(name='key', type=d.T.string)]),
1597+
withKey(key): { key: key },
1598+
'#withOperator':: d.fn(help="\"operator represents a key's relationship to a set of values.\\nValid operators are In, NotIn, Exists and DoesNotExist.\"", args=[d.arg(name='operator', type=d.T.string)]),
1599+
withOperator(operator): { operator: operator },
1600+
'#withValues':: d.fn(help='"values is an array of string values. If the operator is In or NotIn,\\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\\nthe values array must be empty. This array is replaced during a strategic\\nmerge patch."', args=[d.arg(name='values', type=d.T.array)]),
1601+
withValues(values): { values: if std.isArray(v=values) then values else [values] },
1602+
'#withValuesMixin':: d.fn(help='"values is an array of string values. If the operator is In or NotIn,\\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\\nthe values array must be empty. This array is replaced during a strategic\\nmerge patch."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='values', type=d.T.array)]),
1603+
withValuesMixin(values): { values+: if std.isArray(v=values) then values else [values] },
1604+
},
1605+
'#withMatchExpressions':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."', args=[d.arg(name='matchExpressions', type=d.T.array)]),
1606+
withMatchExpressions(matchExpressions): { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } },
1607+
'#withMatchExpressionsMixin':: d.fn(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchExpressions', type=d.T.array)]),
1608+
withMatchExpressionsMixin(matchExpressions): { selector+: { matchExpressions+: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } },
1609+
'#withMatchLabels':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\\nmap is equivalent to an element of matchExpressions, whose key field is \\"key\\", the\\noperator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."', args=[d.arg(name='matchLabels', type=d.T.object)]),
1610+
withMatchLabels(matchLabels): { selector+: { matchLabels: matchLabels } },
1611+
'#withMatchLabelsMixin':: d.fn(help='"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\\nmap is equivalent to an element of matchExpressions, whose key field is \\"key\\", the\\noperator is \\"In\\", and the values array contains only \\"value\\". The requirements are ANDed."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchLabels', type=d.T.object)]),
1612+
withMatchLabelsMixin(matchLabels): { selector+: { matchLabels+: matchLabels } },
1613+
},
1614+
'#withName':: d.fn(help='"Name is the identifier used to reference this selector in pg_hba rules\\nvia the ${podselector:NAME} syntax in the address field."', args=[d.arg(name='name', type=d.T.string)]),
1615+
withName(name): { name: name },
1616+
},
15901617
'#postgresql':: d.obj(help='"Configuration of the PostgreSQL server"'),
15911618
postgresql: {
15921619
'#extensions':: d.obj(help='"The configuration of the extensions to be added"'),
15931620
extensions: {
1594-
'#image':: d.obj(help='"The image containing the extension, required"'),
1621+
'#image':: d.obj(help='"The image containing the extension."'),
15951622
image: {
15961623
'#withPullPolicy':: d.fn(help="\"Policy for pulling OCI objects. Possible values are:\\nAlways: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\\nNever: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\\nIfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\"", args=[d.arg(name='pullPolicy', type=d.T.string)]),
15971624
withPullPolicy(pullPolicy): { image+: { pullPolicy: pullPolicy } },
@@ -1691,9 +1718,9 @@
16911718
withParameters(parameters): { spec+: { postgresql+: { parameters: parameters } } },
16921719
'#withParametersMixin':: d.fn(help='"PostgreSQL configuration options (postgresql.conf)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='parameters', type=d.T.object)]),
16931720
withParametersMixin(parameters): { spec+: { postgresql+: { parameters+: parameters } } },
1694-
'#withPg_hba':: d.fn(help='"PostgreSQL Host Based Authentication rules (lines to be appended\\nto the pg_hba.conf file)"', args=[d.arg(name='pg_hba', type=d.T.array)]),
1721+
'#withPg_hba':: d.fn(help='"PostgreSQL Host Based Authentication rules (lines to be appended\\nto the pg_hba.conf file).\\nUse the ${podselector:NAME} syntax to reference a pod selector;\\nthe rule will be expanded for each Pod IP matching that selector."', args=[d.arg(name='pg_hba', type=d.T.array)]),
16951722
withPg_hba(pg_hba): { spec+: { postgresql+: { pg_hba: if std.isArray(v=pg_hba) then pg_hba else [pg_hba] } } },
1696-
'#withPg_hbaMixin':: d.fn(help='"PostgreSQL Host Based Authentication rules (lines to be appended\\nto the pg_hba.conf file)"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='pg_hba', type=d.T.array)]),
1723+
'#withPg_hbaMixin':: d.fn(help='"PostgreSQL Host Based Authentication rules (lines to be appended\\nto the pg_hba.conf file).\\nUse the ${podselector:NAME} syntax to reference a pod selector;\\nthe rule will be expanded for each Pod IP matching that selector."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='pg_hba', type=d.T.array)]),
16971724
withPg_hbaMixin(pg_hba): { spec+: { postgresql+: { pg_hba+: if std.isArray(v=pg_hba) then pg_hba else [pg_hba] } } },
16981725
'#withPg_ident':: d.fn(help='"PostgreSQL User Name Maps rules (lines to be appended\\nto the pg_ident.conf file)"', args=[d.arg(name='pg_ident', type=d.T.array)]),
16991726
withPg_ident(pg_ident): { spec+: { postgresql+: { pg_ident: if std.isArray(v=pg_ident) then pg_ident else [pg_ident] } } },
@@ -2392,6 +2419,10 @@
23922419
withPlugins(plugins): { spec+: { plugins: if std.isArray(v=plugins) then plugins else [plugins] } },
23932420
'#withPluginsMixin':: d.fn(help='"The plugins configuration, containing\\nany plugin to be loaded with the corresponding configuration"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='plugins', type=d.T.array)]),
23942421
withPluginsMixin(plugins): { spec+: { plugins+: if std.isArray(v=plugins) then plugins else [plugins] } },
2422+
'#withPodSelectorRefs':: d.fn(help="\"PodSelectorRefs defines named pod label selectors that can be referenced\\nin pg_hba rules using the ${podselector:NAME} syntax in the address field.\\nThe operator resolves matching pod IPs and the instance manager expands\\npg_hba lines accordingly. Only pods in the Cluster's own namespace are considered.\"", args=[d.arg(name='podSelectorRefs', type=d.T.array)]),
2423+
withPodSelectorRefs(podSelectorRefs): { spec+: { podSelectorRefs: if std.isArray(v=podSelectorRefs) then podSelectorRefs else [podSelectorRefs] } },
2424+
'#withPodSelectorRefsMixin':: d.fn(help="\"PodSelectorRefs defines named pod label selectors that can be referenced\\nin pg_hba rules using the ${podselector:NAME} syntax in the address field.\\nThe operator resolves matching pod IPs and the instance manager expands\\npg_hba lines accordingly. Only pods in the Cluster's own namespace are considered.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='podSelectorRefs', type=d.T.array)]),
2425+
withPodSelectorRefsMixin(podSelectorRefs): { spec+: { podSelectorRefs+: if std.isArray(v=podSelectorRefs) then podSelectorRefs else [podSelectorRefs] } },
23952426
'#withPostgresGID':: d.fn(help='"The GID of the `postgres` user inside the image, defaults to `26`"', args=[d.arg(name='postgresGID', type=d.T.integer)]),
23962427
withPostgresGID(postgresGID): { spec+: { postgresGID: postgresGID } },
23972428
'#withPostgresUID':: d.fn(help='"The UID of the `postgres` user inside the image, defaults to `26`"', args=[d.arg(name='postgresUID', type=d.T.integer)]),

1.25.3/_gen/postgresql/v1/clusterImageCatalog.libsonnet

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,34 @@
5353
spec: {
5454
'#images':: d.obj(help='"List of CatalogImages available in the catalog"'),
5555
images: {
56+
'#extensions':: d.obj(help='"The configuration of the extensions to be added"'),
57+
extensions: {
58+
'#image':: d.obj(help='"The image containing the extension."'),
59+
image: {
60+
'#withPullPolicy':: d.fn(help="\"Policy for pulling OCI objects. Possible values are:\\nAlways: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\\nNever: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\\nIfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\"", args=[d.arg(name='pullPolicy', type=d.T.string)]),
61+
withPullPolicy(pullPolicy): { image+: { pullPolicy: pullPolicy } },
62+
'#withReference':: d.fn(help='"Required: Image or artifact reference to be used.\\nBehaves in the same way as pod.spec.containers[*].image.\\nPull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.\\nMore info: https://kubernetes.io/docs/concepts/containers/images\\nThis field is optional to allow higher level config management to default or override\\ncontainer images in workload controllers like Deployments and StatefulSets."', args=[d.arg(name='reference', type=d.T.string)]),
63+
withReference(reference): { image+: { reference: reference } },
64+
},
65+
'#withDynamic_library_path':: d.fn(help='"The list of directories inside the image which should be added to dynamic_library_path.\\nIf not defined, defaults to \\"/lib\\"."', args=[d.arg(name='dynamic_library_path', type=d.T.array)]),
66+
withDynamic_library_path(dynamic_library_path): { dynamic_library_path: if std.isArray(v=dynamic_library_path) then dynamic_library_path else [dynamic_library_path] },
67+
'#withDynamic_library_pathMixin':: d.fn(help='"The list of directories inside the image which should be added to dynamic_library_path.\\nIf not defined, defaults to \\"/lib\\"."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='dynamic_library_path', type=d.T.array)]),
68+
withDynamic_library_pathMixin(dynamic_library_path): { dynamic_library_path+: if std.isArray(v=dynamic_library_path) then dynamic_library_path else [dynamic_library_path] },
69+
'#withExtension_control_path':: d.fn(help='"The list of directories inside the image which should be added to extension_control_path.\\nIf not defined, defaults to \\"/share\\"."', args=[d.arg(name='extension_control_path', type=d.T.array)]),
70+
withExtension_control_path(extension_control_path): { extension_control_path: if std.isArray(v=extension_control_path) then extension_control_path else [extension_control_path] },
71+
'#withExtension_control_pathMixin':: d.fn(help='"The list of directories inside the image which should be added to extension_control_path.\\nIf not defined, defaults to \\"/share\\"."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extension_control_path', type=d.T.array)]),
72+
withExtension_control_pathMixin(extension_control_path): { extension_control_path+: if std.isArray(v=extension_control_path) then extension_control_path else [extension_control_path] },
73+
'#withLd_library_path':: d.fn(help='"The list of directories inside the image which should be added to ld_library_path."', args=[d.arg(name='ld_library_path', type=d.T.array)]),
74+
withLd_library_path(ld_library_path): { ld_library_path: if std.isArray(v=ld_library_path) then ld_library_path else [ld_library_path] },
75+
'#withLd_library_pathMixin':: d.fn(help='"The list of directories inside the image which should be added to ld_library_path."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='ld_library_path', type=d.T.array)]),
76+
withLd_library_pathMixin(ld_library_path): { ld_library_path+: if std.isArray(v=ld_library_path) then ld_library_path else [ld_library_path] },
77+
'#withName':: d.fn(help='"The name of the extension, required"', args=[d.arg(name='name', type=d.T.string)]),
78+
withName(name): { name: name },
79+
},
80+
'#withExtensions':: d.fn(help='"The configuration of the extensions to be added"', args=[d.arg(name='extensions', type=d.T.array)]),
81+
withExtensions(extensions): { extensions: if std.isArray(v=extensions) then extensions else [extensions] },
82+
'#withExtensionsMixin':: d.fn(help='"The configuration of the extensions to be added"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='extensions', type=d.T.array)]),
83+
withExtensionsMixin(extensions): { extensions+: if std.isArray(v=extensions) then extensions else [extensions] },
5684
'#withImage':: d.fn(help='"The image reference"', args=[d.arg(name='image', type=d.T.string)]),
5785
withImage(image): { image: image },
5886
'#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)]),

0 commit comments

Comments
 (0)