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

lable releases when installing/upgrading charts #196

Merged
merged 8 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add getter methods for settings & providers
  • Loading branch information
elenz97 authored and Yulin Li committed Jan 8, 2024
commit d004db50581aba0c4ebb26bce6aefc84eee7ab17
1 change: 1 addition & 0 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package helmclient
import (
"bytes"
"context"

"helm.sh/helm/v3/pkg/chartutil"

"helm.sh/helm/v3/pkg/action"
Expand Down
5 changes: 5 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package helmclient
import (
"context"

"helm.sh/helm/v3/pkg/cli"
"helm.sh/helm/v3/pkg/getter"

"helm.sh/helm/v3/pkg/action"
"helm.sh/helm/v3/pkg/chart"
"helm.sh/helm/v3/pkg/release"
Expand All @@ -23,6 +26,8 @@ type Client interface {
// RollBack is an interface to abstract a rollback action.
RollBack
GetReleaseValues(name string, allValues bool) (map[string]interface{}, error)
GetSettings() *cli.EnvSettings
GetProviders() getter.Providers
UninstallRelease(spec *ChartSpec) error
UninstallReleaseByName(name string) error
TemplateChart(spec *ChartSpec, options *HelmTemplateOptions) ([]byte, error)
Expand Down
8 changes: 8 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ type HelmClient struct {
DebugLog action.DebugLog
}

func (c *HelmClient) GetSettings() *cli.EnvSettings {
return c.Settings
}

func (c *HelmClient) GetProviders() getter.Providers {
return c.Providers
}

type GenericHelmOptions struct {
PostRenderer postrender.PostRenderer
RollBack RollBack
Expand Down
2 changes: 0 additions & 2 deletions values/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.