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
HOSTEDCP-1305: Simplify HostedControlPlaneNamespace().Name #2619
Conversation
/test e2e-kubevirt-aws-ovn |
32d3da7
to
bb8549d
Compare
fc97605
to
98aef28
Compare
/test e2e-aws |
818cf41
to
9f3a157
Compare
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
9f3a157
to
360d4a2
Compare
/remove-lifecycle stale |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enxebre, nunnatsa 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 |
/retest |
@nunnatsa: This pull request references HOSTEDCP-1305 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but no target version was set. In response to this:
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/test-infra repository. |
/retest |
2 similar comments
/retest |
/retest |
44 out of 49 calls to `HostedControlPlaneNamespace` are only to get the controlPlane namespace name. This PR adds the `HostedControlPlaneNamespaceName` function and use it anywhere we only want the namespace name, to simplify the code by not creating the namespace object just to then take the `Name` field. Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
360d4a2
to
23b8043
Compare
/lgtm |
@nunnatsa: all tests passed! Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] This PR has been included in build ose-hypershift-container-v4.15.0-202311161132.p0.g3a42e77.assembly.stream for distgit hypershift. |
What this PR does / why we need it
32 out of 38 calls to
HostedControlPlaneNamespace
are only to get thecontrolPlane namespace name. These cases are actually creating a namespace object only to take its
Name
field.This PR renames the
HostedControlPlaneNamespace
function, toHostedControlPlaneNamespaceObject
, and add a newHostedControlPlaneNamespace
function to only return the namespace name. Then use this new function anywhere we only want the namespace name, to simplify the code by avoiding the creation of the namespace object just to then take theName
field.Checklist