kubesphere / ksbuilder

A CLI tool helps you to manage the development of kubesphere extensions
MIT License
10 stars 19 forks source link

Use server-side apply to avoid the issue of annotations being too long #22

Closed iawia002 closed 1 year ago

iawia002 commented 1 year ago

When creating a large chart, you may encounter the following issue:

The ConfigMap "xxx" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

This is due to the automatic creation of the last-applied-configuration annotation exceeding the maximum length limit (262144 characters) when using the kubectl apply command. This PR uses server-side apply to avoid creating the last-applied-configuration annotation and solve this problem.

/cc @wansir

wansir commented 1 year ago

/lgtm