Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/k8s-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ jobs:
echo -n '' > /tmp/kube.err

- name: 'Apply manifests: CRD resources'
# Server-side apply avoids the 256KB metadata.annotations limit hit by
# client-side apply's last-applied-configuration on large CRDs (e.g.
# cnpg's poolers.postgresql.cnpg.io). --force-conflicts lets us reclaim
# ownership from any prior client-side annotation during migration.
run: |
if [ -d ./_/CustomResourceDefinition ]; then
# Capture errors and add context
dir_errors=$(kubectl apply -Rf ./_/CustomResourceDefinition 2>&1 1>>/tmp/kube.log || true)
dir_errors=$(kubectl apply --server-side --force-conflicts -Rf ./_/CustomResourceDefinition 2>&1 1>>/tmp/kube.log || true)

# Filter and append errors with context if meaningful
filtered_errors=$(echo "$dir_errors" | \
Expand Down
Loading