Skip to content
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

🐛 Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up #2846

Conversation

fabriziopandini
Copy link
Member

What this PR does / why we need it:
Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up by adding a finalizer on the vSphereCluster

Which issue(s) this PR fixes:
Fixes #2845

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 20, 2024
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 64.09%. Comparing base (cb1635c) to head (8132829).
Report is 6 commits behind head on main.

Files Patch % Lines
controllers/serviceaccount_controller.go 50.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2846      +/-   ##
==========================================
- Coverage   64.20%   64.09%   -0.11%     
==========================================
  Files         160      160              
  Lines        9367     9375       +8     
==========================================
- Hits         6014     6009       -5     
- Misses       2899     2909      +10     
- Partials      454      457       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

Only the naming thing, as of that lgtm

apis/vmware/v1beta1/vspherecluster_types.go Outdated Show resolved Hide resolved
@fabriziopandini fabriziopandini force-pushed the fix-ProviderServiceAccount-cleanup branch from 5a3f38b to 8132829 Compare March 25, 2024 11:30
@sbueringer
Copy link
Member

Thx!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 25, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: b3c63ebfb7a1bb298e30d736f79200786d4f7d44

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 25, 2024
@k8s-ci-robot k8s-ci-robot merged commit 41c732e into kubernetes-sigs:main Mar 25, 2024
18 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.10 milestone Mar 25, 2024
@fabriziopandini
Copy link
Member Author

/cherry-pick release-1.9

@fabriziopandini
Copy link
Member Author

/cherry-pick release-1.8

@fabriziopandini
Copy link
Member Author

/cherry-pick release-1.7

@fabriziopandini
Copy link
Member Author

/cherry-pick release-1.6

@k8s-infra-cherrypick-robot

@fabriziopandini: #2846 failed to apply on top of branch "release-1.8":

Applying: Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up
Using index info to reconstruct a base tree...
M	apis/vmware/v1beta1/vspherecluster_types.go
M	controllers/serviceaccount_controller.go
Falling back to patching base and 3-way merge...
Auto-merging controllers/serviceaccount_controller.go
CONFLICT (content): Merge conflict in controllers/serviceaccount_controller.go
Auto-merging apis/vmware/v1beta1/vspherecluster_types.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.8

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.

@k8s-infra-cherrypick-robot

@fabriziopandini: new pull request created: #2849

In response to this:

/cherry-pick release-1.9

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.

@k8s-infra-cherrypick-robot

@fabriziopandini: #2846 failed to apply on top of branch "release-1.7":

Applying: Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up
Using index info to reconstruct a base tree...
M	apis/vmware/v1beta1/vspherecluster_types.go
M	controllers/serviceaccount_controller.go
Falling back to patching base and 3-way merge...
Auto-merging controllers/serviceaccount_controller.go
CONFLICT (content): Merge conflict in controllers/serviceaccount_controller.go
Auto-merging apis/vmware/v1beta1/vspherecluster_types.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.7

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.

@k8s-infra-cherrypick-robot

@fabriziopandini: #2846 failed to apply on top of branch "release-1.6":

Applying: Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up
Using index info to reconstruct a base tree...
M	apis/vmware/v1beta1/vspherecluster_types.go
M	controllers/serviceaccount_controller.go
Falling back to patching base and 3-way merge...
Auto-merging controllers/serviceaccount_controller.go
CONFLICT (content): Merge conflict in controllers/serviceaccount_controller.go
Auto-merging apis/vmware/v1beta1/vspherecluster_types.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Ensure entries for ProviderServiceAccount created in the ConfigMap are cleaned up
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.6

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
6 participants