How do you handle CRDs and their custom resources in the same Application?
AdvancedConceptRepo Structure, Flux, Scaling & DR
Answer
Put CRDs in an earlier wave (or a separate Application in an earlier wave of the app-of-apps), add SkipDryRunOnMissingResource=true for the CRs, and use ServerSideApply=true because CRDs are often too large for client-side apply. Protect CRDs from pruning (Prune=false), since deleting a CRD deletes every CR of that kind cluster-wide. Many charts offer crds.enabled/installCRDs; platform teams often manage CRDs separately from the operator to control upgrades.
More on Repo Structure, Flux, Scaling & DR
Why separate the application source repo from the config (GitOps) repo?BeginnerFolders per environment or branches per environment?IntermediateHow do you promote a release from staging to production in GitOps?IntermediateWhat does a typical multi-team config repo layout look like?IntermediateHow does Flux differ from Argo CD architecturally?IntermediateWhen would you pick Flux over Argo CD, and vice versa?Intermediate