Skip to content

Commit 280e5d2

Browse files
☀ projected k8s-manifests-github from 45ebb5c
Source-holobranch: k8s-manifests-github Source-commit: 45ebb5c Source: 45ebb5c
2 parents 005fa7f + 45ebb5c commit 280e5d2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/k8s-deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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" | \

0 commit comments

Comments
 (0)