Skip to content

Conversation

@nirarg
Copy link
Contributor

@nirarg nirarg commented Dec 15, 2020

No description provided.

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-high Referenced Bugzilla bug's severity is high 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. labels Dec 15, 2020
@openshift-ci-robot
Copy link
Contributor

@nirarg: This pull request references Bugzilla bug 1907947, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

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

In response to this:

Bug 1907947: cloud-creds-secret creation with current context info only

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.

@nirarg
Copy link
Contributor Author

nirarg commented Dec 15, 2020

Hi @staebler ,
This PR is related to this comment: #4350 (comment)

@openshift-merge-robot
Copy link
Contributor

@nirarg: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-upgrade 5e1961207f249edc4a9e420246b351f55f7a319d link /test e2e-aws-upgrade
ci/prow/e2e-crc 5e1961207f249edc4a9e420246b351f55f7a319d link /test e2e-crc
ci/prow/e2e-aws-workers-rhel7 5e1961207f249edc4a9e420246b351f55f7a319d link /test e2e-aws-workers-rhel7
ci/prow/e2e-ovirt 5e1961207f249edc4a9e420246b351f55f7a319d link /test e2e-ovirt

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.

Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

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

Looks good. Just some nits.

/approve

Comment on lines 71 to 74
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var currentContextValue *clientcmdapi.Context
for k, v := range rawConfig.Contexts {
if k != rawConfig.CurrentContext {
delete(rawConfig.Contexts, k)
} else {
currentContextValue = v
}
}
if currentContextValue == nil {
return nil, fmt.Errorf("currentContext is not included in rawConfig.Contexts")
}
currentContextValue := rawConfig.Contexts[rawConfig.CurrentContext]
if currentContextValue == nil {
return nil, fmt.Errorf("currentContext is not included in rawConfig.Contexts")
}
rawConfig.Contexts = map[string]*clientcmdapi.Context{
rawConfig.CurrentContext: currentContextValue,
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

Comment on lines 82 to 84
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
for k := range rawConfig.Clusters {
if k != currentContextValue.Cluster {
delete(rawConfig.Clusters, k)
}
}
if v, ok := rawConfig.Clusters[currentContextValue.Cluster]; ok {
rawConfig.Clusters = map[string]*clientcmdapi.Cluster{
currentContextValue.Cluster: v
}
}

Do a similar thing for AuthInfos, as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: staebler

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 18, 2020
…e anything that is not related to the current context from the result rawConfig
@nirarg nirarg force-pushed the kubevirt-cloud-creds-secret branch from 5e19612 to c45442e Compare December 20, 2020 10:57
@nirarg
Copy link
Contributor Author

nirarg commented Dec 20, 2020

/retest

@chenyosef
Copy link

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 20, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 20, 2020

@nirarg: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-crc c45442e link /test e2e-crc

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.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 6abb3b5 into openshift:master Dec 20, 2020
@openshift-ci-robot
Copy link
Contributor

@nirarg: All pull requests linked via external trackers have merged:

Bugzilla bug 1907947 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1907947: cloud-creds-secret creation with current context info only

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.

@nirarg nirarg deleted the kubevirt-cloud-creds-secret branch December 27, 2020 07:07
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/severity-high Referenced Bugzilla bug's severity is high 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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants