Skip to content

Commit

Permalink
update: source github.com/jsonnet-libs/k8s@8b327fb0
Browse files Browse the repository at this point in the history
  • Loading branch information
fculpo authored and jsonnet-libs-bot committed Dec 21, 2023
1 parent 486c92f commit 89bfd3a
Show file tree
Hide file tree
Showing 16 changed files with 4,136 additions and 24 deletions.
162 changes: 159 additions & 3 deletions 1.18.5/_gen/postgresql/v1/cluster.libsonnet

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions 1.18.5/_gen/postgresql/v1/pooler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,54 @@
},
'#monitoring':: d.obj(help='"The configuration of the monitoring infrastructure of this pooler."'),
monitoring: {
'#podMonitorMetricRelabelings':: d.obj(help='"The list of metric relabelings for the `PodMonitor`. Applied to samples before ingestion."'),
podMonitorMetricRelabelings: {
'#withAction':: d.fn(help='"Action to perform based on the regex matching. \\n `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. \\n Default: \\"Replace\\', args=[d.arg(name='action', type=d.T.string)]),
withAction(action): { action: action },
'#withModulus':: d.fn(help='"Modulus to take of the hash of the source label values. \\n Only applicable when the action is `HashMod`."', args=[d.arg(name='modulus', type=d.T.integer)]),
withModulus(modulus): { modulus: modulus },
'#withRegex':: d.fn(help='"Regular expression against which the extracted value is matched."', args=[d.arg(name='regex', type=d.T.string)]),
withRegex(regex): { regex: regex },
'#withReplacement':: d.fn(help='"Replacement value against which a Replace action is performed if the regular expression matches. \\n Regex capture groups are available."', args=[d.arg(name='replacement', type=d.T.string)]),
withReplacement(replacement): { replacement: replacement },
'#withSeparator':: d.fn(help='"Separator is the string between concatenated SourceLabels."', args=[d.arg(name='separator', type=d.T.string)]),
withSeparator(separator): { separator: separator },
'#withSourceLabels':: d.fn(help='"The source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression."', args=[d.arg(name='sourceLabels', type=d.T.array)]),
withSourceLabels(sourceLabels): { sourceLabels: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] },
'#withSourceLabelsMixin':: d.fn(help='"The source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sourceLabels', type=d.T.array)]),
withSourceLabelsMixin(sourceLabels): { sourceLabels+: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] },
'#withTargetLabel':: d.fn(help='"Label to which the resulting string is written in a replacement. \\n It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, `KeepEqual` and `DropEqual` actions. \\n Regex capture groups are available."', args=[d.arg(name='targetLabel', type=d.T.string)]),
withTargetLabel(targetLabel): { targetLabel: targetLabel },
},
'#podMonitorRelabelings':: d.obj(help='"The list of relabelings for the `PodMonitor`. Applied to samples before scraping."'),
podMonitorRelabelings: {
'#withAction':: d.fn(help='"Action to perform based on the regex matching. \\n `Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0. `DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0. \\n Default: \\"Replace\\', args=[d.arg(name='action', type=d.T.string)]),
withAction(action): { action: action },
'#withModulus':: d.fn(help='"Modulus to take of the hash of the source label values. \\n Only applicable when the action is `HashMod`."', args=[d.arg(name='modulus', type=d.T.integer)]),
withModulus(modulus): { modulus: modulus },
'#withRegex':: d.fn(help='"Regular expression against which the extracted value is matched."', args=[d.arg(name='regex', type=d.T.string)]),
withRegex(regex): { regex: regex },
'#withReplacement':: d.fn(help='"Replacement value against which a Replace action is performed if the regular expression matches. \\n Regex capture groups are available."', args=[d.arg(name='replacement', type=d.T.string)]),
withReplacement(replacement): { replacement: replacement },
'#withSeparator':: d.fn(help='"Separator is the string between concatenated SourceLabels."', args=[d.arg(name='separator', type=d.T.string)]),
withSeparator(separator): { separator: separator },
'#withSourceLabels':: d.fn(help='"The source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression."', args=[d.arg(name='sourceLabels', type=d.T.array)]),
withSourceLabels(sourceLabels): { sourceLabels: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] },
'#withSourceLabelsMixin':: d.fn(help='"The source labels select values from existing labels. Their content is concatenated using the configured Separator and matched against the configured regular expression."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sourceLabels', type=d.T.array)]),
withSourceLabelsMixin(sourceLabels): { sourceLabels+: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] },
'#withTargetLabel':: d.fn(help='"Label to which the resulting string is written in a replacement. \\n It is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`, `KeepEqual` and `DropEqual` actions. \\n Regex capture groups are available."', args=[d.arg(name='targetLabel', type=d.T.string)]),
withTargetLabel(targetLabel): { targetLabel: targetLabel },
},
'#withEnablePodMonitor':: d.fn(help='"Enable or disable the `PodMonitor`"', args=[d.arg(name='enablePodMonitor', type=d.T.boolean)]),
withEnablePodMonitor(enablePodMonitor): { spec+: { monitoring+: { enablePodMonitor: enablePodMonitor } } },
'#withPodMonitorMetricRelabelings':: d.fn(help='"The list of metric relabelings for the `PodMonitor`. Applied to samples before ingestion."', args=[d.arg(name='podMonitorMetricRelabelings', type=d.T.array)]),
withPodMonitorMetricRelabelings(podMonitorMetricRelabelings): { spec+: { monitoring+: { podMonitorMetricRelabelings: if std.isArray(v=podMonitorMetricRelabelings) then podMonitorMetricRelabelings else [podMonitorMetricRelabelings] } } },
'#withPodMonitorMetricRelabelingsMixin':: d.fn(help='"The list of metric relabelings for the `PodMonitor`. Applied to samples before ingestion."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='podMonitorMetricRelabelings', type=d.T.array)]),
withPodMonitorMetricRelabelingsMixin(podMonitorMetricRelabelings): { spec+: { monitoring+: { podMonitorMetricRelabelings+: if std.isArray(v=podMonitorMetricRelabelings) then podMonitorMetricRelabelings else [podMonitorMetricRelabelings] } } },
'#withPodMonitorRelabelings':: d.fn(help='"The list of relabelings for the `PodMonitor`. Applied to samples before scraping."', args=[d.arg(name='podMonitorRelabelings', type=d.T.array)]),
withPodMonitorRelabelings(podMonitorRelabelings): { spec+: { monitoring+: { podMonitorRelabelings: if std.isArray(v=podMonitorRelabelings) then podMonitorRelabelings else [podMonitorRelabelings] } } },
'#withPodMonitorRelabelingsMixin':: d.fn(help='"The list of relabelings for the `PodMonitor`. Applied to samples before scraping."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='podMonitorRelabelings', type=d.T.array)]),
withPodMonitorRelabelingsMixin(podMonitorRelabelings): { spec+: { monitoring+: { podMonitorRelabelings+: if std.isArray(v=podMonitorRelabelings) then podMonitorRelabelings else [podMonitorRelabelings] } } },
},
'#pgbouncer':: d.obj(help='"The PgBouncer configuration"'),
pgbouncer: {
Expand Down
Loading

0 comments on commit 89bfd3a

Please sign in to comment.