Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[helm] Remove helm.sh/helm/v3 package #281

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

ricoberger
Copy link
Member

We decided to remove the "helm.sh/helm/v3" package in the Helm plugin.
Instead we are using a custom logic to get the Helm releases from the
Kubernetes API. These custom logic involves the following steps:

  • List all secrets with "owner=helm"
  • Loop through all returned secrets and decode the "release" key
  • Decompress the decoded release data an parse them into the Release
    struct

We decided to use our own logic, because we had some problems with the
official Helm package and our cluster logic. This leads to a not so
satisfying experience during the development.

Besides that we are now displaying the "values.yaml" file in the
templates section in the frontend and we are using "isInline" for the
Alert component when it is rendered in a Card component.

@ricoberger ricoberger force-pushed the helm-remove-helm-package-as-dependency branch from ff4aa37 to 9fafd0a Compare January 6, 2022 08:16
We decided to remove the "helm.sh/helm/v3" package in the Helm plugin.
Instead we are using a custom logic to get the Helm releases from the
Kubernetes API. These custom logic involves the following steps:

- List all secrets with "owner=helm"
- Loop through all returned secrets and decode the "release" key
- Decompress the decoded release data an parse them into the Release
  struct

We decided to use our own logic, because we had some problems with the
official Helm package and our cluster logic. This leads to a not so
satisfying experience during the development.

Besides that we are now displaying the "values.yaml" file in the
templates section in the frontend and we are using "isInline" for the
Alert component when it is rendered in a Card component.
@ricoberger ricoberger force-pushed the helm-remove-helm-package-as-dependency branch from 9fafd0a to 52cc9be Compare January 6, 2022 08:19
@codecov-commenter
Copy link

Codecov Report

Merging #281 (52cc9be) into main (a2d533d) will increase coverage by 1.48%.
The diff coverage is 96.80%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #281      +/-   ##
==========================================
+ Coverage   42.96%   44.45%   +1.48%     
==========================================
  Files          94       95       +1     
  Lines        7927     7968      +41     
==========================================
+ Hits         3406     3542     +136     
+ Misses       4490     4394      -96     
- Partials       31       32       +1     
Impacted Files Coverage Δ
pkg/api/clusters/cluster/cluster.go 29.79% <ø> (+1.10%) ⬆️
plugins/helm/pkg/client/helpers.go 90.00% <90.00%> (ø)
plugins/helm/helm.go 100.00% <100.00%> (+33.66%) ⬆️
plugins/helm/pkg/client/client.go 100.00% <100.00%> (+100.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2d533d...52cc9be. Read the comment docs.

@ricoberger ricoberger merged commit 148ec9d into main Jan 6, 2022
@ricoberger ricoberger deleted the helm-remove-helm-package-as-dependency branch January 6, 2022 08:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants