Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRD instance creation Spec empty with apiextensions/v1 #11

Open
soniabha-intc opened this issue Nov 22, 2021 · 0 comments
Open

CRD instance creation Spec empty with apiextensions/v1 #11

soniabha-intc opened this issue Nov 22, 2021 · 0 comments

Comments

@soniabha-intc
Copy link

We are creating custom CRD using client-go on kubernetes 1.22( "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" ) and trying to create instances of this CRD
The CRD is created successfully but when we create the instance of the CRD, it doesn’t throw any error but the Spec is empty. Here is the output of kubectl describe as well as in code, the response of create returns Null for spec.

Name: edgedeployment-druid-vjjxk
Namespace: smartedge-system
Labels:
Annotations:
API Version: smartedge.intel.com/v1alpha1
Kind: EdgeDeployment
Metadata:
Creation Timestamp: 2021-11-19T15:17:29Z
Generate Name: edgedeployment-druid-
Generation: 1
Managed Fields:
API Version: smartedge.intel.com/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:generateName:
f:spec:
Manager: edgedeploy
Operation: Update
Time: 2021-11-19T15:17:29Z
Resource Version: 4691659
UID: 26513bdc-4916-48fa-bc53-bde8b3471730
Spec:

This used to run correctly when we were using client-go on kubernetes 1.20 using
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" . This is a blocker for our release. Can you help or point to any go examples of CRD creation using apiextensions/v1

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

No branches or pull requests

1 participant