Skip to content

WRKLDS-925: remove duplicate passing of kubeconfig into route-controller-manager#3220

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
atiratree:rcm-kubeconfig
Nov 30, 2023
Merged

WRKLDS-925: remove duplicate passing of kubeconfig into route-controller-manager#3220
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
atiratree:rcm-kubeconfig

Conversation

@atiratree
Copy link
Member

What this PR does / why we need it:

openshift/cluster-openshift-controller-manager-operator#295 and openshift/route-controller-manager#28 refactoring introducing passing a kubeconfig by a flag and removed it from the config. To merge all of these changes we had to support both ways in hypershift #2674.

Now that all of these PRs are merged, we can remove the duplication and pass the kubeconfig only just by a flag. This is done here:

"--kubeconfig",
path.Join(volumeMounts.Path(c.Name, routeOCMVolumeKubeconfig().Name), kas.KubeconfigKey),

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@openshift-ci openshift-ci bot requested review from enxebre and hasueki November 21, 2023 21:08
@openshift-ci openshift-ci bot added area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release and removed do-not-merge/needs-area labels Nov 21, 2023
the new route-controller-manager supports only the --kubeconfig flag
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 22, 2023

@atiratree: 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/test-infra repository. I understand the commands that are listed here.

@atiratree
Copy link
Member Author

@enxebre can you please take a look?

@enxebre
Copy link
Member

enxebre commented Nov 28, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atiratree, enxebre

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

The pull request process is described 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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 28, 2023
@atiratree atiratree changed the title remove duplicate passing of kubeconfig into route-controller-manager WRKLDS-925: remove duplicate passing of kubeconfig into route-controller-manager Nov 29, 2023
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 29, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 29, 2023

@atiratree: This pull request references WRKLDS-925 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 sub-task to target the "4.15.0" version, but no target version was set.

Details

In response to this:

What this PR does / why we need it:

openshift/cluster-openshift-controller-manager-operator#295 and openshift/route-controller-manager#28 refactoring introducing passing a kubeconfig by a flag and removed it from the config. To merge all of these changes we had to support both ways in hypershift #2674.

Now that all of these PRs are merged, we can remove the duplication and pass the kubeconfig only just by a flag. This is done here:

"--kubeconfig",
path.Join(volumeMounts.Path(c.Name, routeOCMVolumeKubeconfig().Name), kas.KubeconfigKey),

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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.

@ingvagabund
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 30, 2023
@openshift-merge-bot openshift-merge-bot bot merged commit e027b03 into openshift:main Nov 30, 2023
@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-hypershift-container-v4.15.0-202311301610.p0.ge027b03.assembly.stream for distgit hypershift.
All builds following this will include this PR.

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. area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants