Version Information Enterprise
There are now multiple published versions of the template CRD.
Migration notes
v1alpha1 to v1alpha2
When manually migrating a template from v1alpha1 to v1alpha2 (for example in git) you will need to:
- Update the 
apiVersion:- for 
GitopsTemplateupdate the apiVersion totemplates.weave.works/v1alpha2 - for 
CAPITemplateupdate the apiVersion tocapi.weave.works/v1alpha2 
 - for 
 - Move the 
spec.resourcetemplatesfield tospec.resourcetemplates[0].content - Either leave the 
spec.resourcetemplates[0].pathfield empty or give it a sensible value. 
If you experience issues with the path not being recognised when Flux reconciles the new template versions, try manually applying the new template to the cluster directly with:
- Run 
kubectl apply -f capi-template.yaml - Run 
flux reconcile kustomization --with-source flux-systemtwice. 
Conversion Webhook
As of Weave Gitops Enterprise 0.28.0 the conversion webhook has been removed.
This removed the need for cert-manager to be installed, but you will now have to convert any v1alpha1 templates to v1alpha2 manually in git.
v1alpha2 (default) notes
This version changes the type of spec.resourcetemplates from a list of objects to a list of files with a path and content:
Example:
spec:
  resourcetemplates:
    - path: "clusters/{{ .params.CLUSTER_NAME }}.yaml"
      content:
        - apiVersion: cluster.x-k8s.io/v1alpha3
          kind: Cluster
          metadata:
            name: "{{ .params.CLUSTER_NAME }}"
          path: "clusters/{{ .params.CLUSTER_NAME }}.yaml"
v1alpha1 notes
The original version of the template. This version no longer works with Weave Gitops Enterprise 0.28.0 and above.
It uses spec.resourcetemplates as a list of resources to render.
Example:
spec:
  resourcetemplates:
    - apiVersion: cluster.x-k8s.io/v1alpha3
      kind: Cluster
      metadata:
        name: "{{ .params.CLUSTER_NAME }}"