Skip to content

Clean up ClusterRoleBindings#732

Merged
andraxylia merged 5 commits intomasterfrom
bindings
Sep 11, 2017
Merged

Clean up ClusterRoleBindings#732
andraxylia merged 5 commits intomasterfrom
bindings

Conversation

@andraxylia
Copy link
Copy Markdown
Contributor

Fixes istio/old_pilot_repo#1239

The only cleanup done by the tests is to delete the namespaces, but this leaves behind resources which are not namespaced, like ClusterRoleBinding.
Added code to delete them.

Matches istio/old_pilot_repo#1240

@andraxylia andraxylia added this to the Istio 0.2 milestone Sep 11, 2017
@andraxylia andraxylia self-assigned this Sep 11, 2017
@istio-merge-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
We suggest the following additional approver: sebastienvas

Assign the PR to them by writing /assign @sebastienvas in a comment when ready.

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

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

if *rbacfile != "" {
baseRbacYaml := util.GetResourcePath(*rbacfile)
testRbacYaml := filepath.Join(k.TmpDir, "yaml", filepath.Base(*rbacfile))
if err := k.generateRbac(baseRbacYaml, testRbacYaml); err != nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You don't need to generate it again. You just need to check if testRbacYaml is there. If yes, kubeDelete it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done, PTAL

@andraxylia andraxylia merged commit 64198ed into master Sep 11, 2017
@andraxylia andraxylia deleted the bindings branch September 11, 2017 21:49
rshriram added a commit that referenced this pull request Sep 13, 2017
rshriram pushed a commit that referenced this pull request Oct 30, 2017
* Clean up ClusterRoleBindings

* Fix linter

* Check file exists


Former-commit-id: 64198ed
vbatts pushed a commit to vbatts/istio that referenced this pull request Oct 31, 2017
* Clean up ClusterRoleBindings

* Fix linter

* Check file exists


Former-commit-id: 64198ed
mandarjog pushed a commit that referenced this pull request Nov 2, 2017
* Clean up ClusterRoleBindings

* Fix linter

* Check file exists


Former-commit-id: 64198ed
kyessenov pushed a commit to kyessenov/istio that referenced this pull request Aug 13, 2018
Automatic merge from submit-queue.

[DO NOT MERGE] Auto PR to update dependencies of proxy

This PR will be merged automatically once checks are successful.
```release-note
none
```
howardjohn pushed a commit to howardjohn/istio that referenced this pull request Jan 12, 2020
* Set CNI namespace as kube-system

Signed-off-by: Chun Lin Yang <clyang@cn.ibm.com>

* Fix test failure issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants