You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,7 @@ This is a controller that tracks [CAPI](https://github.com/kubernetes-sigs/clust
4
4
5
5
It provides a CR for a `ClusterBootstrapConfig` which provides a [Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) template.
6
6
7
-
When a CAPI Cluster is "provisioned" a Job is created from the template, the
8
-
template can access multiple fields.
7
+
When a CAPI Cluster is "provisioned" a Job is created from the template, the template can access multiple fields.
9
8
10
9
```yaml
11
10
apiVersion: capi.weave.works/v1alpha1
@@ -35,10 +34,7 @@ spec:
35
34
secretName: '{{ .ObjectMeta.Name }}-kubeconfig'
36
35
```
37
36
38
-
This is using Go [templating](https://pkg.go.dev/text/template) and the
39
-
`Cluster` object is provided as the context, this means that expressions like
40
-
`{{ .ObjectMeta.Name }}`will get the _name_ of the Cluster that has
41
-
transitioned to "provisioned".
37
+
This is using Go [templating](https://pkg.go.dev/text/template) and the `Cluster` object is provided as the context, this means that expressions like `{{ .ObjectMeta.Name }}` will get the _name_ of the Cluster that has transitioned to "provisioned".
0 commit comments