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

Enhancement: Kubernetes api refactoring #3635

Merged
merged 36 commits into from
Jul 27, 2023
Merged

Conversation

Shivam-nagar23
Copy link
Member

@Shivam-nagar23 Shivam-nagar23 commented Jul 14, 2023

Description

Kubernetes Api Refactoring
Fixes #3641

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


@Shivam-nagar23 Shivam-nagar23 linked an issue Jul 17, 2023 that may be closed by this pull request
2 tasks
Version: &request.K8sRequest.ResourceIdentifier.GroupVersionKind.Version,
Kind: &request.K8sRequest.ResourceIdentifier.GroupVersionKind.Kind,
}
manifestRes, err := impl.helmAppService.GetDesiredManifest(ctx, request.AppIdentifier, resourceIdentifier)
Copy link
Member

Choose a reason for hiding this comment

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

why are we using helmservice in k8scommonservice?

Copy link
Member

Choose a reason for hiding this comment

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

we are checking desired manifest before creating resource which is written in kubelink. Need to think about ways where we can use common methods like this without breaking architecture standards

Copy link
Member Author

Choose a reason for hiding this comment

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

It was used in case of external helm app when resource health goes missing, we were fetching desired manifest from kubelink to recreate resource, have refactored it to application service with appropriate name.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 93 Code Smells

No Coverage information No Coverage information
6.0% 6.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

kartik-579
kartik-579 previously approved these changes Jul 27, 2023
@Shivam-nagar23 Shivam-nagar23 merged commit ca39627 into main Jul 27, 2023
@Shivam-nagar23 Shivam-nagar23 deleted the kubernetes-api-refactoring branch July 27, 2023 09:32
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.

enhancement: Kubernetes Api Refactoring
4 participants