Skip to content

Service registry RHOAS CLI#324

Merged
PaulRMellor merged 19 commits intomainfrom
service-registry-base
Oct 5, 2021
Merged

Service registry RHOAS CLI#324
PaulRMellor merged 19 commits intomainfrom
service-registry-base

Conversation

@PaulRMellor
Copy link
Contributor

@PaulRMellor PaulRMellor commented Sep 30, 2021

Updates to the Getting Started CLI guides

  • Creates three guides as follows:
    -- Installing and configuring the rhoas CLI
    -- Getting started with the rhoas CLI for OpenShift Streams for Apache Kafka
    -- Getting started with the rhoas CLI for OpenShift Service Registry
  • Removes install steps from the getting tarted guides, replaced by prereq that goes to the new common _Install_guide
  • Updates links and attributes to reflect the new structure
  • Removes the Commands for... tables to replace with -h list and link to command reference guide
  • Pushes the Using procedures for Kafka Getting Started up a level (==) and removes the discrete title flag

Signed-off-by: prmellor <pmellor@redhat.com>
@PaulRMellor PaulRMellor self-assigned this Oct 1, 2021
Signed-off-by: prmellor <pmellor@redhat.com>
@wtrocki
Copy link
Collaborator

wtrocki commented Oct 1, 2021

🤩

@wtrocki
Copy link
Collaborator

wtrocki commented Oct 1, 2021

🤩 @PaulRMellor How I can verify/render this - I'm aware of the quickstart procedure. How to run/verify tutorials?

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>
@wtrocki
Copy link
Collaborator

wtrocki commented Oct 1, 2021

@PaulRMellor Amazing work! This is not only looking very good it will also:

  • Remove content that was really hard for us to maintain and often get out of sync
  • Provide clear path for future services.

Both instructions reviewed and verified.

#tech-ack

Signed-off-by: prmellor <pmellor@redhat.com>
@wtrocki wtrocki changed the title Service registry base Service registry RHOAS CLI Oct 1, 2021
@wtrocki
Copy link
Collaborator

wtrocki commented Oct 1, 2021

While changes look good there are some build issues related to duplicated keys.
We need to add -cli suffix to them:
Screenshot 2021-10-01 at 14 21 31
Screenshot 2021-10-01 at 14 20 59

Signed-off-by: prmellor <pmellor@redhat.com>
Signed-off-by: prmellor <pmellor@redhat.com>
@wtrocki
Copy link
Collaborator

wtrocki commented Oct 1, 2021

Doesn't the context make a difference? I've changed these two. 👍

Tooling validates if id's are not the same and fails. We need to try to be as specific as possible to avoid clashes.

@wtrocki wtrocki force-pushed the service-registry-base branch 2 times, most recently from a787cc1 to b51238e Compare October 1, 2021 14:25
@wtrocki wtrocki force-pushed the service-registry-base branch from b51238e to 850828f Compare October 1, 2021 14:26
@wtrocki
Copy link
Collaborator

wtrocki commented Oct 1, 2021

DO we know what this means:

asciidoctor: ERROR: modules/guides/proc-creating-kafka-instance-cli.adoc: line 2: level 0 sections can only be used when doctype is book
asciidoctor: ERROR: modules/guides/proc-creating-service-registry-instance-cli.adoc: line 2: level 0 sections can only be used when doctype is book

wtrocki and others added 2 commits October 1, 2021 15:32
Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>
@wtrocki wtrocki force-pushed the service-registry-base branch from 1fc570e to d4b10e9 Compare October 1, 2021 14:50
@PaulRMellor
Copy link
Contributor Author

@bibryam - Hi Bilgin. This PR has the Getting started with the rhoas CLI for OpenShift Service Registry (rhoas-cli-service-registry/readme.adoc) and a (now) separate Installing and configuring the rhoas CLI guide (rhoas-cli/readme.adoc)

Would appreciate a review.

@bibryam
Copy link
Contributor

bibryam commented Oct 4, 2021

@wtrocki @PaulRMellor this look very good. Great job Wojciech!

A few notes bellow:

  1. "This example switches to the my-registry instance that was previously created." - is this needed? If there is a single instance, can that be selected by default?

  2. rhoas service-registry artifact create --type=AVRO --artifact-id=my-artifact avro-userInfo.json


    Do we need to specify the type? I was expecting the type to be auto detected?

  3. After a schema is updated, can we use the command for setting the compatability level and demonstrate that?

  4. @EricWittmann is RBAC feature in prod? I see role assigment demonstrated here? That will require also docs to be available IMO

@wtrocki
Copy link
Collaborator

wtrocki commented Oct 4, 2021

"This example switches to the my-registry instance that was previously created." - is this needed? If there is a single instance, can that be selected by default?

I have followed up pattern we have in Kafka thinking that this was intentional to show user how to switch, but it in fact seems redundant and counterintuitive. @PaulRMellor Do you think we can remove it?

rhoas service-registry artifact create --type=AVRO --artifact-id=my-artifact avro-userInfo.json


Do we need to specify the type? I was expecting the type to be auto detected?

Sadly we need to. Not sure why but the backend is not working well with AVRO schemas that are sent by CLI. It even has troubles with schemas that are provided in the service registry repository as examples:

https://github.com/Apicurio/apicurio-registry/tree/master/integration-tests/testsuite/src/test/resources/artifactTypes

This might be due to reliance on content type that comes from browser environment etc.?
We did not had issues with OpenAPI but for this guide we wanted to show Avro.

@EricWittmann is RBAC feature in prod? I see role assigment demonstrated here? That will require also docs to be available IMO

As solution for this I think we can have this step commented out for the moment and let team to uncomment it when this is there.

@PaulRMellor
Copy link
Contributor Author

"This example switches to the my-registry instance that was previously created." - is this needed? If there is a single instance, can that be selected by default?

I have followed up pattern we have in Kafka thinking that this was intentional to show user how to switch, but it in fact seems redundant and counterintuitive. @PaulRMellor Do you think we can remove it?

[PAUL] I've removed as a step, but I think it's useful to point it out. Added as a note in prereqs.

rhoas service-registry artifact create --type=AVRO --artifact-id=my-artifact avro-userInfo.json
> 
>
Do we need to specify the type? I was expecting the type to be auto detected?

Sadly we need to. Not sure why but the backend is not working well with AVRO schemas that are sent by CLI. It even has troubles with schemas that are provided in the service registry repository as examples:

https://github.com/Apicurio/apicurio-registry/tree/master/integration-tests/testsuite/src/test/resources/artifactTypes

This might be due to reliance on content type that comes from browser environment etc.? We did not had issues with OpenAPI but for this guide we wanted to show Avro.

@EricWittmann is RBAC feature in prod? I see role assigment demonstrated here? That will require also docs to be available IMO

As solution for this I think we can have this step commented out for the moment and let team to uncomment it when this is there.

[PAUL] I've commented out the role creation step. We don't refer to role in the following tasks. Will we need it in the guide at all?

Signed-off-by: prmellor <pmellor@redhat.com>
@PaulRMellor PaulRMellor requested a review from bhardesty October 4, 2021 15:54
@wtrocki
Copy link
Collaborator

wtrocki commented Oct 4, 2021

[PAUL] I've commented out the role creation step. We don't refer to role in the following tasks. Will we need it in the guide at all?

Yes.. That will be the only place in the docs that mention needs to apply separate role in service account.
Apart from that we going to also add that in CLI command result:
redhat-developer/app-services-cli#1118

@wtrocki
Copy link
Collaborator

wtrocki commented Oct 4, 2021

@bhardesty Good for docs review

Copy link
Contributor

@bhardesty bhardesty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PaulRMellor these changes look great. The break down into three separate guides is a big improvement.

Just one thing to keep in mind if you haven't verified this already: once this is merged, we'll need to verify that the splitter and downstream sync job(s) handle the new guides correctly.

Signed-off-by: prmellor <pmellor@redhat.com>
@wtrocki
Copy link
Collaborator

wtrocki commented Oct 5, 2021

I guess we good to merge?

@PaulRMellor PaulRMellor merged commit 106b07b into main Oct 5, 2021
smccarthy-ie pushed a commit to smccarthy-ie/app-services-guides that referenced this pull request Oct 15, 2021
* docs: initial version of the guide

* fix: restructure tutorial content for better alignment for RHOAS CLI

* docs: service registry cli guide

Signed-off-by: prmellor <pmellor@redhat.com>

* docs: service registry cli guide

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: remove confusing sentence

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* docs: add abstract to procedures

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: build issue

* docs: service registry instance without defaults

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: add mixxing version from consumer config

* docs: remove angle brackets from example

Signed-off-by: prmellor <pmellor@redhat.com>

* docs: change keys

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: another duplicated key

* Update rhoas-cli-kafka/README.adoc

* Update rhoas-cli-service-registry/README.adoc

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* fix: build issue

* docs: review edits BI

Signed-off-by: prmellor <pmellor@redhat.com>

* docs: review edits WT for name command

Signed-off-by: prmellor <pmellor@redhat.com>

Co-authored-by: Wojciech Trocki <wtrocki@redhat.com>
smccarthy-ie added a commit that referenced this pull request Oct 15, 2021
* clean up draft of service registry quarkus quick start from bilgin

* update section IDs to fix quick start build errors, minor edits

* add changes to simplify code example in PR 327

* add final step to view generated schemas

* clarify separate consumer and producer processes

* pick up new attributes

* adding technical review feedback from carles and wojciech

* adding technical review feedback from carles and wojciech

* add OAUTH_SERVER_URL and OAUTH_REALM env vars required for now until quarkus is updated

* add correct SR icon, QE and peer review feedback

* regen attributes for new guides

* regen attributes for new cli guides

* Simplify registry quickstart (#327)

* Service registry RHOAS CLI (#324)

* docs: initial version of the guide

* fix: restructure tutorial content for better alignment for RHOAS CLI

* docs: service registry cli guide

Signed-off-by: prmellor <pmellor@redhat.com>

* docs: service registry cli guide

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: remove confusing sentence

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* docs: add abstract to procedures

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: build issue

* docs: service registry instance without defaults

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: add mixxing version from consumer config

* docs: remove angle brackets from example

Signed-off-by: prmellor <pmellor@redhat.com>

* docs: change keys

Signed-off-by: prmellor <pmellor@redhat.com>

* fix: another duplicated key

* Update rhoas-cli-kafka/README.adoc

* Update rhoas-cli-service-registry/README.adoc

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* fix: build issue

* docs: review edits BI

Signed-off-by: prmellor <pmellor@redhat.com>

* docs: review edits WT for name command

Signed-off-by: prmellor <pmellor@redhat.com>

Co-authored-by: Wojciech Trocki <wtrocki@redhat.com>

* docs: updated readme with new CLI doc (#329)

Signed-off-by: prmellor <pmellor@redhat.com>

* docs: cli guide mod doc fix (#330)

Signed-off-by: prmellor <pmellor@redhat.com>

* Add basic metrics section in getting started QS. (#332)

* Add basic metrics section in getting started QS.

* SME review from Duncan

* Peer tweaks

* docs: fix links in CLI guides (#334)

* docs: fix links in CLI guides

Signed-off-by: prmellor <pmellor@redhat.com>

* cli command updates

Signed-off-by: prmellor <pmellor@redhat.com>

* review edits RK

Signed-off-by: prmellor <pmellor@redhat.com>

* return wget to step

Signed-off-by: prmellor <pmellor@redhat.com>

* Add access mgmt content. (#325)

* fix: ./kafka-console-consumer.sh cmd line (#337)

Tested with Kafka 2.8.1 and the correct option is:
```
--consumer.config <String: config file>  Consumer config properties file. Note  
                                           that [consumer-property] takes       
                                           precedence over this config.    
```

* Remove name from service account commands (#336)

* Rethinking metrics approach (#339)

* Rethinking metrics approach

* Tweak metrics section

* John feedback

* Added missing dash to kafka-console-consumer command. (#335)

* Fix the pom.xml files for quarkus-service-registry-quickstart (#343)

* Update the url for Service Registry core REST API Reference and Kafka Service Fleet Manager API Reference (#341)

* Add placeholder values registry quickstart (#333)

* Check installation and version of rhoas CLI on Windows (#338)

* fix: add kafka access management for rhoas cli (#342)

* fix: add kafka acl commands

* fix: add note about cli reference doc

* Update rhoas-cli-kafka/README.adoc

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* Update rhoas-cli-kafka/README.adoc

Co-authored-by: Ramakrishna Pattnaik <rkpattnaik780@gmail.com>

* Update rhoas-cli-kafka/README.adoc

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* Update rhoas-cli-kafka/README.adoc

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* Update README.adoc

* fix: add acl bullet

* Update rhoas-cli-kafka/README.adoc

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>

* Update rhoas-cli-kafka/README.adoc

* Update rhoas-cli-kafka/README.adoc

Co-authored-by: Ramakrishna Pattnaik <rkpattnaik780@gmail.com>

* Update rhoas-cli-kafka/README.adoc

* Update rhoas-cli-kafka/README.adoc

Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>
Co-authored-by: Ramakrishna Pattnaik <rkpattnaik780@gmail.com>

* Add missing links to getting started (#347)

* rebase for recently added new guides

Co-authored-by: Carles Arnal <carlesarnal92@gmail.com>
Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com>
Co-authored-by: Wojciech Trocki <wtrocki@redhat.com>
Co-authored-by: Stetson Robinson <sterobin@redhat.com>
Co-authored-by: Davide Bizzarri <david3bizzarri@gmail.com>
Co-authored-by: Enda <ephelan@redhat.com>
Co-authored-by: Duncan Doyle <Duncan.Doyle@gmail.com>
Co-authored-by: Eric Wittmann <eric.wittmann@gmail.com>
Co-authored-by: HemaHG <53568062+HemaHG@users.noreply.github.com>
Co-authored-by: Carles Arnal <carnalca@redhat.com>
Co-authored-by: rkubis <rkubis@redhat.com>
Co-authored-by: Ramakrishna Pattnaik <rkpattnaik780@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants