File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,10 +31,14 @@ jobs:
3131 echo -n '' > /tmp/kube.err
3232
3333 - name : ' Apply manifests: CRD resources'
34+ # Server-side apply avoids the 256KB metadata.annotations limit hit by
35+ # client-side apply's last-applied-configuration on large CRDs (e.g.
36+ # cnpg's poolers.postgresql.cnpg.io). --force-conflicts lets us reclaim
37+ # ownership from any prior client-side annotation during migration.
3438 run : |
3539 if [ -d ./_/CustomResourceDefinition ]; then
3640 # Capture errors and add context
37- dir_errors=$(kubectl apply -Rf ./_/CustomResourceDefinition 2>&1 1>>/tmp/kube.log || true)
41+ dir_errors=$(kubectl apply --server-side --force-conflicts - Rf ./_/CustomResourceDefinition 2>&1 1>>/tmp/kube.log || true)
3842
3943 # Filter and append errors with context if meaningful
4044 filtered_errors=$(echo "$dir_errors" | \
You can’t perform that action at this time.
0 commit comments