Florent VanDeMoortele
09/15/2023, 5:03 PMError: parse error at (prefect-worker/charts/common/templates/_labels.tpl:14): unclosed action
Is there a breaking change?Edward Park
09/15/2023, 5:07 PMFlorent VanDeMoortele
09/15/2023, 5:11 PMhelm upgrade --install prefect-worker prefect/prefect-worker --version $CHART_VERSION
Where chart_version is defined by: CHART_VERSION=$(helm search repo prefect/prefect-worker -l | grep $PREFECT_VERSION
# Get chart version corresponding to Prefect version
CHART_VERSION=$(helm search repo prefect/prefect-worker -l | grep $PREFECT_VERSION | awk '{print $2}')
# Deploy worker with Helm chart
helm upgrade --install prefect-worker prefect/prefect-worker \
--version $CHART_VERSION \
--namespace=$KUBERNETES_NAMESPACE \
--set worker.config.workPool=$KUBERNETES_WORK_POOL_NAME \
--set worker.cloudApiConfig.accountId=$PREFECT_ACCOUNT_ID \
--set worker.cloudApiConfig.workspaceId=$PREFECT_WORKSPACE_ID
Edward Park
09/15/2023, 5:36 PMCHART_VERSION
evaluated to 2023.09.07
, which is the correct chart version corresponding to 2.13.0
$ helm upgrade --install prefect-worker prefect/prefect-worker \
--version $CHART_VERSION \
--namespace=$KUBERNETES_NAMESPACE \
--set worker.config.workPool=$KUBERNETES_WORK_POOL_NAME \
--set worker.cloudApiConfig.accountId=$PREFECT_ACCOUNT_ID \
--set worker.cloudApiConfig.workspaceId=$PREFECT_WORKSPACE_ID
Release "prefect-worker" does not exist. Installing it now.
NAME: prefect-worker
LAST DEPLOYED: Fri Sep 15 10:34:42 2023
NAMESPACE: test-namespace
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Check Prefect worker connections in the prefect UI at "<https://app.prefect.cloud/account/eddie-account-id/workspace/eddie-workspace-id>"
Related question: when I upgrade my Prefect version in the requirements of my code, do I need to upgrade the worker with the associated version? Or can I use the same worker?it’s not required, but it’s strongly recommended that they stay in lockstep so there aren’t any unexpected incompatibilities
Florent VanDeMoortele
09/18/2023, 9:13 AMhelm upgrade --install prefect-worker prefect/prefect-worker \
--version 2023.09.14 \
--namespace=prefect \
--set worker.config.workPool=wp-dev \
--set worker.cloudApiConfig.accountId=$PREFECT_ACCOUNT_ID \
--set worker.cloudApiConfig.workspaceId=$PREFECT_WORKSPACE_ID
For account_id and workspace_id, it's my uuid so I don't share them here (but it works with last 2.12.x version)
And I have the same error:
Error: UPGRADE FAILED: parse error at (prefect-worker/charts/common/templates/_labels.tpl:14): unclosed action
Edward Park
09/18/2023, 5:46 PMhelm version
when you have a moment, and if possible update it to the latest? it looks like the issue is that one of our dependency charts introduced a templating expression that is incompatible with < helm 3.6.xhelm
client version, for whatever reason - we just cut a new chart version that includes a backwards compatible fix to your issue
https://github.com/PrefectHQ/prefect-helm/releases/tag/2023.09.18Florent VanDeMoortele
09/19/2023, 8:38 AMVersion:"v3.4.2"
for my local Helm. I updated to the latest version and now it works ! Thanks a lot @Edward Park 🙏