-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc] Adds operator deployment steps in OpenShift #132
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Alberto Losada <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Angie and Irina would be the best ones to review this. |
|
||
```bash | ||
$ export CLIENT_TOKEN=$(oc create token -n oran-o2ims client --duration=24h) | ||
$ export API_URI=oran-o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export API_URI=$(oc -n oran-o2ims get route -o jsonpath={.items[0].spec.host})
|
||
```bash | ||
$ curl --insecure --silent --header "Authorization: Bearer $CLIENT_TOKEN" | ||
'https://${API_URI}/o2ims-infrastructureInventory/v1/deploymentManagers' | jq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need double quotes on embedded variables
curl --insecure --silent --header "Authorization: Bearer $CLIENT_TOKEN" "https://${API_URI}/o2ims-infrastructureInventory/v1/deploymentManagers" | jq
RHACM installed and configured you can obtain the token like this: | ||
|
||
``` | ||
$ export BACKEND_TOKEN=$(oc create token -n open-cluster-management multiclusterhub-operator --duration=24h) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was denied access with this backend token. I used:
export BACKEND_TOKEN=$(oc create token -n open-cluster-management multicluster-operators --duration=24h)
|
||
```bash | ||
$ curl --insecure --silent --header "Authorization: Bearer $CLIENT_TOKEN" | ||
'https://${API_URI}/o2ims-infrastructureInventory/v1/api_versions' | jq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need double quotes on embedded variables
curl --insecure --silent --header "Authorization: Bearer $CLIENT_TOKEN" "https://${API_URI}/o2ims-infrastructureInventory/v1/deploymentManagers" | jq
|
||
```bash | ||
$ curl --insecure --silent --header "Authorization: Bearer $CLIENT_TOKEN" | ||
'https://${API_URI}/o2ims-infrastructureInventory/v1' | jq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need double quotes on embedded variables
curl --insecure --silent --header "Authorization: Bearer $CLIENT_TOKEN" "https://${API_URI}/o2ims-infrastructureInventory/v1/deploymentManagers" | jq
This PR updates documentation:
Let me know your thoughts.