Skip to content

Conversation

@khrm
Copy link
Contributor

@khrm khrm commented Dec 18, 2025

Kind of GVK in kubernetes is PascalCase. e.g. Kind is Deployment not deployment, PipelineRun not pipelinerun.

@khrm
Copy link
Contributor Author

khrm commented Dec 18, 2025

/assign @kannon92

Kind of GVK in kubernetes is PascalCase.
e.g. Kind is Deployment not deployment, PipelineRun not pipelinerun.

Forcing resource to lowercase causes failure for externalFramework.
@openshift-ci
Copy link

openshift-ci bot commented Dec 18, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: khrm
Once this PR has been reviewed and has the lgtm label, please ask for approval from kannon92. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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
Copy link

openshift-ci bot commented Dec 18, 2025

@khrm: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@kannon92
Copy link
Contributor

kannon92 commented Dec 18, 2025

@kannon92
Copy link
Contributor

eh nvm. you are allowing either lowercase or uppercase.

// resource is the Resource type of the external framework.
// Resource types are lowercase and plural (e.g. pods, deployments).
// Must be a valid DNS 1123 label consisting of a lower-case alphanumeric string
// Resource types are lowercase and plural (e.g. pods, deployments) or Kind (e.g. Job, Pod).

Choose a reason for hiding this comment

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

Resources and kinds are different things, they are not interchangeable

A Resource is part of the rest path of the resource. Using Group, Version and Resource I can concretely identify the correct rest path to which this object is referring.

What you are suggesting is to use Kind, Kind doesn't mean anything in terms of the actual rest path, and, Kind does not necessarily need to be unique within a GroupVersion.

To go from GroupVersionKind to the rest path, I must go through API discovery, fetch a rest mapping, and then hope that only one result is returned. This rest mapping will then give me the Resource, so that I can construct the appropriate URL to send my request to.

@JoelSpeed
Copy link

Kind of GVK in kubernetes is PascalCase. e.g. Kind is Deployment not deployment, PipelineRun not pipelinerun.

The API design here uses GVR (Which is accurate) and not GVK (which is ambiguous)

@kannon92
Copy link
Contributor

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 18, 2025
@khrm
Copy link
Contributor Author

khrm commented Dec 18, 2025

@JoelSpeed @kannon92 In upstream, it's GVK not GVR. Using GVR, causes failure for MultiKueue.

@khrm
Copy link
Contributor Author

khrm commented Dec 18, 2025

Let me recheck this.

@kannon92
Copy link
Contributor

kannon92 commented Jan 7, 2026

@khrm what is the status of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants