- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
23 lines
778 B
Bash
Executable File
23 lines
778 B
Bash
Executable File
#!/bin/sh
|
|
# Fix generated DeepCopy code to handle Spec/Status types correctly
|
|
|
|
if [ ! -f "apis/v1alpha1/zz_generated.deepcopy.go" ]; then
|
|
echo "Generated file not found, skipping fix"
|
|
exit 0
|
|
fi
|
|
|
|
# Fix all DeepCopyInto calls for Spec/Status to use value assignment instead
|
|
# This works because Go structs are copied by value
|
|
sed -i.bak \
|
|
-e 's/in\.Spec\.DeepCopyInto(&out\.Spec)/out.Spec = in.Spec/g' \
|
|
-e 's/in\.Status\.DeepCopyInto(&out\.Status)/out.Status = in.Status/g' \
|
|
-e 's/in\.Spec\.DeepCopyInto(out\.Spec)/out.Spec = in.Spec/g' \
|
|
-e 's/in\.Status\.DeepCopyInto(out\.Status)/out.Status = in.Status/g' \
|
|
apis/v1alpha1/zz_generated.deepcopy.go
|
|
|
|
# Remove backup file
|
|
rm -f apis/v1alpha1/zz_generated.deepcopy.go.bak
|
|
|
|
echo "Fixed DeepCopy code"
|
|
|