Skip to content

Commit

Permalink
Merge pull request #7 from morningspace/main
Browse files Browse the repository at this point in the history
Fix issues appeared in README and examples
  • Loading branch information
turkenh authored Aug 20, 2021
2 parents 6ca85d5 + dca59bf commit 59b8955
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ sudo kubectl proxy --port=8081
```
SA=$(kubectl -n crossplane-system get sa -o name | grep provider-kubernetes | sed -e 's|serviceaccount\/|crossplane-system:|g')
kubectl create clusterrolebinding provider-kubernetes-admin-binding --clusterrole cluster-admin --serviceaccount="${SA}"
kubectl apply -f examples/provider/config-incluster.yaml
kubectl apply -f examples/provider/config-in-cluster.yaml
```
1. If provider kubernetes running outside the cluster (e.g. running locally with `make run`)
```
KUBECONFIG=$(kind get kubeconfig --name local-dev | sed -e 's|server:\s*.*$|server: http://localhost:8081|g')
kubectl -n crossplane-system create secret generic cluster-config --from-literal=kubeconfig="${KUBECONFIG}"
kubectl apply -f examples/provider-config/provider-config-with-secret.yaml
kubectl apply -f examples/provider/config.yaml
```
1. Now you can create `Object` resources with provider reference, see [sample object.yaml](examples/object/object.yaml).
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
source: Secret
secretRef:
namespace: crossplane-system
name: example-provider-secret
name: cluster-config
key: kubeconfig

0 comments on commit 59b8955

Please sign in to comment.