title: Azure Cloud no matches for kind "SecretProviderClass" in version "secrets-store.csi.k8s.io/v1alpha1"
body: <p>I am working in azure cloud and wanted to add a simple ServiceProviderClass using the doc from Azure <a href="https://github.com/Azure/secrets-store-csi-driver-provider-azure/blob/master/examples/v1alpha1_secretproviderclass_service_principal.yaml" rel="nofollow noreferrer">Azure /
  secrets-store-csi-driver-provider-azure </a> replacing the <code>secret</code>, <code>keyvaultName</code> and <code>tenantId</code></p>
  <pre class="lang-yaml prettyprint-override"><code>apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
  kind: SecretProviderClass
  metadata:
    name: azure-kvname
  spec:
    provider: azure
    parameters:
      usePodIdentity: &quot;false&quot;         # [OPTIONAL] if not provided, will default to &quot;false&quot;
      keyvaultName: &quot;kvname&quot;          # the name of the KeyVault
      cloudName: &quot;&quot;          # [OPTIONAL for Azure] if not provided, azure environment will default to AzurePublicCloud 
      objects:  |
        array:
          - |
            objectName: secret1
            objectType: secret        # object types: secret, key or cert
            objectVersion: &quot;&quot;         # [OPTIONAL] object versions, default to latest if empty
      tenantId: &quot;tid&quot;                    # the tenant ID of the KeyVault  
  </code></pre>
  <p>And when I try to apply it to my cluser using the Azure Cloud Bash:</p>
  <pre class="lang-sh prettyprint-override"><code>hacker@Azure:~$ kubectl apply -f secrets-provider.yaml
  error: unable to recognize &quot;secrets-provider.yaml.yaml&quot;: no matches for kind &quot;SecretProviderClass&quot; in version &quot;secrets-store.csi.k8s.io/v1alpha1&quot;
  </code></pre>
  <p>It seems to be that kind and version are incompatible eventhough they are everywhere on the doc.</p>