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

Bump openpolicyagent/kube-mgmt and redis images for Authorization #663

Merged
merged 6 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion controllers/csm_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,8 @@ func (r *ContainerStorageModuleReconciler) PreChecks(ctx context.Context, cr *cs
if err != nil {
return fmt.Errorf("failed upgrade check: %v", err)
} else if !upgradeValid {
return fmt.Errorf("failed upgrade check because upgrade is not valid")
log.Infof("upgrade is not valid")
Copy link
Contributor

Choose a reason for hiding this comment

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

no linting error here? PowerScale driver this was throwing error. anything with ending "f" need format.

Copy link
Contributor Author

@shaynafinocchiaro shaynafinocchiaro Aug 15, 2024

Choose a reason for hiding this comment

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

No this wasn't flagged as a linting error.

return nil
}

// check for owner reference
Expand Down Expand Up @@ -1429,6 +1430,9 @@ func (r *ContainerStorageModuleReconciler) checkUpgrade(ctx context.Context, cr
if configVersionExists {
if cr.HasModule(csmv1.AuthorizationServer) {
newVersion := cr.GetModule(csmv1.AuthorizationServer).ConfigVersion
if newVersion == "v2.0.0-alpha" {
return false, nil
}
return utils.IsValidUpgrade(ctx, oldVersion, newVersion, csmv1.Authorization, operatorConfig)
}
if cr.HasModule(csmv1.ApplicationMobility) {
Expand Down
2 changes: 1 addition & 1 deletion controllers/csm_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (suite *CSMControllerTestSuite) TestAuthorizationServerReconcileOCP() {

func (suite *CSMControllerTestSuite) TestAuthorizationServerPreCheck() {
suite.makeFakeAuthServerCSMWithoutPreRequisite(csmName, suite.namespace)
suite.runFakeAuthCSMManager("failed authorization proxy server validation", false, false)
suite.runFakeAuthCSMManager("timed out waiting for the condition", false, false)
suite.deleteCSM(csmName)
suite.runFakeAuthCSMManager("", true, false)
}
Expand Down
Loading
Loading