Skip to content

[Snyk] Security upgrade @kubernetes/client-node from 0.20.0 to 1.0.0#177

Open
Dustin4444 wants to merge 1 commit into
mainfrom
snyk-fix-061ab3eb492bfb297002b3a0852b781f
Open

[Snyk] Security upgrade @kubernetes/client-node from 0.20.0 to 1.0.0#177
Dustin4444 wants to merge 1 commit into
mainfrom
snyk-fix-061ab3eb492bfb297002b3a0852b781f

Conversation

@Dustin4444

@Dustin4444 Dustin4444 commented Jun 2, 2026

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the pnpm dependencies of this project.

Snyk changed the following file(s):

  • apps/kubernetes-provider/package.json
⚠️ Warning
Failed to update the pnpm-lock.yaml, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-QS-15268416
medium severity NULL Pointer Dereference
SNYK-JS-QS-16721866

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Allocation of Resources Without Limits or Throttling
🦉 NULL Pointer Dereference


This change is Reviewable

@changeset-bot

changeset-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: db381b5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • 'feature'

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3c73fc31-3218-4072-ae5c-1114460c5543

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch snyk-fix-061ab3eb492bfb297002b3a0852b781f

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@snyk-io

snyk-io Bot commented Jun 2, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
🔚 Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@snyk-io

snyk-io Bot commented Jun 2, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades the @kubernetes/client-node dependency in apps/kubernetes-provider/package.json from ^0.20.0 to ^1.0.0. However, this major version upgrade introduces critical breaking changes in argument signatures and return types that will break the implementation in apps/kubernetes-provider/src/index.ts. These API usages must be updated to accommodate the new version before merging.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

"license": "MIT",
"dependencies": {
"@kubernetes/client-node": "^0.20.0",
"@kubernetes/client-node": "^1.0.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

Upgrading @kubernetes/client-node to 1.0.0 introduces major breaking changes that will break apps/kubernetes-provider/src/index.ts both at compile-time and runtime.

Breaking Changes:

  1. Argument Signature Changes:
    In 1.0.0, the generated API clients use a single object parameter instead of positional arguments. For example:
  • createNamespacedPod(namespace.metadata.name, pod) (line 624) needs to be updated to createNamespacedPod({ namespace: namespace.metadata.name, body: pod }).
  • deleteNamespacedPod(opts.runId, opts.namespace.metadata.name) (line 633) needs to be updated to deleteNamespacedPod({ name: opts.runId, namespace: opts.namespace.metadata.name }).
  • readNamespacedPod(runId, namespace.metadata.name) (line 645) needs to be updated to readNamespacedPod({ name: runId, namespace: namespace.metadata.name }).
  • createNamespacedJob(namespace.metadata.name, job) (line 655) needs to be updated to createNamespacedJob({ namespace: namespace.metadata.name, body: job }).
  • createNamespacedDaemonSet(namespace.metadata.name, daemonSet) (line 664) needs to be updated to createNamespacedDaemonSet({ namespace: namespace.metadata.name, body: daemonSet }).
  1. Return Type Changes:
    In 1.0.0, API methods return the resource body directly instead of an object containing { response, body }.
  • Accessing res.body (e.g., logger.debug(res.body) or return res.body) will fail or return undefined. You should use res directly.

Please update apps/kubernetes-provider/src/index.ts to accommodate these breaking changes before merging this upgrade.

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.

2 participants