## How to update Hub files in kube-ui-server

```bash
POD_NAMESPACE=kubeops
POD_NAME=$(kubectl get pods -n $POD_NAMESPACE -l app.kubernetes.io/instance=kube-ui-server -o jsonpath={.items[0].metadata.name})

kubectl cp hub $POD_NAME:/tmp -n $POD_NAMESPACE
# verify
kubectl exec -it $POD_NAME -n $POD_NAMESPACE -- ls -l /tmp/hub

LOCATION=hub/resourceeditors/kubedb.com/v1alpha2/elasticsearches.yaml
kubectl cp $LOCATION $POD_NAME:/tmp/$LOCATION -n $POD_NAMESPACE
# verify
kubectl exec -it $POD_NAME -n $POD_NAMESPACE -- cat /tmp/$LOCATION

# trigger reload
kubectl exec -it $POD_NAME -n $POD_NAMESPACE -- sh -c "date > /tmp/hub/resourceeditors/trigger"
# verify
kubectl exec -it $POD_NAME -n $POD_NAMESPACE -- cat /tmp/hub/resourceeditors/trigger
```

## How to update Hub files in kube-ui-server

```bash
UI_SERVER_NAMESPACE=kubeops
UI_SERVER_POD=$(kubectl get pods -n $UI_SERVER_NAMESPACE -l app.kubernetes.io/instance=kube-ui-server -o jsonpath={.items[0].metadata.name})

kubectl cp hub $UI_SERVER_POD:/tmp -n $UI_SERVER_NAMESPACE
# verify
kubectl exec -it $UI_SERVER_POD -n $UI_SERVER_NAMESPACE -- ls -l /tmp/hub

LOCATION=hub/resourceeditors/kubedb.com/v1alpha2/elasticsearches.yaml
kubectl cp $LOCATION $UI_SERVER_POD:/tmp/$LOCATION -n $UI_SERVER_NAMESPACE
# verify
kubectl exec -it $UI_SERVER_POD -n $UI_SERVER_NAMESPACE -- cat /tmp/$LOCATION

# trigger reload
kubectl exec -it $UI_SERVER_POD -n $UI_SERVER_NAMESPACE -- sh -c "date > /tmp/hub/resourceeditors/trigger"
# verify
kubectl exec -it $UI_SERVER_POD -n $UI_SERVER_NAMESPACE -- cat /tmp/hub/resourceeditors/trigger
```

Update hub file upload instructions
Update hub file upload instructions

Signed-off-by: Tamal Saha <402c73331c166b2b8cf6f3b0d25d0ef4d0769ddb@appscode.com>
