apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  # name must match the spec fields below, and be in the form: <plural>.<group>
  name: habitats.habitat.sh
spec:
  # group name to use for REST API: /apis/<group>/<version>
  group: habitat.sh
  # version name to use for REST API: /apis/<group>/<version>
  version: v1beta2
  # either Namespaced or Cluster
  scope: Namespaced
  names:
    # plural name to be used in the URL: /apis/<group>/<version>/<plural>
    plural: habitats
    # singular name to be used as an alias on the CLI and for display
    singular: habitat
    # kind is normally the CamelCased singular type. Your resource manifests use this.
    kind: Habitat
    # shortNames allow shorter string to match your resource on the CLI
    shortNames:
    - hab

apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  # name must match the spec fields below, and be in the form: <plural>.<group>
  name: habitats.habitat.sh
spec:
  # group name to use for REST API: /apis/<group>/<version>
  group: habitat.sh
  # version name to use for REST API: /apis/<group>/<version>
  version: v1beta1
  # either Namespaced or Cluster
  scope: Namespaced
  names:
    # plural name to be used in the URL: /apis/<group>/<version>/<plural>
    plural: habitats
    # singular name to be used as an alias on the CLI and for display
    singular: habitat
    # kind is normally the CamelCased singular type. Your resource manifests use this.
    kind: Habitat
    # shortNames allow shorter string to match your resource on the CLI
    shortNames:
    - hab

Revert "examples: Update CRD to v1beta2"
Revert "examples: Update CRD to v1beta2"

This reverts commit ccccbbf7c62cab2fb86d7b4afa26cc5930ab2e5b.

The reason is that we're instead going to have only one type, with an
additional `CustomVersion` field, to work around the fact that multiple
CRD versions are not supported.
