diff --git a/docs/helm/Chart.yaml b/docs/helm/Chart.yaml index 5174e2ff..1333531e 100644 --- a/docs/helm/Chart.yaml +++ b/docs/helm/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: kube-metrics-adapter -version: 0.1.18 +version: 0.1.19 description: kube-metrics-adapter helm chart home: https://github.com/zalando-incubator/kube-metrics-adapter maintainers: diff --git a/docs/helm/templates/cluster_scaling_schedules_crd.yaml b/docs/helm/templates/cluster_scaling_schedules_crd.yaml index d99438cb..a29a3655 100644 --- a/docs/helm/templates/cluster_scaling_schedules_crd.yaml +++ b/docs/helm/templates/cluster_scaling_schedules_crd.yaml @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.5.0 + controller-gen.kubebuilder.io/version: v0.8.0 creationTimestamp: null name: clusterscalingschedules.zalando.org spec: @@ -15,7 +15,12 @@ spec: singular: clusterscalingschedule scope: Cluster versions: - - name: v1 + - additionalPrinterColumns: + - description: Whether one or more schedules are currently active. + jsonPath: .status.active + name: Active + type: boolean + name: v1 schema: openAPIV3Schema: description: ClusterScalingSchedule describes a cluster scoped time based @@ -36,6 +41,11 @@ spec: spec: description: ScalingScheduleSpec is the spec part of the ScalingSchedule. properties: + scalingWindowDurationMinutes: + description: Fade the scheduled values in and out over this many minutes. + If unset, the default per-cluster value will be used. + format: int64 + type: integer schedules: description: Schedules is the list of schedules for this ScalingSchedule resource. All the schedules defined here will result on the value @@ -50,9 +60,14 @@ spec: format: date-time type: string durationMinutes: - description: The duration in minutes that the configured value - will be returned for the defined schedule. + description: The duration in minutes (default 0) that the configured + value will be returned for the defined schedule. type: integer + endDate: + description: Defines the ending date of a OneTime schedule. + It must be a RFC3339 formated date. + format: date-time + type: string period: description: Defines the details of a Repeating schedule. properties: @@ -71,6 +86,10 @@ spec: - Sat type: string type: array + endTime: + description: The endTime has the format HH:MM + pattern: (([0-1][0-9])|([2][0-3])):([0-5][0-9]) + type: string startTime: description: The startTime has the format HH:MM pattern: (([0-1][0-9])|([2][0-3])):([0-5][0-9]) @@ -95,9 +114,9 @@ spec: value: description: The metric value that will be returned for the defined schedule. + format: int64 type: integer required: - - durationMinutes - type - value type: object @@ -105,11 +124,22 @@ spec: required: - schedules type: object + status: + description: ScalingScheduleStatus is the status section of the ScalingSchedule. + properties: + active: + default: false + description: Active is true if at least one of the schedules defined + in the scaling schedule is currently active. + type: boolean + type: object required: - spec type: object served: true storage: true + subresources: + status: {} status: acceptedNames: kind: "" diff --git a/docs/helm/templates/scaling_schedules_crd.yaml b/docs/helm/templates/scaling_schedules_crd.yaml index 24a6b97d..301cbd5d 100644 --- a/docs/helm/templates/scaling_schedules_crd.yaml +++ b/docs/helm/templates/scaling_schedules_crd.yaml @@ -3,19 +3,26 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.5.0 + controller-gen.kubebuilder.io/version: v0.8.0 creationTimestamp: null name: scalingschedules.zalando.org spec: group: zalando.org names: + categories: + - all kind: ScalingSchedule listKind: ScalingScheduleList plural: scalingschedules singular: scalingschedule scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - description: Whether one or more schedules are currently active. + jsonPath: .status.active + name: Active + type: boolean + name: v1 schema: openAPIV3Schema: description: ScalingSchedule describes a namespaced time based metric to be @@ -36,6 +43,11 @@ spec: spec: description: ScalingScheduleSpec is the spec part of the ScalingSchedule. properties: + scalingWindowDurationMinutes: + description: Fade the scheduled values in and out over this many minutes. + If unset, the default per-cluster value will be used. + format: int64 + type: integer schedules: description: Schedules is the list of schedules for this ScalingSchedule resource. All the schedules defined here will result on the value @@ -50,9 +62,14 @@ spec: format: date-time type: string durationMinutes: - description: The duration in minutes that the configured value - will be returned for the defined schedule. + description: The duration in minutes (default 0) that the configured + value will be returned for the defined schedule. type: integer + endDate: + description: Defines the ending date of a OneTime schedule. + It must be a RFC3339 formated date. + format: date-time + type: string period: description: Defines the details of a Repeating schedule. properties: @@ -71,6 +88,10 @@ spec: - Sat type: string type: array + endTime: + description: The endTime has the format HH:MM + pattern: (([0-1][0-9])|([2][0-3])):([0-5][0-9]) + type: string startTime: description: The startTime has the format HH:MM pattern: (([0-1][0-9])|([2][0-3])):([0-5][0-9]) @@ -95,9 +116,9 @@ spec: value: description: The metric value that will be returned for the defined schedule. + format: int64 type: integer required: - - durationMinutes - type - value type: object @@ -105,11 +126,22 @@ spec: required: - schedules type: object + status: + description: ScalingScheduleStatus is the status section of the ScalingSchedule. + properties: + active: + default: false + description: Active is true if at least one of the schedules defined + in the scaling schedule is currently active. + type: boolean + type: object required: - spec type: object served: true storage: true + subresources: + status: {} status: acceptedNames: kind: "" diff --git a/docs/helm/values.yaml b/docs/helm/values.yaml index 0589bc39..b471ab38 100644 --- a/docs/helm/values.yaml +++ b/docs/helm/values.yaml @@ -4,7 +4,7 @@ replicas: 1 registry: image: registry.opensource.zalan.do/teapot/kube-metrics-adapter - imageTag: v0.1.10 + imageTag: v0.2.0 imagePullPolicy: IfNotPresent service: