Replies: 4 comments 1 reply
-
Youre passing "affinity" as a big string value, and youre passing in "affinity" (the key) as part of the value youre trying to set. If youre passing in tolerations the same way, thats probably your issue. In your second question about YAML formatting, all of your formats are incorrect--the last one is probably the closest, but you need to remove the "| -". |
Beta Was this translation helpful? Give feedback.
-
How do I pass in |
Beta Was this translation helpful? Give feedback.
-
I tried this but it's just making the whole argo application fail with error validating data: ValidationError(Application.spec.source.helm.parameters[9].value): invalid type for io.argoproj.v1alpha1.Application.spec.source.helm.parameters.value: got "array", expected "string" |
Beta Was this translation helpful? Give feedback.
-
Not specifically for Argo, but Here's my values file for the gha-runner-scale-set chart that includes nodeSelector,tolerances and resources. I found that you basically need to specify the entire pod spec template to customize the runners. This also includes a downstream runner image with some nice-to-have utilities like git.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to deploy version 0.7.0 of the gha-runner-scale-set-controller helm chart from ghcr.io/actions/actions-runner-controller-charts and I'm completely stuck trying to input helm parameters in a way that actually runs because my "tolerations" and "affinity" fields keep getting rejected. I can't find any documentation anywhere saying how they're supposed to be specified.
I'm doing this via ArgoCD and passing in the following values:
and it keeps failing with this error:
error validating data: [ValidationError(Deployment.spec.template.spec.affinity): invalid type for io.k8s.api.core.v1.Affinity: got "string", expected "map", ValidationError(Deployment.spec.template.spec.tolerations): invalid type for io.k8s.api.core.v1.PodSpec.tolerations: got "string", expected "array"]
I've tried all of the following variations of the syntax (example of for tolerations, but I've tried the same format for affinity as well) and they all fail with the same error
how do I correctly format this yaml so the controller deploys?
Beta Was this translation helpful? Give feedback.
All reactions