Skip to content

CLI picking up Knative configuration CRD #1485

@alicejgibbons

Description

@alicejgibbons

Expected Behavior

Certificate rotation to work via the CLI and renew the mtls cert with knative also installed.

Actual Behavior

CLI incorrectly picking up configurations.serving.knative.dev as well as Dapr config resources when doing cert rotation.

dapr mtls renew-certificate -k --valid-until 365 --restart

⌛ Starting certificate rotation
ℹ️ generating fresh certificates
❌ certificate rotation failed: Error from server (NotFound): [configurations.serving.knative.dev](https://configurations.serving.knative.dev/) "daprsystem" not found
k api-resources | grep configurations
configurations      dapr.io/v1alpha1 true Configuration
configurations      config,cfg serving.knative.dev/v1

Steps to Reproduce the Problem

Add a knative configuration resource, and try dapr mtls renew-certificate -k --valid-until 365 --restart

Release Note

RELEASE NOTE: FIX CLI picking up KNative CRDs.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions