kubectl get AzureAssignedIdentities -A -o yaml is empty

2/25/2022

I am trying to deploy an api version with the following templates:

"apiVersion": "apiextensions.k8s.io/v1",
"kind": "CustomResourceDefinition",
"metadata": {
  "name": "azureassignedidentities.aadpodidentity.k8s.io"
 },
"spec":{
  "conversion": {
   "strategy": None
  },
"group": "aadpodidentity.k8s.io",
"names": {
  "kind": "AzureAssignedIdentity",
  "listKind": "AzureAssignedIdentityList",
  "plural": "azureassignedidentities",
  "singular": "azureassignedidentity"
},
"preserveUnknownFields": true,
"scope": "Namespaced",
"versions":[
  "name": "v1",
  "served": true,
  "storage": true,
  ]
 },
 "status": {
   "acceptedNames":{
   "kind": ""
   "listKind": ""
   "plural": ""
   "singular": ""
     },
  "conditions": [],
  "storedVersions": []
  }

When I ran

kubectl get AzureAssignedIdentities -A -o yaml 

I am getting empty response as below.

apiVersion: v1
items: []
kind: List
metadata:
 resourceVersion: ""
 selfLink: ""

Can anyone please tell what's wrong here.

Thanks in advance!

-- Joji
azure-aks
azure-identity
k8s-serviceaccount
kubernetes
kubernetes-custom-resources

0 Answers