From 1c76afc2bc1a3806e33933726571207f8466f514 Mon Sep 17 00:00:00 2001 From: Richard Mokua Date: Thu, 30 Jul 2020 07:56:34 +0200 Subject: [PATCH] Update custom-resource-definitions.md The example on line 746-754, should has an image tag; with the image tag, the validation will fail with the error "validating data: ValidationError(CronTab.spec): unknown field "image"". Solution : Adding the image field on the CustomResourceDefinitions. --- .../custom-resources/custom-resource-definitions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md b/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md index 78b55b58dc..7d8ccafe73 100644 --- a/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md +++ b/content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md @@ -673,6 +673,8 @@ spec: cronSpec: type: string pattern: '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$' + image: + type: string replicas: type: integer minimum: 1 @@ -720,6 +722,8 @@ spec: cronSpec: type: string pattern: '^(\d+|\*)(/\d+)?(\s+(\d+|\*)(/\d+)?){4}$' + image: + type: string replicas: type: integer minimum: 1