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

Reduce numer of parameters of CreateK8sCR #85

Conversation

jhernand
Copy link
Collaborator

Currently this function has nine parameters. Two of them are the name and namespace of the object, but the object itself is also passed. Assuming that the Name and Namespace fields of the object will be populated it is not necessary to have additional parameters for that. This patch removes those parameters.

Currently this function has nine parameters. Two of them are the name
and namespace of the object, but the object itself is also passed.
Assuming that the `Name` and `Namespace` fields of the object will be
populated it is not necessary to have additional parameters for that.
This patch removes those parameters.

Signed-off-by: Juan Hernandez <[email protected]>
@openshift-ci openshift-ci bot requested review from danielerez and irinamihai April 11, 2024 10:37
@jhernand
Copy link
Collaborator Author

@irinamihai while addressing your suggestion to use CreateK8sCR I noticed these apparently redundant parameters. It is OK to remove them?

@irinamihai
Copy link
Collaborator

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 11, 2024
@irinamihai
Copy link
Collaborator

/approve

Copy link

openshift-ci bot commented Apr 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irinamihai

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 11, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 83191ea into openshift-kni:main Apr 11, 2024
8 checks passed
@jhernand jhernand deleted the remove_name_and_namespace_parameters_from_createk8scr_function branch April 11, 2024 12:56
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants