Skip to content

Commit 98e4dd1

Browse files
strowijsonnet-libs-bot
authored andcommitted
update: source github.com/jsonnet-libs/k8s@84d8d441
1 parent 4ccdea0 commit 98e4dd1

File tree

123 files changed

+54163
-56326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+54163
-56326
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
local d = (import 'doc-util/main.libsonnet'),
33
'#':: d.pkg(name='datadoghq', url='', help=''),
44
v1alpha1: (import 'v1alpha1/main.libsonnet'),
5+
v1alpha2: (import 'v1alpha2/main.libsonnet'),
56
v2alpha1: (import 'v2alpha1/main.libsonnet'),
67
}

1.18.0/_gen/datadoghq/v1alpha1/datadogAgentProfile.libsonnet

Lines changed: 1390 additions & 0 deletions
Large diffs are not rendered by default.

1.9.0/_gen/datadoghq/v1alpha1/datadogDashboard.libsonnet renamed to 1.18.0/_gen/datadoghq/v1alpha1/datadogDashboard.libsonnet

File renamed without changes.

1.8.0/_gen/datadoghq/v1alpha1/datadogMetric.libsonnet renamed to 1.18.0/_gen/datadoghq/v1alpha1/datadogMetric.libsonnet

File renamed without changes.

1.8.0/_gen/datadoghq/v1alpha1/datadogMonitor.libsonnet renamed to 1.18.0/_gen/datadoghq/v1alpha1/datadogMonitor.libsonnet

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,30 @@
5656
},
5757
'#options':: d.obj(help='"Options are the optional parameters associated with your monitor"'),
5858
options: {
59+
'#schedulingOptions':: d.obj(help='"Configuration options for scheduling."'),
60+
schedulingOptions: {
61+
'#customSchedule':: d.obj(help='"Configuration options for the custom schedule. If start is omitted, the monitor creation time will be used."'),
62+
customSchedule: {
63+
'#recurrence':: d.obj(help='"DatadogMonitorOptionsSchedulingOptionsCustomScheduleRecurrence is a struct of the recurrence definition"'),
64+
recurrence: {
65+
'#withRrule':: d.fn(help='"The recurrence rule in iCalendar format. For example, `FREQ=MONTHLY;BYMONTHDAY=28,29,30,31;BYSETPOS=-1`."', args=[d.arg(name='rrule', type=d.T.string)]),
66+
withRrule(rrule): { spec+: { options+: { schedulingOptions+: { customSchedule+: { recurrence+: { rrule: rrule } } } } } },
67+
'#withStart':: d.fn(help='"The start date of the recurrence rule defined in `YYYY-MM-DDThh:mm:ss` format.\\nIf omitted, the monitor creation time will be used."', args=[d.arg(name='start', type=d.T.string)]),
68+
withStart(start): { spec+: { options+: { schedulingOptions+: { customSchedule+: { recurrence+: { start: start } } } } } },
69+
'#withTimezone':: d.fn(help='"The timezone in `tz database` format, in which the recurrence rule is defined. For example, `America/New_York` or `UTC`."', args=[d.arg(name='timezone', type=d.T.string)]),
70+
withTimezone(timezone): { spec+: { options+: { schedulingOptions+: { customSchedule+: { recurrence+: { timezone: timezone } } } } } },
71+
},
72+
},
73+
'#evaluationWindow':: d.obj(help='"Configuration options for the evaluation window. If hour_starts is set, no other fields may be set.\\nOtherwise, day_starts and month_starts must be set together."'),
74+
evaluationWindow: {
75+
'#withDayStarts':: d.fn(help='"The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in HH:mm format."', args=[d.arg(name='dayStarts', type=d.T.string)]),
76+
withDayStarts(dayStarts): { spec+: { options+: { schedulingOptions+: { evaluationWindow+: { dayStarts: dayStarts } } } } },
77+
'#withHourStarts':: d.fn(help='"The minute of the hour at which a one hour cumulative evaluation window starts."', args=[d.arg(name='hourStarts', type=d.T.integer)]),
78+
withHourStarts(hourStarts): { spec+: { options+: { schedulingOptions+: { evaluationWindow+: { hourStarts: hourStarts } } } } },
79+
'#withMonthStarts':: d.fn(help='"The day of the month at which a one month cumulative evaluation window starts."', args=[d.arg(name='monthStarts', type=d.T.integer)]),
80+
withMonthStarts(monthStarts): { spec+: { options+: { schedulingOptions+: { evaluationWindow+: { monthStarts: monthStarts } } } } },
81+
},
82+
},
5983
'#thresholdWindows':: d.obj(help='"A struct of the alerting time window options."'),
6084
thresholdWindows: {
6185
'#withRecoveryWindow':: d.fn(help='"Describes how long an anomalous metric must be normal before the alert recovers."', args=[d.arg(name='recoveryWindow', type=d.T.string)]),

1.9.0/_gen/datadoghq/v1alpha1/datadogPodAutoscaler.libsonnet renamed to 1.18.0/_gen/datadoghq/v1alpha1/datadogPodAutoscaler.libsonnet

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,6 @@
5353
constraints: {
5454
'#containers':: d.obj(help='"Containers defines constraints for the containers."'),
5555
containers: {
56-
'#limits':: d.obj(help='"Limits defines the constraints for the limits of the container."'),
57-
limits: {
58-
'#withMaxAllowed':: d.fn(help='"MaxAllowed is the upper limit for the requests of the container."', args=[d.arg(name='maxAllowed', type=d.T.object)]),
59-
withMaxAllowed(maxAllowed): { limits+: { maxAllowed: maxAllowed } },
60-
'#withMaxAllowedMixin':: d.fn(help='"MaxAllowed is the upper limit for the requests of the container."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='maxAllowed', type=d.T.object)]),
61-
withMaxAllowedMixin(maxAllowed): { limits+: { maxAllowed+: maxAllowed } },
62-
'#withMinAllowed':: d.fn(help='"MinAllowed is the lower limit for the requests of the container."', args=[d.arg(name='minAllowed', type=d.T.object)]),
63-
withMinAllowed(minAllowed): { limits+: { minAllowed: minAllowed } },
64-
'#withMinAllowedMixin':: d.fn(help='"MinAllowed is the lower limit for the requests of the container."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='minAllowed', type=d.T.object)]),
65-
withMinAllowedMixin(minAllowed): { limits+: { minAllowed+: minAllowed } },
66-
},
6756
'#requests':: d.obj(help='"Requests defines the constraints for the requests of the container."'),
6857
requests: {
6958
'#withMaxAllowed':: d.fn(help='"MaxAllowed is the upper limit for the requests of the container."', args=[d.arg(name='maxAllowed', type=d.T.object)]),
@@ -75,7 +64,7 @@
7564
'#withMinAllowedMixin':: d.fn(help='"MinAllowed is the lower limit for the requests of the container."\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='minAllowed', type=d.T.object)]),
7665
withMinAllowedMixin(minAllowed): { requests+: { minAllowed+: minAllowed } },
7766
},
78-
'#withEnabled':: d.fn(help='"Enabled false allows to disable resources autoscaling for the container. Default to true."', args=[d.arg(name='enabled', type=d.T.boolean)]),
67+
'#withEnabled':: d.fn(help='"Enabled, if false, allows one to disable resource autoscaling for the container. Defaults to true."', args=[d.arg(name='enabled', type=d.T.boolean)]),
7968
withEnabled(enabled): { enabled: enabled },
8069
'#withName':: d.fn(help='"Name is the name of the container. Can be \\"*\\" to apply to all containers."', args=[d.arg(name='name', type=d.T.string)]),
8170
withName(name): { name: name },
@@ -86,7 +75,7 @@
8675
withContainersMixin(containers): { spec+: { constraints+: { containers+: if std.isArray(v=containers) then containers else [containers] } } },
8776
'#withMaxReplicas':: d.fn(help='"MaxReplicas is the upper limit for the number of POD replicas. Needs to be >= minReplicas."', args=[d.arg(name='maxReplicas', type=d.T.integer)]),
8877
withMaxReplicas(maxReplicas): { spec+: { constraints+: { maxReplicas: maxReplicas } } },
89-
'#withMinReplicas':: d.fn(help='"MinReplicas is the lower limit for the number of POD replicas. Needs to be >= 1. Default to 1."', args=[d.arg(name='minReplicas', type=d.T.integer)]),
78+
'#withMinReplicas':: d.fn(help='"MinReplicas is the lower limit for the number of pod replicas. Needs to be >= 1. Defaults to 1."', args=[d.arg(name='minReplicas', type=d.T.integer)]),
9079
withMinReplicas(minReplicas): { spec+: { constraints+: { minReplicas: minReplicas } } },
9180
},
9281
'#policy':: d.obj(help='"Policy defines how recommendations should be applied."'),
@@ -95,44 +84,44 @@
9584
downscale: {
9685
'#rules':: d.obj(help='"Rules is a list of potential scaling polices which can be used during scaling.\\nAt least one policy must be specified, otherwise the DatadogPodAutoscalerScalingPolicy will be discarded as invalid"'),
9786
rules: {
98-
'#withMatch':: d.fn(help='"Match defines if the rule should be considered or not in the calculation.\\nDefault to Always if not set."', args=[d.arg(name='match', type=d.T.string)]),
99-
withMatch(match): { match: match },
100-
'#withPeriodSeconds':: d.fn(help='"PeriodSeconds specifies the window of time for which the policy should hold true.\\nPeriodSeconds must be greater than zero and less than or equal to 1800 (30 min)."', args=[d.arg(name='periodSeconds', type=d.T.integer)]),
87+
'#withPeriodSeconds':: d.fn(help='"PeriodSeconds specifies the window of time for which the policy should hold true.\\nPeriodSeconds must be greater than zero and less than or equal to 3600 (1 hour)."', args=[d.arg(name='periodSeconds', type=d.T.integer)]),
10188
withPeriodSeconds(periodSeconds): { periodSeconds: periodSeconds },
10289
'#withType':: d.fn(help='"Type is used to specify the scaling policy."', args=[d.arg(name='type', type=d.T.string)]),
10390
withType(type): { type: type },
104-
'#withValue':: d.fn(help='"Value contains the amount of change which is permitted by the policy.\\nSetting it to 0 will prevent any scaling in this direction and should not be used unless Match is set to IfScalingEvent."', args=[d.arg(name='value', type=d.T.integer)]),
91+
'#withValue':: d.fn(help='"Value contains the amount of change which is permitted by the policy.\\nSetting it to 0 will prevent any scaling in this direction."', args=[d.arg(name='value', type=d.T.integer)]),
10592
withValue(value): { value: value },
10693
},
10794
'#withRules':: d.fn(help='"Rules is a list of potential scaling polices which can be used during scaling.\\nAt least one policy must be specified, otherwise the DatadogPodAutoscalerScalingPolicy will be discarded as invalid"', args=[d.arg(name='rules', type=d.T.array)]),
10895
withRules(rules): { spec+: { policy+: { downscale+: { rules: if std.isArray(v=rules) then rules else [rules] } } } },
10996
'#withRulesMixin':: d.fn(help='"Rules is a list of potential scaling polices which can be used during scaling.\\nAt least one policy must be specified, otherwise the DatadogPodAutoscalerScalingPolicy will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]),
11097
withRulesMixin(rules): { spec+: { policy+: { downscale+: { rules+: if std.isArray(v=rules) then rules else [rules] } } } },
98+
'#withStabilizationWindowSeconds':: d.fn(help='"StabilizationWindowSeconds is the number of seconds the controller should lookback at previous recommendations\\nbefore deciding to apply a new one. Defaults to 0."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]),
99+
withStabilizationWindowSeconds(stabilizationWindowSeconds): { spec+: { policy+: { downscale+: { stabilizationWindowSeconds: stabilizationWindowSeconds } } } },
111100
'#withStrategy':: d.fn(help='"Strategy is used to specify which policy should be used.\\nIf not set, the default value Max is used."', args=[d.arg(name='strategy', type=d.T.string)]),
112101
withStrategy(strategy): { spec+: { policy+: { downscale+: { strategy: strategy } } } },
113102
},
114103
'#update':: d.obj(help='"Update defines the policy to update target resource."'),
115104
update: {
116-
'#withStrategy':: d.fn(help='"Mode defines the mode of the update policy."', args=[d.arg(name='strategy', type=d.T.string)]),
105+
'#withStrategy':: d.fn(help='"Strategy defines the mode of the update policy."', args=[d.arg(name='strategy', type=d.T.string)]),
117106
withStrategy(strategy): { spec+: { policy+: { update+: { strategy: strategy } } } },
118107
},
119108
'#upscale':: d.obj(help='"Upscale defines the policy to scale up the target resource."'),
120109
upscale: {
121110
'#rules':: d.obj(help='"Rules is a list of potential scaling polices which can be used during scaling.\\nAt least one policy must be specified, otherwise the DatadogPodAutoscalerScalingPolicy will be discarded as invalid"'),
122111
rules: {
123-
'#withMatch':: d.fn(help='"Match defines if the rule should be considered or not in the calculation.\\nDefault to Always if not set."', args=[d.arg(name='match', type=d.T.string)]),
124-
withMatch(match): { match: match },
125-
'#withPeriodSeconds':: d.fn(help='"PeriodSeconds specifies the window of time for which the policy should hold true.\\nPeriodSeconds must be greater than zero and less than or equal to 1800 (30 min)."', args=[d.arg(name='periodSeconds', type=d.T.integer)]),
112+
'#withPeriodSeconds':: d.fn(help='"PeriodSeconds specifies the window of time for which the policy should hold true.\\nPeriodSeconds must be greater than zero and less than or equal to 3600 (1 hour)."', args=[d.arg(name='periodSeconds', type=d.T.integer)]),
126113
withPeriodSeconds(periodSeconds): { periodSeconds: periodSeconds },
127114
'#withType':: d.fn(help='"Type is used to specify the scaling policy."', args=[d.arg(name='type', type=d.T.string)]),
128115
withType(type): { type: type },
129-
'#withValue':: d.fn(help='"Value contains the amount of change which is permitted by the policy.\\nSetting it to 0 will prevent any scaling in this direction and should not be used unless Match is set to IfScalingEvent."', args=[d.arg(name='value', type=d.T.integer)]),
116+
'#withValue':: d.fn(help='"Value contains the amount of change which is permitted by the policy.\\nSetting it to 0 will prevent any scaling in this direction."', args=[d.arg(name='value', type=d.T.integer)]),
130117
withValue(value): { value: value },
131118
},
132119
'#withRules':: d.fn(help='"Rules is a list of potential scaling polices which can be used during scaling.\\nAt least one policy must be specified, otherwise the DatadogPodAutoscalerScalingPolicy will be discarded as invalid"', args=[d.arg(name='rules', type=d.T.array)]),
133120
withRules(rules): { spec+: { policy+: { upscale+: { rules: if std.isArray(v=rules) then rules else [rules] } } } },
134121
'#withRulesMixin':: d.fn(help='"Rules is a list of potential scaling polices which can be used during scaling.\\nAt least one policy must be specified, otherwise the DatadogPodAutoscalerScalingPolicy will be discarded as invalid"\n\n**Note:** This function appends passed data to existing values', args=[d.arg(name='rules', type=d.T.array)]),
135122
withRulesMixin(rules): { spec+: { policy+: { upscale+: { rules+: if std.isArray(v=rules) then rules else [rules] } } } },
123+
'#withStabilizationWindowSeconds':: d.fn(help='"StabilizationWindowSeconds is the number of seconds the controller should lookback at previous recommendations\\nbefore deciding to apply a new one. Defaults to 0."', args=[d.arg(name='stabilizationWindowSeconds', type=d.T.integer)]),
124+
withStabilizationWindowSeconds(stabilizationWindowSeconds): { spec+: { policy+: { upscale+: { stabilizationWindowSeconds: stabilizationWindowSeconds } } } },
136125
'#withStrategy':: d.fn(help='"Strategy is used to specify which policy should be used.\\nIf not set, the default value Max is used."', args=[d.arg(name='strategy', type=d.T.string)]),
137126
withStrategy(strategy): { spec+: { policy+: { upscale+: { strategy: strategy } } } },
138127
},
@@ -150,37 +139,33 @@
150139
},
151140
'#targets':: d.obj(help='"Targets are objectives to reach and maintain for the target resource.\\nDefault to a single target to maintain 80% POD CPU utilization."'),
152141
targets: {
153-
'#containerResource':: d.obj(help='"ContainerResource allows to set a container-level resource target."'),
142+
'#containerResource':: d.obj(help='"ContainerResource allows to set a container-level resource objective."'),
154143
containerResource: {
155-
'#value':: d.obj(help='"Value is the value of the target."'),
144+
'#value':: d.obj(help='"Value is the value of the objective"'),
156145
value: {
157-
'#withAbsolute':: d.fn(help='"Absolute defines the absolute value of the target (for instance 500 millicores)."', args=[d.arg(name='absolute', type=d.T.any)]),
158-
withAbsolute(absolute): { containerResource+: { value+: { absolute: absolute } } },
159-
'#withType':: d.fn(help='"Type specifies how the value is expressed (Absolute or Utilization)."', args=[d.arg(name='type', type=d.T.string)]),
146+
'#withType':: d.fn(help='"Type specifies how the value is expressed (possible values: Utilization)."', args=[d.arg(name='type', type=d.T.string)]),
160147
withType(type): { containerResource+: { value+: { type: type } } },
161-
'#withUtilization':: d.fn(help='"Utilization defines a percentage of the target compared to requested resource"', args=[d.arg(name='utilization', type=d.T.integer)]),
148+
'#withUtilization':: d.fn(help='"Utilization defines a percentage of the target compared to requested workload"', args=[d.arg(name='utilization', type=d.T.integer)]),
162149
withUtilization(utilization): { containerResource+: { value+: { utilization: utilization } } },
163150
},
164151
'#withContainer':: d.fn(help='"Container is the name of the container."', args=[d.arg(name='container', type=d.T.string)]),
165152
withContainer(container): { containerResource+: { container: container } },
166153
'#withName':: d.fn(help='"Name is the name of the resource."', args=[d.arg(name='name', type=d.T.string)]),
167154
withName(name): { containerResource+: { name: name } },
168155
},
169-
'#podResource':: d.obj(help='"PodResource allows to set a POD-level resource target."'),
156+
'#podResource':: d.obj(help='"PodResource allows to set a pod-level resource objective."'),
170157
podResource: {
171-
'#value':: d.obj(help='"Value is the value of the target."'),
158+
'#value':: d.obj(help='"Value is the value of the objective."'),
172159
value: {
173-
'#withAbsolute':: d.fn(help='"Absolute defines the absolute value of the target (for instance 500 millicores)."', args=[d.arg(name='absolute', type=d.T.any)]),
174-
withAbsolute(absolute): { podResource+: { value+: { absolute: absolute } } },
175-
'#withType':: d.fn(help='"Type specifies how the value is expressed (Absolute or Utilization)."', args=[d.arg(name='type', type=d.T.string)]),
160+
'#withType':: d.fn(help='"Type specifies how the value is expressed (possible values: Utilization)."', args=[d.arg(name='type', type=d.T.string)]),
176161
withType(type): { podResource+: { value+: { type: type } } },
177-
'#withUtilization':: d.fn(help='"Utilization defines a percentage of the target compared to requested resource"', args=[d.arg(name='utilization', type=d.T.integer)]),
162+
'#withUtilization':: d.fn(help='"Utilization defines a percentage of the target compared to requested workload"', args=[d.arg(name='utilization', type=d.T.integer)]),
178163
withUtilization(utilization): { podResource+: { value+: { utilization: utilization } } },
179164
},
180165
'#withName':: d.fn(help='"Name is the name of the resource."', args=[d.arg(name='name', type=d.T.string)]),
181166
withName(name): { podResource+: { name: name } },
182167
},
183-
'#withType':: d.fn(help='"Type sets the type of the target."', args=[d.arg(name='type', type=d.T.string)]),
168+
'#withType':: d.fn(help='"Type sets the type of the objective."', args=[d.arg(name='type', type=d.T.string)]),
184169
withType(type): { type: type },
185170
},
186171
'#withOwner':: d.fn(help='"Owner defines the source of truth for this object (local or remote)\\nValue needs to be set when a DatadogPodAutoscaler object is created."', args=[d.arg(name='owner', type=d.T.string)]),
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)