Skip to content

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

Merged
m1kola merged 1 commit into
operator-framework:mainfrom
m1kola:fix_docs
Nov 14, 2024
Merged

📖 Fix docs: "Getting Started" and "Tutorials"#1443
m1kola merged 1 commit into
operator-framework:mainfrom
m1kola:fix_docs

Conversation

@m1kola

@m1kolam1kola commented Nov 11, 2024

Copy link
Copy Markdown
Member

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-ciopenshift-ciBot 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
@netlify

netlifyBot commented Nov 11, 2024

Copy link
Copy Markdown

Deploy Preview for olmv1 ready!

NameLink
🔨 Latest commitc6f46e0
🔍 Latest deploy loghttps://app.netlify.com/sites/olmv1/deploys/6734dc099f576e0008e357f4
😎 Deploy Previewhttps://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.

@codecov

codecovBot commented Nov 11, 2024

Copy link
Copy Markdown

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 
FlagCoverage Δ
e2e51.77% <ø> (-0.28%)⬇️
unit57.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.

Comment threaddocs/getting-started/olmv1_getting_started.md
@m1kola

Copy link
Copy Markdown
MemberAuthor

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 ownerNovember 11, 2024 15:38
@openshift-ciopenshift-ciBot 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

@camilamacedo86camilamacedo86 left a comment

Copy link
Copy Markdown
Contributor

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-ciopenshift-ciBot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 11, 2024
@m1kolam1kola changed the title 🐛 Fix docs🐛 Fix docs (Part 1)Nov 11, 2024
Comment threadhack/test/pre-upgrade-setup.sh Outdated
@m1kola

Copy link
Copy Markdown
MemberAuthor

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
Copy Markdown
MemberAuthor

/unhold

@openshift-ciopenshift-ciBot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 11, 2024
@m1kolam1kola mentioned this pull request Nov 11, 2024
26 tasks
Comment threaddocs/concepts/crd-upgrade-safety.md Outdated
Comment threaddocs/contribute/developer.md
Comment threaddocs/tutorials/downgrade-extension.md
Comment threaddocs/tutorials/downgrade-extension.md
@trgeiger

Copy link
Copy Markdown
Contributor

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

Comment threaddocs/concepts/upgrade-support.md
Comment threaddocs/getting-started/olmv1_getting_started.md
Comment threaddocs/getting-started/olmv1_getting_started.md
Comment threaddocs/tutorials/upgrade-extension.md
@@ -28,42 +28,40 @@ kind: ClusterExtension
metadata:
name: argocd
spec:

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

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
MemberAuthor

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,

Comment threaddocs/tutorials/add-catalog.md
Comment threaddocs/getting-started/olmv1_getting_started.md Outdated
Comment threaddocs/tutorials/downgrade-extension.md
Comment threaddocs/howto/catalog-queries.md
@m1kola
m1kola marked this pull request as draft November 12, 2024 14:25
@openshift-ciopenshift-ciBot 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-robotopenshift-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-robotopenshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 13, 2024
@m1kola
m1kolaforce-pushed the fix_docs branch 2 times, most recently from 2fccea6 to 7fd5eacCompareNovember 13, 2024 17:03
@m1kolam1kola 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 <mradchuk@redhat.com>
@m1kolam1kola mentioned this pull request Nov 13, 2024
4 tasks
@m1kolam1kola 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-ciopenshift-ciBot 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
Copy Markdown
MemberAuthor

Re-opening for review.

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

@everettraveneverettraven left a comment

Copy link
Copy Markdown
Contributor

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 9c394f1Nov 14, 2024
@m1kola
m1kola deleted the fix_docs branch November 14, 2024 09:17
Sign up for freeto 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

@m1kola@trgeiger@camilamacedo86@everettraven@michaelryanpeter@openshift-merge-robot