Skip to content

[Bug] Migration guide step order causes controller crash when upgrading across versions that introduce new CRDs #262

@jinjiaKarl

Description

@jinjiaKarl

What are you really trying to do?

Upgrading the temporal-worker-controller Helm chart from v0.14.0 to v0.24.0, following the Migration Guide for Existing Users.

Describe the bug

The migration guide instructs users to upgrade the controller chart before installing the CRDs chart (Step 1). This causes the controller to crash-loop when the target version introduces new CRDs that didn't exist in the source version.


  {"level":"error","ts":1775543722.2208555,"logger":"setup","msg":"unable to create
  controller","controller":"TemporalWorkerDeployment","error":"no matches for kind \"WorkerResourceTemplate\" in version
  \"temporal.io/v1alpha1\"","stacktrace":"main.main\n\t/home/runner/work/temporal-worker-controller/temporal-worker-controller/cmd/main.go:9
  7\nruntime.main\n\t/opt/hostedtoolcache/go/1.25.8/x64/src/runtime/proc.go:285"}

Probably reorder the migration steps to: stamp labels → install CRDs chart → upgrade controller chart.

Minimal Reproduction

Environment/Versions

  • OS and processor: [e.g. M1 Mac, x86 Windows, Linux]
  • Temporal Version: [e.g. 1.14.0?] and/or SDK version
  • Are you using Docker or Kubernetes or building Temporal from source?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions