Skip to content

OCPBUGS-11395: Remove stale kubeconfigs#1643

Merged
openshift-merge-robot merged 3 commits intoopenshift:mainfrom
pacevedom:OCPBUGS-11395
Apr 12, 2023
Merged

OCPBUGS-11395: Remove stale kubeconfigs#1643
openshift-merge-robot merged 3 commits intoopenshift:mainfrom
pacevedom:OCPBUGS-11395

Conversation

@pacevedom
Copy link
Contributor

Remove any kubeconfig that is not part of the hostname or SAN values in configuration.

Which issue(s) this PR addresses:

Closes #

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 10, 2023
@openshift-ci-robot
Copy link

@pacevedom: This pull request references Jira Issue OCPBUGS-11395, which is invalid:

  • expected the bug to target the "4.14.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Remove any kubeconfig that is not part of the hostname or SAN values in configuration.

Which issue(s) this PR addresses:

Closes #

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.

@openshift-ci openshift-ci bot requested review from copejon and pmtk April 10, 2023 12:17
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 10, 2023
@pacevedom
Copy link
Contributor Author

/retest

pkg/cmd/init.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe instead of logging a list here, the loop below could log right before it tries to remove each item? That would make the logs easier to read and would fit with the "unit of work" style logging. https://docs.openstack.org/oslo.log/latest/user/guidelines.html#overall-logging-principles

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didnt know about this guide, it is done now.

@dhellmann
Copy link
Contributor

This is a good candidate for an automated test. Do we have the parts in place to add a test like that in this PR, or is the work to make that possible still in progress?

@pacevedom
Copy link
Contributor Author

This is a good candidate for an automated test. Do we have the parts in place to add a test like that in this PR, or is the work to make that possible still in progress?

We could make it but not on this PR until #1557 merges. That way we can include it in a new e2e test that does not need another VM in CI.

@dhellmann
Copy link
Contributor

This is a good candidate for an automated test. Do we have the parts in place to add a test like that in this PR, or is the work to make that possible still in progress?

We could make it but not on this PR until #1557 merges. That way we can include it in a new e2e test that does not need another VM in CI.

If the cleanup function took a directory name as argument, we could have some tests for it in the unit test framework.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 11, 2023
@pacevedom
Copy link
Contributor Author

This is a good candidate for an automated test. Do we have the parts in place to add a test like that in this PR, or is the work to make that possible still in progress?

We could make it but not on this PR until #1557 merges. That way we can include it in a new e2e test that does not need another VM in CI.

If the cleanup function took a directory name as argument, we could have some tests for it in the unit test framework.

Done

@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 12, 2023
@pacevedom
Copy link
Contributor Author

/test e2e-loadbalancer-smoke-test

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 12, 2023

@pacevedom: 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.

@pacevedom
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 12, 2023
@openshift-ci-robot
Copy link

@pacevedom: This pull request references Jira Issue OCPBUGS-11395, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @jogeo

Details

In response to this:

/jira refresh

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.

@openshift-ci openshift-ci bot requested a review from jogeo April 12, 2023 14:03
Copy link
Contributor

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhellmann, pacevedom

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:
  • OWNERS [dhellmann,pacevedom]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 8b7a835 into openshift:main Apr 12, 2023
@openshift-ci-robot
Copy link

@pacevedom: Jira Issue OCPBUGS-11395: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-11395 has been moved to the MODIFIED state.

Details

In response to this:

Remove any kubeconfig that is not part of the hostname or SAN values in configuration.

Which issue(s) this PR addresses:

Closes #

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.

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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.

4 participants