This commit is contained in:
David Moore 2020-02-25 13:44:18 +00:00 коммит произвёл GitHub
Родитель 5dfd472963
Коммит d68fc54d30
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,6 @@
# Project Status & Disclaimer
The code provided in this repo is not actively maintained.
![CI](https://github.com/microsoft/k8s-cronjob-prescaler/workflows/CI/badge.svg)
# Introduction
The main purpose of this project is to provide a mechanism whereby cronjobs can be run on auto-scaling clusters, and ensure that the cluster is scaled up to their desired size prior to the time at which the `CronJob` workload needs to begin.
@ -142,4 +143,4 @@ Many samples in the Kubernetes docs show `requests` and `limits` of a container
requests:
nvidia.com/gpu: 1
```
The generated yaml schema definition for the `PrescaledCronJob` just sets the validation for these properties to `string`s, rather than what they should be (`integer` | `string` with a fixed regex format). This means we need to apply a patch (`/config/crd/patches/resource-type-patch.yaml`) to override the autogenerated type. This information may come in handy in future if other edge cases are found.
The generated yaml schema definition for the `PrescaledCronJob` just sets the validation for these properties to `string`s, rather than what they should be (`integer` | `string` with a fixed regex format). This means we need to apply a patch (`/config/crd/patches/resource-type-patch.yaml`) to override the autogenerated type. This information may come in handy in future if other edge cases are found.