You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to deploy the following spec to use github webhook driver scaling on our runners using workflowjob events. I'm using the example from the official docs for workflowjob, translated to terraform spec.
spec={
# Runners in the targeted RunnerDeployment won't be scaled down# for 5 minutes instead of the default 10 minutes now
scaleDownDelaySecondsAfterScaleOut =300
scaleTargetRef = {
name = each.value.manifest.metadata.name
}
minReplicas =0
maxReplicas =25
scaleUpTriggers = [
{
githubEvent = {
workflowJob = {}
}
duration ="1m"
}
]
}
}
This is not passing the validation and throwing the below error:
│ AttributeName("spec"): [AttributeName("spec")] failed to morph object element into object element: AttributeName("spec").AttributeName("scaleUpTriggers"): [AttributeName("spec").AttributeName("scaleUpTriggers")] failed to morph object element into object element:
│ AttributeName("spec").AttributeName("scaleUpTriggers").ElementKeyInt(0): [AttributeName("spec").AttributeName("scaleUpTriggers").ElementKeyInt(0)] failed to morph tuple element into tuple element: AttributeName("spec").AttributeName("scaleUpTriggers").ElementKeyInt(0).AttributeName("githubEvent"):
│ [AttributeName("spec").AttributeName("scaleUpTriggers").ElementKeyInt(0).AttributeName("githubEvent")] failed to morph object element into object element: AttributeName("spec").AttributeName("scaleUpTriggers").ElementKeyInt(0).AttributeName("githubEvent").AttributeName("workflowJob"):
│ [AttributeName("spec").AttributeName("scaleUpTriggers").ElementKeyInt(0).AttributeName("githubEvent").AttributeName("workflowJob")] failed to morph object element into object element:
│ AttributeName("spec").AttributeName("scaleUpTriggers").ElementKeyInt(0).AttributeName("githubEvent").AttributeName("workflowJob"): type is nil
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are trying to deploy the following spec to use github webhook driver scaling on our runners using
workflowjob
events. I'm using the example from the official docs for workflowjob, translated toterraform
spec.This is not passing the validation and throwing the below error:
Any suggestion on what could be wrong here?
Beta Was this translation helpful? Give feedback.
All reactions