-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomResourceDefinition.apiextensions.k8s.io "runners.actions.summerwind.dev" is invalid: metadata.annotations: Too long #1102
Comments
@donovanmuller This is a limitation of K8s. You need to use |
@mumoshu agreed, however, using the Helm chart and then especially when using in conjunction with ArgoCD, makes this more challenging than it should be. However, I appreciate that this isn't really an issue in this project. I've worked around it by applying the advice from the Prometheus thread and using a Helm + Kustomize setup to add the If there's nothing to action, happy to close. |
@donovanmuller Hey, thanks for sharing your work-around! |
@donovanmuller , would you mind sharing your solution? How did you include the CRDs into your kustomiziation folder? Do they need to be added manually or can they be referenced in a smarter way? Might be helpful for everyone who is using ArgoCD and the actions runner controller :) |
I'm following solution at prometheus-operator/prometheus-operator#4439 (comment) at get this problem solved. syncOptions:
- Replace=true |
@jimmyh85 Using the Helm + Kustomize approach, we just use E.g.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../helm
patchesStrategicMerge:
- patch/runners-crd.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
argocd.argoproj.io/sync-options: Replace=true
name: runners.actions.summerwind.dev |
Thanks, can achieve the same result by setting in web dashboard: |
@donovanmuller, what does your |
@norman-zon, I also had some issues in setting it up via kustomized-helm and solved it by using below plugin config configManagementPlugins: |
- name: kustomized-helm
init:
command: ["/bin/sh", "-c"]
args: ["helm dependency build"]
generate:
command: [sh, -c]
args: ["helm template . --name-template $ARGOCD_APP_NAME --namespace $ARGOCD_APP_NAMESPACE --include-crds > all.yaml && kustomize build"] Main problem was that the example of helm-kustomized did not consider the namespace. Hope this helps, but the approach to use the sync option replace=true might be easier |
configManagementPlugins: |
- name: kustomized-helm
init:
command: ["/bin/sh", "-c"]
args: ["helm dependency build ../../helm || true"]
generate:
command: ["/bin/sh", "-c"]
args: ["echo \"$HELM_VALUES\" | helm template ../../helm --name-template $ARGOCD_APP_NAME --namespace $ARGOCD_APP_NAMESPACE $HELM_ARGS -f - --include-crds > ../../helm/all.yaml && kustomize build"] |
Is this version released? |
Nothing was changed |
Describe the bug
After updating to the
0.15.3
Chart I am getting the following error when sync'ing the Chart via ArgoCD:Checks
To Reproduce
Steps to reproduce the behavior:
0.15.3
Chart versionno matches for kind \"RunnerReplicaSet\"
Expected behavior
ArgoCD Application syncs successfully and controller is running.
Environment (please complete the following information):
0.20.4
0.15.3
Additional context
This is a similar/same issue as faced in prometheus-community/helm-charts#1500
The text was updated successfully, but these errors were encountered: