-
Notifications
You must be signed in to change notification settings - Fork 27
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
Angie and Irina would be the best ones to review this. |
b6b5360
to
89f950d
Compare
[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 |
Comments addressed. PTAL. |
i have tried to test the CRs in this PR for instance the metadata Kind and also the api version seems wrong. |
@alosadagrande - it would be great if you could update this PR to address the comments and to incorporate the latest changes to how we deploy the operator. |
Signed-off-by: Alberto Losada <[email protected]>
c43b6d1
to
a8b232b
Compare
@bartwensley @alegacy could you open it again, sorry not sure how it happened :( |
enabled: true | ||
resourceServerConfig: | ||
# A route must be created in the open-cluster-management namespace (RHACM) to expose the search collector Pod | ||
backendURL: https://search-api-open-cluster-management.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.
The backendURL
is optionally and shouldn't be used in this example.
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.
But it is necessary to query the different resources, right? should we include a link or information to enable the searchCollector in a different section then?
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.
No, this is an optional field. We can auto-detect it if not provided.
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.
mmm yesterday @nocturnalastro was creating his environment and it was required to expose the searchCollector API as a route at least
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.
That's a bit surprising since we access the service directly but at the very least it does not need to be specified in the Inventory CR.
90c9cbd
to
67df9a2
Compare
67df9a2
to
ce1bd35
Compare
smo: | ||
url: http://smo.example.com | ||
registrationEndpoint: /mock_smo/v1/ocloud_observer | ||
#image: quay.io/NAMESPACE/CONTAINER_IMAGE // uncomment if you want to use your built image otherwise will be populated with the default image. |
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.
The comment here is not accurate. If using make deploy
the image used will be the user's development image. The only reason to use this is if for some reason someone wanted to use a completely different image. I would prefer if we removed this comment.
cloudID: f7fd171f-57b5-4a17-b176-9a73bf6064a4 | ||
deploymentManagerServerConfig: | ||
enabled: true | ||
#examples of using the extensions spec |
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.
This comment can be removed as well.
@@ -145,31 +394,43 @@ $ ./oran-o2ims start resource-server --help | |||
Inside _VS Code_ use the _Run and Debug_ option with the `start | |||
resource-server` [configuration](.vscode/launch.json). | |||
|
|||
##### Requests Examples | |||
#### <a name='InfrastructureInventorySubscriptionServerResourceServer'></a>Infrastructure Inventory Subscription Server (Resource Server) |
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.
This section on the inventory subscription server can now be removed. It has been incorporated directly into the resource server component.
To get the api versions supported | ||
|
||
```sh | ||
$ curl --insecure --silent --header "Authorization: Bearer $MY_TOKEN" |
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.
We should be consistent with the use of brackets around variables. ${MY_TOKEN}
rather than $MY_TOKEN
|
||
### <a name='QuerytheInfrastructureInventorySubscriptionResourceServer'></a>Query the Infrastructure Inventory Subscription (Resource Server) | ||
|
||
#### <a name='GETInfrastructureInventorySubscriptionList'></a>GET Infrastructure Inventory Subscription List | ||
|
||
To get a list of resource subscriptions: | ||
|
||
``` | ||
$ curl -s http://localhost:8004/o2ims-infrastructureInventory/v1/subscriptions | 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.
These next few curl commands also need the Authorization
header... sorry, my mistake for missing that when I moved these lines.
```sh | ||
$ oc get route -n oran-o2ims | ||
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD | ||
api-2fv99 o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com / metadata-server api reencrypt/Redirect None |
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.
we might want to remove all of the lab URIs and replace with apps.example.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.
Looks good - just a couple minor comments.
hack/install_test_deps.sh | ||
Downloading golangci-lint | ||
… REDACTED … | ||
/home/alosadag/Documents/CNF/ORAN/oran-o2ims/bin/kustomize build config/default | /home/alosadag/Documents/CNF/ORAN/oran-o2ims/bin/kubectl apply -f - |
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.
Should probably remove the path and just start with .../oran-o2ims - also should remove any occurrences of your username and replace with (maybe those will all disappear with the path though).
api-2fv99 o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com / metadata-server api reencrypt/Redirect None | ||
api-cbvbz o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com /o2ims-infrastructureInventory/v1/resourceTypes resource-server api reencrypt/Redirect None | ||
api-v92jb o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com /o2ims-infrastructureInventory/v1/deploymentManagers deployment-manager-server api reencrypt/Redirect None | ||
api-xllml o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com /o2ims-infrastructureInventory/v1/resourcePools resource-server api reencrypt/Redirect None |
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.
Shouldn't use real FQDNs in your examples - please change the "se-lab.eng.rdu2.dc" part to something generic or a placeholder.
This PR updates documentation:
Let me know your thoughts.