apiVersion: v1
kind: ConfigMap
metadata:
  name: capi-templates
data:
  template1: |
    apiVersion: capi.weave.works/v1alpha1
    kind: CAPITemplate
    metadata:
      name: cluster-template
    spec:
      description: this is test template 1
      params:
        - name: CLUSTER_NAME
          description: This is used for the cluster naming.
      resourcetemplates:
      - apiVersion: cluster.x-k8s.io/v1alpha3
        kind: Cluster
        metadata:
          name: "${CLUSTER_NAME}"
        spec:
          clusterNetwork:
            pods:
              cidrBlocks: ["192.168.0.0/16"]
          infrastructureRef:
            apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
            kind: AWSCluster
            name: "${CLUSTER_NAME}"
          controlPlaneRef:
            kind: KubeadmControlPlane
            apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
            name: "${CLUSTER_NAME}-control-plane"
