Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alosadagrande
Copy link

@alosadagrande alosadagrande commented Jul 30, 2024

This PR updates documentation:

  • It divides the README into two main blocks: deployment via operator in OpenShift and local deployment (testing)
  • Deployment of the IMS operator on top of OpenShift
  • Configuration of the different microservices of the IMS operator using the ORANO2MS CR. There was no example of that CR in the repo.
  • Currently only metadata, deployment manager and resource server. The rest could be added once they are validated in the operator deployment.
  • An index is added to ease navigation through the information

Let me know your thoughts.

Copy link

openshift-ci bot commented Jul 30, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign bartwensley for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@bartwensley
Copy link
Collaborator

/cc @Missxiaoguo @irinamihai

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
Copy link

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
Copy link

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)
Copy link

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
Copy link

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
Copy link

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 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants