From 194c6046b256a151a9f41e08aa7e2e77dc34020d Mon Sep 17 00:00:00 2001 From: Neo Chien Date: Wed, 10 May 2023 21:24:58 +0800 Subject: [PATCH] [#774] docs: Fix the metadata.annotations: Too long in `install.md` (#853) ### What changes were proposed in this pull request? Fix the metadata.annotations: Too long in `install.md` ### Why are the changes needed? Solve the error message encountered below when using `kubectl apply -f` `The CustomResourceDefinition "remoteshuffleservices.uniffle.apache.org" is invalid: metadata.annotations: Too long: must have at most 262144 bytes ` Fix: #774 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No. --- docs/operator/install.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/operator/install.md b/docs/operator/install.md index 06a380add8..891ea28c06 100644 --- a/docs/operator/install.md +++ b/docs/operator/install.md @@ -42,7 +42,11 @@ to [crd yaml file](../../deploy/kubernetes/operator/config/crd/bases/uniffle.apa Run the following command: ``` -kubectl apply -f ${crd-yaml-file} +# create, cannot use apply here, see https://github.com/apache/incubator-uniffle/issues/774 +kubectl create -f ${crd-yaml-file} + +# update, make sure the crd-yaml-file is a complete CRD file. +kubectl replace -f ${crd-yaml-file} ``` ## Setup or Update Uniffle Webhook