This is an automated email from the ASF dual-hosted git repository.

roryqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git


The following commit(s) were added to refs/heads/master by this push:
     new 194c6046 [#774] docs: Fix the metadata.annotations: Too long in 
`install.md` (#853)
194c6046 is described below

commit 194c6046b256a151a9f41e08aa7e2e77dc34020d
Author: Neo Chien <[email protected]>
AuthorDate: Wed May 10 21:24:58 2023 +0800

    [#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 06a380ad..891ea28c 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

Reply via email to