Skip to content

Conversation

@adi6859
Copy link
Contributor

@adi6859 adi6859 commented Mar 22, 2023

Description

This PR aims to fix the notes.txt generation error (as shown below) when charts require special KubeVersion.

Screenshot 2023-03-22 at 1 53 08 PM

Fixes AB2520

How Has This Been Tested?

  1. I have done testing this via image deployment on vm.
  2. I have checked for all possible test cases.
    Test cases are:-
    a.deployed helm chart when no apps is present.
    b. deployed same helm chart again when above app is present.
    c.deployed helm chart via gitOps.
  3. I have also done testing by applying multiple breakpoint for checking data is coming or not.

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.

@adi6859 adi6859 requested a review from vikramdevtron March 22, 2023 08:33
}
k8sServerVersion, err := discoveryClient.ServerVersion()
if err != nil {
impl.logger.Errorw("exception caught in getting k8sServerVersion", "err", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

create one function in k8s util and use that for this version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vikramdevtron vikramdevtron merged commit ed9d921 into main Mar 22, 2023
@vikramdevtron vikramdevtron deleted the notes-version-error branch March 22, 2023 12:05
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.

3 participants