Skip to content

Upgrade using --from-manifest option causes APIService error #3559

@ihcsim

Description

@ihcsim

When upgrade is performed with the --from-manifest option, the command failed with the following error:

× Failed to parse Kubernetes objects from manifest install-2.5.0.yaml: no kind "APIService" is registered for version "apiregistration.k8s.io/v1" in scheme "pkg/runtime/scheme.go:101"
For troubleshooting help, visit: https://linkerd.io/upgrade/#troubleshooting

It looks like the apiextensions client lib needs to be updated from v1beta1 to v1. When I attempted to fix this, go mod upgraded other k8s serializer-related packages, which are depended upon by controller/gen/client/clientset/versioned/typed/serviceprofile package.

It looks like the decoder doesn't have the scheme to decode apiregistration.k8s.io/v1/APIService.

The workaround is to use the linkerd upgrade command. The only difference is that --from-manifest reads the Linkerd config from a static file, instead of the k8s API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions