Skip to content

Commit fec0dbb

Browse files
authored
Merge pull request #10 from weaveworks/bump-security-policy
Improve security and add documentation
2 parents c696c65 + 564e98c commit fec0dbb

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ This is a controller that tracks [CAPI](https://github.com/kubernetes-sigs/clust
44

55
It provides a CR for a `ClusterBootstrapConfig` which provides a [Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/) template.
66

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.
98

109
```yaml
1110
apiVersion: capi.weave.works/v1alpha1
@@ -35,10 +34,7 @@ spec:
3534
secretName: '{{ .ObjectMeta.Name }}-kubeconfig'
3635
```
3736
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".
4238

4339
## Annotations
4440

@@ -56,3 +52,16 @@ e.g.
5652
secretName: '{{ annotation "example.com/secret-name }}'
5753
5854
```
55+
56+
## Installation
57+
58+
You will need to have CAPI installed first, see the [CAPI Quick Start](https://cluster-api.sigs.k8s.io/user/quick-start.html).
59+
60+
Release files are available https://github.com/weaveworks/cluster-bootstrap-controller/releases
61+
62+
You can install these e.g.
63+
64+
```shell
65+
$ kubectl apply -f https://github.com/weaveworks/cluster-bootstrap-controller/releases/download/v0.0.5/cluster-bootstrap-controller-v0.0.5.yaml
66+
```
67+

config/manager/manager.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ spec:
3333
name: manager
3434
securityContext:
3535
allowPrivilegeEscalation: false
36+
readOnlyRootFilesystem: true
37+
runAsNonRoot: true
38+
capabilities:
39+
drop: [ "ALL" ]
40+
seccompProfile:
41+
type: RuntimeDefault
3642
livenessProbe:
3743
httpGet:
3844
path: /healthz

0 commit comments

Comments
 (0)