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

✨ Update kustomization.yaml to support kustomize v5 #2523

Conversation

damdo
Copy link
Member

@damdo damdo commented Dec 1, 2023

When building the manifests kustomizations with kustomize v5 I'm getting the following error.

error: invalid Kustomization: json: cannot unmarshal string into Go struct field Kustomization.patches of type types.Patch

This is because kustomize v5.0 has dropped support for legacy patches.

kubernetes-sigs/kustomize#4911
kubernetes-sigs/kustomize#1373

As such the suggestion is to add the newly supported patches' - path: syntax, which should be compatible as back as kustomize 3.0.1

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 1, 2023
@k8s-ci-robot k8s-ci-robot requested review from srm09 and vrabbi December 1, 2023 17:30
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b030e6b) 63.68% compared to head (390ad7b) 63.89%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2523      +/-   ##
==========================================
+ Coverage   63.68%   63.89%   +0.21%     
==========================================
  Files         123      123              
  Lines        8767     8767              
==========================================
+ Hits         5583     5602      +19     
+ Misses       2764     2751      -13     
+ Partials      420      414       -6     

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

@vincepri
Copy link
Member

vincepri commented Dec 1, 2023

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8c5da0e9d55f15ae87766fbeb9f211ae23fb342e

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 1, 2023
@k8s-ci-robot k8s-ci-robot merged commit 09bfaa0 into kubernetes-sigs:main Dec 1, 2023
11 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants