|
27 | 27 | withLabels(labels): { metadata+: { labels: labels } }, |
28 | 28 | '#withLabelsMixin':: d.fn(help='"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), |
29 | 29 | withLabelsMixin(labels): { metadata+: { labels+: labels } }, |
30 | | - '#withManagedFields':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"", args=[d.arg(name='managedFields', type=d.T.array)]), |
31 | | - withManagedFields(managedFields): { metadata+: { managedFields: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, |
32 | | - '#withManagedFieldsMixin':: d.fn(help="\"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \\\"ci-cd\\\". The set of fields is always in the version that the workflow used when modifying the object.\"\n\n**Note:** This function appends passed data to existing values", args=[d.arg(name='managedFields', type=d.T.array)]), |
33 | | - withManagedFieldsMixin(managedFields): { metadata+: { managedFields+: if std.isArray(v=managedFields) then managedFields else [managedFields] } }, |
34 | 30 | '#withName':: d.fn(help='"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"', args=[d.arg(name='name', type=d.T.string)]), |
35 | 31 | withName(name): { metadata+: { name: name } }, |
36 | 32 | '#withNamespace':: d.fn(help='"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \\"default\\" namespace, but \\"default\\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\\n\\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"', args=[d.arg(name='namespace', type=d.T.string)]), |
|
97 | 93 | '#withOptional':: d.fn(help='"Specify whether the Secret or its key must be defined"', args=[d.arg(name='optional', type=d.T.boolean)]), |
98 | 94 | withOptional(optional): { spec+: { bearerTokenSecret+: { optional: optional } } }, |
99 | 95 | }, |
| 96 | + '#metricRelabelings':: d.obj(help='"MetricRelabelConfigs to apply to samples before ingestion."'), |
| 97 | + metricRelabelings: { |
| 98 | + '#withAction':: d.fn(help="\"Action to perform based on regex matching. Default is 'replace'\"", args=[d.arg(name='action', type=d.T.string)]), |
| 99 | + withAction(action): { action: action }, |
| 100 | + '#withModulus':: d.fn(help='"Modulus to take of the hash of the source label values."', args=[d.arg(name='modulus', type=d.T.integer)]), |
| 101 | + withModulus(modulus): { modulus: modulus }, |
| 102 | + '#withRegex':: d.fn(help="\"Regular expression against which the extracted value is matched. Default is '(.*)'\"", args=[d.arg(name='regex', type=d.T.string)]), |
| 103 | + withRegex(regex): { regex: regex }, |
| 104 | + '#withReplacement':: d.fn(help="\"Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'\"", args=[d.arg(name='replacement', type=d.T.string)]), |
| 105 | + withReplacement(replacement): { replacement: replacement }, |
| 106 | + '#withSeparator':: d.fn(help="\"Separator placed between concatenated source label values. default is ';'.\"", args=[d.arg(name='separator', type=d.T.string)]), |
| 107 | + withSeparator(separator): { separator: separator }, |
| 108 | + '#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 for the replace, keep, and drop actions."', args=[d.arg(name='sourceLabels', type=d.T.array)]), |
| 109 | + withSourceLabels(sourceLabels): { sourceLabels: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] }, |
| 110 | + '#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 for the replace, keep, and drop actions."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sourceLabels', type=d.T.array)]), |
| 111 | + withSourceLabelsMixin(sourceLabels): { sourceLabels+: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] }, |
| 112 | + '#withTargetLabel':: d.fn(help='"Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available."', args=[d.arg(name='targetLabel', type=d.T.string)]), |
| 113 | + withTargetLabel(targetLabel): { targetLabel: targetLabel }, |
| 114 | + }, |
100 | 115 | '#oauth2':: d.obj(help='"OAuth2 for the URL. Only valid in Prometheus versions 2.27.0 and newer."'), |
101 | 116 | oauth2: { |
102 | 117 | '#clientId':: d.obj(help='"The secret or configmap containing the OAuth2 client id"'), |
|
164 | 179 | '#withMatchNamesMixin':: d.fn(help='"List of namespace names."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='matchNames', type=d.T.array)]), |
165 | 180 | withMatchNamesMixin(matchNames): { spec+: { targets+: { ingress+: { namespaceSelector+: { matchNames+: if std.isArray(v=matchNames) then matchNames else [matchNames] } } } } }, |
166 | 181 | }, |
| 182 | + '#relabelingConfigs':: d.obj(help='"RelabelConfigs to apply to samples before ingestion. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config"'), |
| 183 | + relabelingConfigs: { |
| 184 | + '#withAction':: d.fn(help="\"Action to perform based on regex matching. Default is 'replace'\"", args=[d.arg(name='action', type=d.T.string)]), |
| 185 | + withAction(action): { action: action }, |
| 186 | + '#withModulus':: d.fn(help='"Modulus to take of the hash of the source label values."', args=[d.arg(name='modulus', type=d.T.integer)]), |
| 187 | + withModulus(modulus): { modulus: modulus }, |
| 188 | + '#withRegex':: d.fn(help="\"Regular expression against which the extracted value is matched. Default is '(.*)'\"", args=[d.arg(name='regex', type=d.T.string)]), |
| 189 | + withRegex(regex): { regex: regex }, |
| 190 | + '#withReplacement':: d.fn(help="\"Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'\"", args=[d.arg(name='replacement', type=d.T.string)]), |
| 191 | + withReplacement(replacement): { replacement: replacement }, |
| 192 | + '#withSeparator':: d.fn(help="\"Separator placed between concatenated source label values. default is ';'.\"", args=[d.arg(name='separator', type=d.T.string)]), |
| 193 | + withSeparator(separator): { separator: separator }, |
| 194 | + '#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 for the replace, keep, and drop actions."', args=[d.arg(name='sourceLabels', type=d.T.array)]), |
| 195 | + withSourceLabels(sourceLabels): { sourceLabels: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] }, |
| 196 | + '#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 for the replace, keep, and drop actions."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sourceLabels', type=d.T.array)]), |
| 197 | + withSourceLabelsMixin(sourceLabels): { sourceLabels+: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] }, |
| 198 | + '#withTargetLabel':: d.fn(help='"Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available."', args=[d.arg(name='targetLabel', type=d.T.string)]), |
| 199 | + withTargetLabel(targetLabel): { targetLabel: targetLabel }, |
| 200 | + }, |
167 | 201 | '#selector':: d.obj(help='"Select Ingress objects by labels."'), |
168 | 202 | selector: { |
| 203 | + '#matchExpressions':: d.obj(help='"matchExpressions is a list of label selector requirements. The requirements are ANDed."'), |
| 204 | + matchExpressions: { |
| 205 | + '#withKey':: d.fn(help='"key is the label key that the selector applies to."', args=[d.arg(name='key', type=d.T.string)]), |
| 206 | + withKey(key): { key: key }, |
| 207 | + '#withOperator':: d.fn(help="\"operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.\"", args=[d.arg(name='operator', type=d.T.string)]), |
| 208 | + withOperator(operator): { operator: operator }, |
| 209 | + '#withValues':: d.fn(help='"values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."', args=[d.arg(name='values', type=d.T.array)]), |
| 210 | + withValues(values): { values: if std.isArray(v=values) then values else [values] }, |
| 211 | + '#withValuesMixin':: d.fn(help='"values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='values', type=d.T.array)]), |
| 212 | + withValuesMixin(values): { values+: if std.isArray(v=values) then values else [values] }, |
| 213 | + }, |
169 | 214 | '#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)]), |
170 | 215 | withMatchExpressions(matchExpressions): { spec+: { targets+: { ingress+: { selector+: { matchExpressions: if std.isArray(v=matchExpressions) then matchExpressions else [matchExpressions] } } } } }, |
171 | 216 | '#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)]), |
|
182 | 227 | }, |
183 | 228 | '#staticConfig':: d.obj(help='"StaticConfig defines static targets which are considers for probing. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#static_config."'), |
184 | 229 | staticConfig: { |
| 230 | + '#relabelingConfigs':: d.obj(help='"RelabelConfigs to apply to samples before ingestion. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config"'), |
| 231 | + relabelingConfigs: { |
| 232 | + '#withAction':: d.fn(help="\"Action to perform based on regex matching. Default is 'replace'\"", args=[d.arg(name='action', type=d.T.string)]), |
| 233 | + withAction(action): { action: action }, |
| 234 | + '#withModulus':: d.fn(help='"Modulus to take of the hash of the source label values."', args=[d.arg(name='modulus', type=d.T.integer)]), |
| 235 | + withModulus(modulus): { modulus: modulus }, |
| 236 | + '#withRegex':: d.fn(help="\"Regular expression against which the extracted value is matched. Default is '(.*)'\"", args=[d.arg(name='regex', type=d.T.string)]), |
| 237 | + withRegex(regex): { regex: regex }, |
| 238 | + '#withReplacement':: d.fn(help="\"Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'\"", args=[d.arg(name='replacement', type=d.T.string)]), |
| 239 | + withReplacement(replacement): { replacement: replacement }, |
| 240 | + '#withSeparator':: d.fn(help="\"Separator placed between concatenated source label values. default is ';'.\"", args=[d.arg(name='separator', type=d.T.string)]), |
| 241 | + withSeparator(separator): { separator: separator }, |
| 242 | + '#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 for the replace, keep, and drop actions."', args=[d.arg(name='sourceLabels', type=d.T.array)]), |
| 243 | + withSourceLabels(sourceLabels): { sourceLabels: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] }, |
| 244 | + '#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 for the replace, keep, and drop actions."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='sourceLabels', type=d.T.array)]), |
| 245 | + withSourceLabelsMixin(sourceLabels): { sourceLabels+: if std.isArray(v=sourceLabels) then sourceLabels else [sourceLabels] }, |
| 246 | + '#withTargetLabel':: d.fn(help='"Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available."', args=[d.arg(name='targetLabel', type=d.T.string)]), |
| 247 | + withTargetLabel(targetLabel): { targetLabel: targetLabel }, |
| 248 | + }, |
185 | 249 | '#withLabels':: d.fn(help='"Labels assigned to all metrics scraped from the targets."', args=[d.arg(name='labels', type=d.T.object)]), |
186 | 250 | withLabels(labels): { spec+: { targets+: { staticConfig+: { labels: labels } } } }, |
187 | 251 | '#withLabelsMixin':: d.fn(help='"Labels assigned to all metrics scraped from the targets."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='labels', type=d.T.object)]), |
|
0 commit comments