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.
When creating a large chart, you may encounter the following issue:
This is due to the automatic creation of the
last-applied-configuration
annotation exceeding the maximum length limit (262144 characters) when using thekubectl apply
command. This PR uses server-side apply to avoid creating thelast-applied-configuration
annotation and solve this problem./cc @wansir