Skip to content

SANDBOX-1357: update operator-sdk and operator-registry#151

Merged
rsoaresd merged 1 commit intocodeready-toolchain:masterfrom
rsoaresd:openshift_4_19_toolchain_cicd
Sep 16, 2025
Merged

SANDBOX-1357: update operator-sdk and operator-registry#151
rsoaresd merged 1 commit intocodeready-toolchain:masterfrom
rsoaresd:openshift_4_19_toolchain_cicd

Conversation

@rsoaresd
Copy link
Contributor

@rsoaresd rsoaresd commented Sep 4, 2025

Description

Tool/Library Current Version Updates to Version
Operator SDK 1.39.2 1.40.0
Operator registry v1.49.0 v1.55.0

Related PRs

Issue ticket number and link

SANDBOX-1357

Summary by CodeRabbit

  • Chores

    • Updated default tool versions used by the action to operator-sdk v1.40.0 and operator-registry v1.55.0, so runs using defaults will pick up the newer toolchain.
  • Documentation

    • Adjusted input description to reference the correct version source for operator-registry.

@coderabbitai
Copy link

coderabbitai bot commented Sep 4, 2025

Walkthrough

Updated default versions in prepare-tools GitHub Action: operator-sdk from v1.39.2 to v1.40.0 and operator-registry from v1.49.0 to v1.55.0. Adjusted an inline comment to reference v1.40.0/go.mod.

Changes

Cohort / File(s) Summary of Changes
GitHub Action inputs
prepare-tools-action/action.yml
Bumped default operator-sdk-version to v1.40.0; bumped default operator-registry to v1.55.0; updated comment to reference v1.40.0/go.mod.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I thump my paw—new tags in sight,
Hops between the versions light,
SDK and registry, tidy and bright,
Carrots aligned, defaults just right,
A nibble of YAML—delight!

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
prepare-tools-action/action.yml (2)

7-7: Bump to operator-sdk v1.40.0 looks correct; please confirm target vs latest.

v1.40.0 is a valid SDK release and aligns with docs; note that v1.41.x is currently the latest, so confirm v1.40.0 is intentional for 4.19. Also, the existing GPG key workflow (052996E2A20B5C7E via keyserver.ubuntu.com) remains the documented path. (github.com, sdk.operatorframework.io)

Optional: make the binary name arch-aware to support non-amd64 runners.

-      curl -L -s https://github.com/operator-framework/operator-sdk/releases/download/${{ inputs.operator-sdk-version }}/operator-sdk_linux_amd64 -o operator-sdk \
+      OS=linux; ARCH=${{ runner.arch == 'ARM64' && 'arm64' || 'amd64' }}
+      curl -L -s https://github.com/operator-framework/operator-sdk/releases/download/${{ inputs.operator-sdk-version }}/operator-sdk_${OS}_${ARCH} -o operator-sdk \

11-12: opm v1.55.0 default matches SDK 1.40 guidance; tweak the reference and consider integrity check.

SDK 1.40.0 upgrade notes explicitly bump OPM to v1.55.0, and the v1.55.0 tag exists. Suggest pointing to the upgrade doc (stable) instead of a line-anchored go.mod URL. (sdk.operatorframework.io, github.com)

Apply:

-    # see https://github.com/operator-framework/operator-sdk/blob/v1.40.0/go.mod#L20
+    # see https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.40.0/

Optional: add a minimal integrity check after download (there’s no signed checksum published for opm); at least assert ELF and expected version string:

       curl -Lo opm https://github.com/operator-framework/operator-registry/releases/download/${{ inputs.operator-registry }}/linux-amd64-opm
       chmod +x opm \
         && sudo cp opm /bin/opm \
-        && rm opm \
-        && opm version
+        && file /bin/opm | grep -q 'ELF 64-bit' \
+        && opm version | grep -q '${{ inputs.operator-registry }}' \
+        && rm opm \
+        && opm version

Confirm linux-amd64-opm asset naming remains consistent for v1.55.0 (docs show ${OS}-${ARCH}-opm pattern for this series). (sdk.operatorframework.io)

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a2385ca and 6bfcb45.

📒 Files selected for processing (1)
  • prepare-tools-action/action.yml (1 hunks)

@rsoaresd rsoaresd merged commit 284234f into codeready-toolchain:master Sep 16, 2025
1 check passed
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