Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,37 @@ make build_linux
- have a local kubernetes or oc cluster via something like minikube or oc cluster up
- Install glide (https://github.com/Masterminds/glide), e.g. `brew install glide`

### Setup the Custom Resource Definition

```
oc login -u system:admin
oc create -f artifacts/mobileclient_crd.yaml

```

In OpenShift, add the following to the edit and admin roles

```
- apiGroups:
- mobile.k8s.io
attributeRestrictions: null
resources:
- mobileclients
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
```
You can do this via the edit command in oc
```
oc edit clusterrole admin # add the above and save
oc edit clusterrole edit # add the above and save
```

### Setup the plugin

- have the [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) command line tool or the [oc command line tool](https://docs.openshift.org/latest/cli_reference/get_started_cli.html#installing-the-cli) already installed
Expand Down