Skip to content

Commit

Permalink
Fix rbac of the provider implementations in the book (#779)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Yang <[email protected]>
  • Loading branch information
yangy2000 authored and k8s-ci-robot committed Feb 28, 2019
1 parent c077c33 commit f8d548b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/book/provider_implementations/building_running_and_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ Apply the following patch:

```bash
diff --git a/Makefile b/Makefile
index ac12c7e..9b4f945 100644
index ac12c7e..cf44312 100644
--- a/Makefile
+++ b/Makefile
@@ -22,12 +22,14 @@ install: manifests
@@ -22,12 +22,15 @@ install: manifests

# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
deploy: manifests
- kubectl apply -f config/crds
- kustomize build config/default | kubectl apply -f -
+ cat provider-components.yaml | kubectl apply -f -
- kubectl apply -f config/crds
- kustomize build config/default | kubectl apply -f -
+ cat provider-components.yaml | kubectl apply -f -

# Generate manifests e.g. CRD, RBAC etc.
manifests:
- go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
+ go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go crd
+ kustomize build config/default/ > provider-components.yaml
+ echo "---" >> provider-components.yaml
+ kustomize build vendor/sigs.k8s.io/cluster-api/config/default/ >> provider-components.yaml
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
+ sed -i'' -e 's@^- manager_auth_proxy_patch.yaml.*@#&@' config/default/kustomization.yaml
+ kustomize build config/default/ > provider-components.yaml
+ echo "---" >> provider-components.yaml
+ kustomize build vendor/sigs.k8s.io/cluster-api/config/default/ >> provider-components.yaml

# Run go fmt against code
fmt:
Expand Down

0 comments on commit f8d548b

Please sign in to comment.