|
1587 | 1587 | '#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)]), |
1588 | 1588 | withSysctlsMixin(sysctls): { spec+: { podSecurityContext+: { sysctls+: if std.isArray(v=sysctls) then sysctls else [sysctls] } } }, |
1589 | 1589 | }, |
| 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 | + }, |
1590 | 1617 | '#postgresql':: d.obj(help='"Configuration of the PostgreSQL server"'), |
1591 | 1618 | postgresql: { |
1592 | 1619 | '#extensions':: d.obj(help='"The configuration of the extensions to be added"'), |
1593 | 1620 | extensions: { |
1594 | | - '#image':: d.obj(help='"The image containing the extension, required"'), |
| 1621 | + '#image':: d.obj(help='"The image containing the extension."'), |
1595 | 1622 | image: { |
1596 | 1623 | '#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)]), |
1597 | 1624 | withPullPolicy(pullPolicy): { image+: { pullPolicy: pullPolicy } }, |
|
1691 | 1718 | withParameters(parameters): { spec+: { postgresql+: { parameters: parameters } } }, |
1692 | 1719 | '#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)]), |
1693 | 1720 | 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)]), |
1695 | 1722 | 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)]), |
1697 | 1724 | withPg_hbaMixin(pg_hba): { spec+: { postgresql+: { pg_hba+: if std.isArray(v=pg_hba) then pg_hba else [pg_hba] } } }, |
1698 | 1725 | '#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)]), |
1699 | 1726 | withPg_ident(pg_ident): { spec+: { postgresql+: { pg_ident: if std.isArray(v=pg_ident) then pg_ident else [pg_ident] } } }, |
|
2392 | 2419 | withPlugins(plugins): { spec+: { plugins: if std.isArray(v=plugins) then plugins else [plugins] } }, |
2393 | 2420 | '#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)]), |
2394 | 2421 | 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] } }, |
2395 | 2426 | '#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)]), |
2396 | 2427 | withPostgresGID(postgresGID): { spec+: { postgresGID: postgresGID } }, |
2397 | 2428 | '#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)]), |
|
0 commit comments