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

Add finalizers to cluster-role #1646

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

ArangoGutierrez
Copy link
Contributor

Signed-off-by: Carlos Eduardo Arango Gutierrez carangog@redhat.com

What this PR does / why we need it:

This error can be presented if finalizers are not added to the cluster-role

2022-08-04T14:45:50.154Z        ERROR   controller-runtime.manager.controller.pytorchjob-controller     Reconciler error        {"name": "pytorch-simple", "namespace": "kubeflow", "error": "Operation cannot be fulfilled on pytorchjobs.kub
eflow.org \"pytorch-simple\": the object has been modified; please apply your changes to the latest version and try again"}                                                                                                                   
github.com/go-logr/zapr.(*zapLogger).Error                                                                                                                                                                                                    
        /go/pkg/mod/github.com/go-logr/zapr@v0.2.0/zapr.go:132                                                                                                                                                                                
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler                                  
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.7.2/pkg/internal/controller/controller.go:267                                                                                                                                           
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem                                                                                                                                                      
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.7.2/pkg/internal/controller/controller.go:235                                                                                                                                           
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.1                                                                                                                                                            
        /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.7.2/pkg/internal/controller/controller.go:198                                                                                                                                           
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1                                                                                                                                                                                
        /go/pkg/mod/k8s.io/apimachinery@v0.19.9/pkg/util/wait/wait.go:185                                                                                                                                                                     
k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1                                                                                                                                                                                          
        /go/pkg/mod/k8s.io/apimachinery@v0.19.9/pkg/util/wait/wait.go:155                                                                                                                                                                     
k8s.io/apimachinery/pkg/util/wait.BackoffUntil                                                                                                                                                                                                
        /go/pkg/mod/k8s.io/apimachinery@v0.19.9/pkg/util/wait/wait.go:156                                                                                                                                                                     
k8s.io/apimachinery/pkg/util/wait.JitterUntil                                                                                                                                                                                                 
        /go/pkg/mod/k8s.io/apimachinery@v0.19.9/pkg/util/wait/wait.go:133                                                                                                                                                                     
k8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext                                                                                                                                                                                      
        /go/pkg/mod/k8s.io/apimachinery@v0.19.9/pkg/util/wait/wait.go:185                                                                                                                                                                     
k8s.io/apimachinery/pkg/util/wait.UntilWithContext                                                                                                                                                                                            
        /go/pkg/mod/k8s.io/apimachinery@v0.19.9/pkg/util/wait/wait.go:99     

Checklist:

  • Docs included if any changes are user facing

Signed-off-by: Carlos Eduardo Arango Gutierrez <carangog@redhat.com>
@ArangoGutierrez
Copy link
Contributor Author

This affects, at least as tested, all the way to 1.3 release

@coveralls
Copy link

coveralls commented Aug 4, 2022

Pull Request Test Coverage Report for Build 2797645896

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 6 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 39.914%

Files with Coverage Reduction New Missed Lines %
pkg/controller.v1/mpi/mpijob_controller.go 6 77.65%
Totals Coverage Status
Change from base Build 2782231641: 0.0%
Covered Lines: 2331
Relevant Lines: 5840

💛 - Coveralls

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

/lgtm

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ArangoGutierrez, gaocegege, terrytangyuan

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:
  • OWNERS [gaocegege,terrytangyuan]

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

@google-oss-prow google-oss-prow bot merged commit 3ee0d08 into kubeflow:master Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants