actions / actions-runner-controller

Kubernetes controller for GitHub Actions self-hosted runners
Apache License 2.0
4.63k stars 1.1k forks source link

Crds custom annotations #3472

Open GSZoominfo opened 5 months ago

GSZoominfo commented 5 months ago

This PR will allow us to add custom annotations to the crds

use case:

GSZoominfo commented 5 months ago

@mumoshu @toast-gear @rentziass @nikola-jokic hey all - can someone please check this PR it's a very small one and it could solve a lot of issues when using argo cd.

asafhm commented 3 months ago

Hi @GSZoominfo , I was wondering, won't setting ServerSideApply option in the ArgoCD Application level be enough? If the main reason is to solve the infamous "Too long must have at most 262144 bytes" error, then setting this option in the application SyncOptions helped me with this very error in the Prometheus CRD

thomaspetit commented 2 months ago

Hi @GSZoominfo , I was wondering, won't setting ServerSideApply option in the ArgoCD Application level be enough? If the main reason is to solve the infamous "Too long must have at most 262144 bytes" error, then setting this option in the application SyncOptions helped me with this very error in the Prometheus CRD

You don't want to do this as setting it on Application level might break other functionalities like sync waves/hooks. Reference to actual (open) issue: https://github.com/argoproj/argo-cd/issues/13320

The approach chosen in this PR is a good one. We see similar implementations on prometheus, kyverno, argocd: