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

Set RepositoryServerCR Conditions #2169

Merged
merged 35 commits into from
Aug 9, 2023
Merged

Conversation

akankshakumari393
Copy link
Contributor

@akankshakumari393 akankshakumari393 commented Jul 12, 2023

Change Overview

This PR sets Repository Server CR Conditions based on different errors.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

https://gist.github.com/akankshakumari393/bcb59453b69e4501b5d4cb6a8184493c

Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@github-actions
Copy link
Contributor

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Jul 12, 2023
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@akankshakumari393 akankshakumari393 changed the title Set CR Condition for Updating Owned Resources Set CR Condition for RepositoryServer Controller Jul 12, 2023
@akankshakumari393 akankshakumari393 changed the title Set CR Condition for RepositoryServer Controller Set RepositoryServerCR Condition Field Jul 12, 2023
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Base automatically changed from revert-2150-revert-2136-refactor_repositoryserver to master July 25, 2023 06:28
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
@akankshakumari393
Copy link
Contributor Author

akankshakumari393 commented Aug 3, 2023

@akankshakumari393 can you check if we can add unit tests for these changes under repositoryserver_controller_test.go?

will create a follow up PR on this.

Kanister automation moved this from In Progress to Reviewer approved Aug 7, 2023
Copy link
Contributor

@kale-amruta kale-amruta left a comment

Choose a reason for hiding this comment

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

lgtm with minor change

pkg/controllers/repositoryserver/handler.go Outdated Show resolved Hide resolved
pkg/controllers/repositoryserver/handler.go Outdated Show resolved Hide resolved
@@ -284,7 +287,7 @@ func (h *RepoServerHandler) preparePodOverride(ctx context.Context) (map[string]
return podOverride, nil
}

func (h *RepoServerHandler) updateServerInfoInCRStatus(ctx context.Context, info crv1alpha1.ServerInfo) error {
func (h *RepoServerHandler) updateServerInfoInCRStatus(ctx context.Context, podName string, serviceName string) error {
h.Logger.Info("Fetch latest version of RepositoryServer to update the ServerInfo in its status")
Copy link
Contributor

Choose a reason for hiding this comment

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

This log is not part of this PR and we don't have to change it now. But it looks like a comment more than a log. And there are other instances of similar logs I see in these files.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should create a task just to correct the logs.

pkg/controllers/repositoryserver/utils.go Outdated Show resolved Hide resolved
pkg/controllers/repositoryserver/handler.go Show resolved Hide resolved
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Kanister automation moved this from Reviewer approved to Review Required Aug 9, 2023
Signed-off-by: Akanksha Kumari <akankshakumari393@gmail.com>
Kanister automation moved this from Review Required to Reviewer approved Aug 9, 2023
@mergify mergify bot merged commit 04fbe86 into master Aug 9, 2023
14 checks passed
Kanister automation moved this from Reviewer approved to Done Aug 9, 2023
@mergify mergify bot deleted the handleError_resourcesUpdate branch August 9, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants