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

fix info kind error #5701

Merged
merged 1 commit into from
Dec 15, 2022
Merged

fix info kind error #5701

merged 1 commit into from
Dec 15, 2022

Conversation

cleverhu
Copy link
Contributor

@cleverhu cleverhu commented Dec 15, 2022

Explanation

Unify the format of gvk, gvr, kind. Fix info kind msg.

Related issue

#5641

Milestone of this PR

What type of PR is this

/kind bug

Proposed Changes

image

image

Proof Manifests

Checklist

  • I have read the contributing guidelines.
  • I have read the PR documentation guide and followed the process including adding proof manifests to this PR.
  • This is a bug fix and I have added unit tests that prove my fix is effective.
  • This is a feature and I have added CLI tests that are applicable.
  • My PR needs to be cherry picked to a specific release branch which is .
  • My PR contains new or altered behavior to Kyverno and
    • CLI support should be added and my PR doesn't contain that functionality.
    • I have added or changed the documentation myself in an existing PR and the link is:
    • I have raised an issue in kyverno/website to track the documentation update and the link is:

Further Comments

@eddycharly
Copy link
Member

TBH I prefer gvk/gvr to be objects.

@cleverhu
Copy link
Contributor Author

cleverhu commented Dec 15, 2022

TBH I prefer gvk/gvr to be objects.

If so, is it necessary to unify? Not change here, but change other places? Now they are not unified.

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #5701 (cddb6bb) into main (66ba0fc) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #5701      +/-   ##
==========================================
- Coverage   34.42%   34.42%   -0.01%     
==========================================
  Files         191      191              
  Lines       21145    21146       +1     
==========================================
  Hits         7280     7280              
- Misses      13064    13065       +1     
  Partials      801      801              
Impacted Files Coverage Δ
pkg/webhooks/handlers/admission.go 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@eddycharly
Copy link
Member

For kind I suppose it should be only the kind, for gvr/gvk it makes sense to keep it as an object, it will allow more fine-grained queries.

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
@cleverhu
Copy link
Contributor Author

For kind I suppose it should be only the kind, for gvr/gvk it makes sense to keep it as an object, it will allow more fine-grained queries.

I unified it in pkg/webhooks/resource/validation/validation.go

Copy link
Member

@eddycharly eddycharly left a comment

Choose a reason for hiding this comment

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

LGTM

@eddycharly eddycharly merged commit 8fd841a into kyverno:main Dec 15, 2022
MdSahil-oss pushed a commit to MdSahil-oss/kyverno that referenced this pull request Dec 29, 2022
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
Signed-off-by: Md Sahil <Mohdssahil1@gmail.com>
MdSahil-oss pushed a commit to MdSahil-oss/kyverno that referenced this pull request Jan 11, 2023
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
MdSahil-oss pushed a commit to MdSahil-oss/kyverno that referenced this pull request Jan 11, 2023
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants