Skip to content

Conversation

@manish-agrawal-ai
Copy link
Contributor

@manish-agrawal-ai manish-agrawal-ai commented Mar 7, 2022

Fix of #1270

Description

Functionality added for :

  1. Linking external helm chart with devtron APP

Fixes #1270

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

By updating the helm App release with linking (API invoking)

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require 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

@manish-agrawal-ai manish-agrawal-ai changed the title [WIP] hyp_1270 Feat : Add ability to Link external helm app with devtron chart Mar 10, 2022
@manish-agrawal-ai manish-agrawal-ai changed the title Feat : Add ability to Link external helm app with devtron chart Feat : Add ability to Link external helm app with devtron chart (Fix of #1270) Mar 10, 2022
@manish-agrawal-ai manish-agrawal-ai changed the title Feat : Add ability to Link external helm app with devtron chart (Fix of #1270) Feat : Add ability to Link external helm app with devtron chart Mar 10, 2022
InstallApp(w http.ResponseWriter, r *http.Request)
GetInstalledAppsByAppStoreId(w http.ResponseWriter, r *http.Request)
DeleteInstalledApp(w http.ResponseWriter, r *http.Request)
UpdateHelmApplicationWithChartStoreLinking(w http.ResponseWriter, r *http.Request)
Copy link
Contributor

Choose a reason for hiding this comment

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

better naming.
for already linked app update are we calling same method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

name refactored.
For already app, we are not calling the same method. currently, update is happening externally to helm directly. we have to update link also. this item we have in our pipeline.

//RBAC enforcer Ends

// check if chart repo is active starts
isChartRepoActive, err := handler.appStoreDeploymentService.IsChartRepoActive(int(request.GetAppStoreApplicationVersionId()))
Copy link
Contributor

Choose a reason for hiding this comment

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

move this to service layer

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

return nil, err
}

var appInstallationMode string
Copy link
Contributor

Choose a reason for hiding this comment

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

we can directly assign the variable instead of if else

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if else is needed due to installAppVersionRequest.AppOfferingMode check in if condition

@nishant-d nishant-d changed the title Feat : Add ability to Link external helm app with devtron chart feat : Add ability to Link external helm app with devtron chart Mar 16, 2022
@nishant-d nishant-d changed the title feat : Add ability to Link external helm app with devtron chart feat: Add ability to Link external helm app with devtron chart Mar 16, 2022
@nishant-d nishant-d merged commit b55114b into main Mar 16, 2022
@nishant-d nishant-d deleted the hyp_1270 branch March 16, 2022 12:08
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.

[Hyperion] [BE] Getting error on updating the chart if it is an external chart which is deployed from terminal using helm install

3 participants