Skip to content

chore(deps): bumps kustomize libraries#2259

Merged
zdtsw merged 1 commit intoopendatahub-io:mainfrom
bartoszmajsak:deps/kustomize
Aug 8, 2025
Merged

chore(deps): bumps kustomize libraries#2259
zdtsw merged 1 commit intoopendatahub-io:mainfrom
bartoszmajsak:deps/kustomize

Conversation

@bartoszmajsak
Copy link
Contributor

@bartoszmajsak bartoszmajsak commented Aug 6, 2025

Description

Without updating kyaml and kustomize api it's not possible to use patches containing several targets.

The issue is reported as component's condition:

trouble configuring builtin PatchTransformer with config: `                                                                                                                           │
path: remove-cert-manager.yaml                                                                                                                                                        │
`: unable to parse SM or JSON patch from [$patch: delete                                                                                                                              │
apiVersion: cert-manager.io/v1                                                                                                                                                        │
kind: Issuer                                                                                                                                                                          │
metadata:                                                                                                                                                                             │
  name: selfsigned-issuer                                                                                                                                                             │
  namespace: kserve                                                                                                                                                                   │
---                                                                                                                                                                                   │
$patch: delete

Related issue: kubernetes-sigs/kustomize#5194

How Has This Been Tested?

  • pulled new image with updated deps
  • applied following DSCI+DSC
apiVersion: dscinitialization.opendatahub.io/v1
kind: DSCInitialization
metadata:
  name: default-dsci
spec:
  applicationsNamespace: opendatahub
  monitoring:
    managementState: Managed
    namespace: opendatahub
  serviceMesh:
    managementState: Removed
  trustedCABundle:
    customCABundle: ''
    managementState: Managed
---
apiVersion: datasciencecluster.opendatahub.io/v1
kind: DataScienceCluster
metadata:
  name: default-dsc
spec:
  components:
    kserve:
      defaultDeploymentMode: RawDeployment
      devFlags:
        manifests:
        - contextDir: config
          sourcePath: overlays/odh
          uri: https://github.com/bartoszmajsak/kserve/tarball/llm-d/feature/e2e/prow-ci-e2e-llm-d
      managementState: Managed
      nim:
        managementState: Managed
      rawDeploymentServiceConfig: Headed
      serving:
        ingressGateway:
          certificate:
            type: OpenshiftDefaultIngress
        managementState: Removed
        name: knative-serving

Merge criteria

  • You have read the contributors guide.
  • Commit messages are meaningful - have a clear and concise summary and detailed explanation of what was changed and why.
  • Pull Request contains a description of the solution, a link to the JIRA issue, and to any dependent or related Pull Request.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Summary by CodeRabbit

  • Chores
    • Upgraded several underlying dependencies to newer versions.
    • Added and removed some indirect dependencies to improve compatibility and performance.

Without updating kyaml and kustomize api it's not possible to use
patches containing several targets.

The issue is reported as component's condition:

```
trouble configuring builtin PatchTransformer with config: `                                                                                                                           │
path: remove-cert-manager.yaml                                                                                                                                                        │
`: unable to parse SM or JSON patch from [$patch: delete                                                                                                                              │
apiVersion: cert-manager.io/v1                                                                                                                                                        │
kind: Issuer                                                                                                                                                                          │
metadata:                                                                                                                                                                             │
  name: selfsigned-issuer                                                                                                                                                             │
  namespace: kserve                                                                                                                                                                   │
---                                                                                                                                                                                   │
$patch: delete
```

Related issue: kubernetes-sigs/kustomize#5194

Signed-off-by: Bartosz Majsak <bartosz.majsak@gmail.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 6, 2025

Walkthrough

The go.mod file was updated to upgrade several dependencies to newer versions, add two indirect dependencies, and remove three indirect dependencies. No changes were made to the declarations of exported or public entities, and no source code was modified.

Changes

Cohort / File(s) Change Summary
Dependency Upgrades and Adjustments
go.mod
Upgraded sigs.k8s.io/kustomize/api, sigs.k8s.io/kustomize/kyaml, and sigs.k8s.io/yaml to newer versions; updated github.com/google/gnostic-models and k8s.io/kube-openapi to newer versions; added go.yaml.in/yaml/v2 and go.yaml.in/yaml/v3 as indirect dependencies; removed github.com/google/shlex, github.com/imdario/mergo, and go.starlark.net as indirect dependencies.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A hop and a skip, dependencies rise,
Fresh versions bloom beneath code’s skies.
Old friends departed, new ones appear,
The garden of modules is tidy and clear.
With every update, the project feels bright—
A rabbit’s delight in the soft morning light! 🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 736655a and 21615cd.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod (4 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: mlassak
PR: opendatahub-io/opendatahub-operator#2010
File: config/crd/kustomization.yaml:22-22
Timestamp: 2025-07-22T10:32:09.737Z
Learning: In the opendatahub-operator repository, when FeatureTrackers are being removed or deprecated, the FeatureTracker CRD reference in config/crd/kustomization.yaml should be kept for backward compatibility during the migration period, even if some components no longer use FeatureTrackers.
🔇 Additional comments (2)
go.mod (2)

31-33: Verify kustomize 0.20 breaking changes

Upgrading sigs.k8s.io/kustomize/{api,kyaml} from 0.16 → 0.20 pulls in the new command refactor (kubectl-style APIs, stricter validation, different field defaults).
Please confirm the operator still:

  1. Compiles without changes to our wrappers around resmap, types.Options, etc.
  2. Generates identical manifests for a representative DSC install.

A quick smoke-test:

make manifests         # existing target
make kustomize-test    # any local script that renders default overlays

…and diff the output against main.


54-54: Minor gnostic-models bump looks safe

The patch upgrade to v0.6.9 only contains schema comment fixes; no API surface change.
Nothing to action here.

✨ 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.
    • Explain this complex logic.
    • 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. Examples:
    • @coderabbitai explain this code block.
  • 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 src/utils.ts and explain its main purpose.
    • @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 comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai 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

Documentation and Community

  • 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.

@openshift-ci openshift-ci bot requested review from lburgazzoli and zdtsw August 6, 2025 12:19
Copy link
Contributor

@Jooho Jooho left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Aug 6, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jooho, spolti, zdtsw

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Aug 6, 2025
@bartoszmajsak
Copy link
Contributor Author

/retest

1 similar comment
@bartoszmajsak
Copy link
Contributor Author

/retest

@bartoszmajsak
Copy link
Contributor Author

@zdtsw any idea what's causing this?

error(MissingQuota): compute.googleapis.com/routers is not available in global because the required number of resources (1) is more than remaining quota of 0, and could not find information on iam.googleapis.com/quota/service-account-count

@bartoszmajsak
Copy link
Contributor Author

/retest

@zdtsw
Copy link
Member

zdtsw commented Aug 7, 2025

/test opendatahub-operator-e2e

@bartoszmajsak
Copy link
Contributor Author

/retest

it keeps failing for the very same quota reason...

@zdtsw
Copy link
Member

zdtsw commented Aug 7, 2025

/test opendatahub-operator-e2e

@zdtsw zdtsw enabled auto-merge (squash) August 7, 2025 07:01
@zdtsw
Copy link
Member

zdtsw commented Aug 7, 2025

some intersting error 👍 {"level":"error","ts":"2025-08-07T07:01:47Z","msg":"Reconciler error","controller":"modelmeshserving","controllerGroup":"components.platform.opendatahub.io","controllerKind":"ModelMeshServing","ModelMeshServing":{"name":"default-modelmeshserving"},"namespace":"","name":"default-modelmeshserving","reconcileID":"1db68c33-d37b-40e0-9346-c1cfe2314b97","error":"provisioning failed: accumulating resources: accumulation err='accumulating resources from './default': '/opt/manifests/modelmeshserving/overlays/odh/default' must resolve to a file': recursed accumulation of path '/opt/manifests/modelmeshserving/overlays/odh/default': error unmarshaling JSON: while decoding JSON: json: unknown field \"apiVersion\"","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.4/pkg/internal/controller/controller.go:347\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.4/pkg/internal/controller/controller.go:294\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\t/opt/app-root/src/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.20.4/pkg/internal/controller/controller.go:255"}

@bartoszmajsak
Copy link
Contributor Author

bartoszmajsak commented Aug 7, 2025

some intersting error 👍

Oh finally valuable error! I was afraid that due to bugs in kustomize we might have been using it wrong in a few places undetected. Hopefully fixed with opendatahub-io/modelmesh-serving#365

@zdtsw
Copy link
Member

zdtsw commented Aug 7, 2025

@spolti i am gonna put this in
/hold
till modelmesh one is merged

@bartoszmajsak
Copy link
Contributor Author

/retest

@bartoszmajsak
Copy link
Contributor Author

bartoszmajsak commented Aug 7, 2025

@spolti i am gonna put this in
/hold
till modelmesh one is merged

Failing test was holding it back but ok :)

@spolti
Copy link
Member

spolti commented Aug 7, 2025

modelmesh-serving is merged.

@bartoszmajsak
Copy link
Contributor Author

/retest

1 similar comment
@spolti
Copy link
Member

spolti commented Aug 7, 2025

/retest

@bartoszmajsak
Copy link
Contributor Author

/retest

We keep trying. Flaky tests :(

@bartoszmajsak
Copy link
Contributor Author

/retest

@zdtsw zdtsw merged commit e5e63a0 into opendatahub-io:main Aug 8, 2025
9 of 10 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in ODH Platform Planning Aug 8, 2025
@codecov
Copy link

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.14%. Comparing base (ab09e68) to head (21615cd).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2259   +/-   ##
=======================================
  Coverage   42.14%   42.14%           
=======================================
  Files         144      144           
  Lines       11325    11325           
=======================================
  Hits         4773     4773           
  Misses       6151     6151           
  Partials      401      401           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bartoszmajsak bartoszmajsak deleted the deps/kustomize branch August 8, 2025 05:34
@zdtsw
Copy link
Member

zdtsw commented Aug 20, 2025

/cherry-pick rhoai

@openshift-cherrypick-robot

@zdtsw: new pull request created: #2339

Details

In response to this:

/cherry-pick rhoai

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

zdtsw pushed a commit to zdtsw-forking/opendatahub-operator that referenced this pull request Aug 21, 2025
Without updating kyaml and kustomize api it's not possible to use
patches containing several targets.

The issue is reported as component's condition:

```
trouble configuring builtin PatchTransformer with config: `                                                                                                                           │
path: remove-cert-manager.yaml                                                                                                                                                        │
`: unable to parse SM or JSON patch from [$patch: delete                                                                                                                              │
apiVersion: cert-manager.io/v1                                                                                                                                                        │
kind: Issuer                                                                                                                                                                          │
metadata:                                                                                                                                                                             │
  name: selfsigned-issuer                                                                                                                                                             │
  namespace: kserve                                                                                                                                                                   │
---                                                                                                                                                                                   │
$patch: delete
```

Related issue: kubernetes-sigs/kustomize#5194

Signed-off-by: Bartosz Majsak <bartosz.majsak@gmail.com>
(cherry picked from commit e5e63a0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants