Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

no matches for kind "ExternalSecret" in version "kubernetes-client.io/v1" #755

Closed
gangadharayya-hiremath-tm opened this issue May 21, 2021 · 4 comments

Comments

@gangadharayya-hiremath-tm

Hi All,

Getting error "no matches for kind "ExternalSecret" in version "kubernetes-client.io/v1"" for the following manifest file, any clues will be helpful:

apiVersion: "kubernetes-client.io/v1"
kind: ExternalSecret
metadata:
name: test-secret
namespace: dev
spec:
backendType: secretsManager
roleArn: arn:aws:iam::<>:role/<>
region: us-east-1
data:
- key: username
name: tutorials/MyFirstTutorialSecret

@Flydiverny
Copy link
Member

Looks like you didnt install the CRD.

@chenyang-nirovision
Copy link

chenyang-nirovision commented May 23, 2021

I encountered the same issue via following Install with kubectl. The reason was if you run helm template --output-dir ./output_dir ./charts/kubernetes-external-secrets/, it won't extract ./charts/kubernetes-external-secrets/crds/kubernetes-client.io_externalsecrets_crd.yaml file therefore the CRD is missing
My fix was manually copy the kubernetes-client.io_externalsecrets_crd.yaml file to output-dir and put in correct location then run helm upgrade.
Btw my helm version is version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"dirty", GoVersion:"go1.16.3"} if it's helpful

@Flydiverny
Copy link
Member

I think you can use flag --include-crds with helm template

@gangadharayya-hiremath-tm
Copy link
Author

I encountered the same issue via following Install with kubectl. The reason was if you run helm template --output-dir ./output_dir ./charts/kubernetes-external-secrets/, it won't extract ./charts/kubernetes-external-secrets/crds/kubernetes-client.io_externalsecrets_crd.yaml file therefore the CRD is missing
My fix was manually copy the kubernetes-client.io_externalsecrets_crd.yaml file to output-dir and put in correct location then run helm upgrade.
Btw my helm version is version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"dirty", GoVersion:"go1.16.3"} if it's helpful

Awesome!!! Thank you @chenyang-nirovision @Flydiverny

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants