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

📖 Fix docs: "Getting Started" and "Tutorials" #1443

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Nov 11, 2024

Description

There were several intentional breaking changes in the API which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to reflect API changes. This includes making sure that snippets and example outputs match the current state of the project.

Relevant PRs:


Still need to address (in next parts):

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 11, 2024
Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit c6f46e0
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/6734dc099f576e0008e357f4
😎 Deploy Preview https://deploy-preview-1443--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.69%. Comparing base (046c3df) to head (5e1b44d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1443      +/-   ##
==========================================
- Coverage   74.91%   74.69%   -0.22%     
==========================================
  Files          42       42              
  Lines        3241     3241              
==========================================
- Hits         2428     2421       -7     
- Misses        642      647       +5     
- Partials      171      173       +2     
Flag Coverage Δ
e2e 51.77% <ø> (-0.28%) ⬇️
unit 57.14% <ø> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@m1kola
Copy link
Member Author

m1kola commented Nov 11, 2024

It is already quite a lot of changes. I think I'll do the rest of the docs in a separate PR. Marking as ready for review.

@m1kola m1kola marked this pull request as ready for review November 11, 2024 15:38
@m1kola m1kola requested a review from a team as a code owner November 11, 2024 15:38
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 11, 2024
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/hold

Let's create a PR for each fix. With so many changes, it is too hard to review them all.
Furthermore, it is doing many more changes than one doc.

I would suggest each PR has a goal (i.e Fix specific issue A in Y because Z) and not be something generic like "Fix many issues across the project"

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 11, 2024
@m1kola m1kola changed the title 🐛 Fix docs 🐛 Fix docs (Part 1) Nov 11, 2024
@m1kola
Copy link
Member Author

m1kola commented Nov 11, 2024

Let's create a PR for each fix. With so many changes, it is too hard to review them all.
Furthermore, it is doing many more changes than one doc.
I would suggest each PR has a goal (i.e Fix specific issue A in Y) and not be something generic like "Fix many issues across the project"

@camilamacedo86 I appreciate that this is difficult to review and I'm usually advocating of small PRs. However on the authoring side it is a lot of tedious manual work here. I spent most of the day today going through docs and verifying the snippets and outputs. And there a lot more to do.

Coordinating this work across multiple PRs will add serious amount of overhead.

But I see that this PR is already large - that's why I'm stopping here and will do the rest of the docs in a separate PR.

@m1kola
Copy link
Member Author

m1kola commented Nov 11, 2024

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 11, 2024
@m1kola m1kola mentioned this pull request Nov 11, 2024
26 tasks
@trgeiger
Copy link
Contributor

I left a few small comments, otherwise the changes look good to me

@@ -28,42 +28,40 @@ kind: ClusterExtension
metadata:
name: argocd
spec:
Copy link
Contributor

Choose a reason for hiding this comment

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

If you open this doc

1 - It should be using kubectl apply -f - <<EOF so that we can apply it

Screenshot 2024-11-11 at 17 55 20

2 - The command should have the value instead of <extension_name> ( as you changed in the other places )

kubectl patch clusterextension <extension_name> --type='merge' -p '{"spec": {"source": {"catalog": {"version": "<target_version>"}}}}'

3 - The verification step should either have the name ( why are you changing one place and not the others? )

kubectl get clusterextension.olm.operatorframework.io/<extension_name> -o yaml

$ kubectl get clusterextension argocd -o yaml
apiVersion: olm.operatorframework.io/v1alpha1
kind: ClusterExtension
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"olm.operatorframework.io/v1alpha1","kind":"ClusterExtension","metadata":{"annotations":{},"name":"argocd"},"spec":{"namespace":"argocd","serviceAccount":{"name":"argocd-installer"},"source":{"catalog":{"packageName":"argocd-operator","version":"0.6.0"},"sourceType":"Catalog"}}}
creationTimestamp: "2024-11-11T16:50:53Z"
generation: 4
name: argocd
resourceVersion: "42713"
uid: 4bcaf118-a4cf-4013-842f-501a9da7f597
spec:
namespace: argocd
serviceAccount:
name: argocd-installer
source:
catalog:
packageName: argocd-operator
upgradeConstraintPolicy: CatalogProvided
version: 0.6.0
sourceType: Catalog

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated. Note that I did not change number 1 to use kubectl apply -f - <<EOF: the snippet you are referring to is a pre-requisite. An example of the original state before upgrade.

Resolving,

@m1kola m1kola marked this pull request as draft November 12, 2024 14:25
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 12, 2024
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 13, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 13, 2024
@m1kola m1kola force-pushed the fix_docs branch 2 times, most recently from 2fccea6 to 7fd5eac Compare November 13, 2024 17:03
@m1kola m1kola changed the title 🐛 Fix docs (Part 1) Fix docs: "Getting Started" and "Tutorials" Nov 13, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
@m1kola m1kola changed the title Fix docs: "Getting Started" and "Tutorials" 📖 Fix docs: "Getting Started" and "Tutorials" Nov 13, 2024
@m1kola m1kola marked this pull request as ready for review November 13, 2024 17:15
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 13, 2024
@m1kola
Copy link
Member Author

m1kola commented Nov 13, 2024

Re-opening for review.

Note: we will still need to iterate over "Getting Started" and "Tutorials" sections. See to-dos in the PR descriptions.

Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

Thanks for going through and updating these @m1kola - the changes LGTM!

@m1kola m1kola added this pull request to the merge queue Nov 14, 2024
Merged via the queue into operator-framework:main with commit 9c394f1 Nov 14, 2024
17 of 18 checks passed
@m1kola m1kola deleted the fix_docs branch November 14, 2024 09:17
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.

6 participants