Skip to content

Commit

Permalink
Remove default value
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Dec 11, 2024
1 parent 5a1ffb0 commit c35cbe3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions helm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,9 @@ func (h *Helm) Lint(
ctx context.Context,
// directory that contains the Helm Chart
directory *dagger.Directory,
// Helm lint arguments
// +optional
// +default=[]
args []string,
// Helm lint arguments
// +optional
args []string,
) (string, error) {
c := h.createContainer(directory)
out, err := c.WithExec([]string{"sh", "-c", fmt.Sprintf("%s %s", "helm lint", strings.Join(args, " "))}).Stdout(ctx)
Expand All @@ -201,9 +200,9 @@ func (h *Helm) createContainer(
// directory that contains the Helm Chart
directory *dagger.Directory,
) *dagger.Container {
return dag.Container().
From(HELM_IMAGE).
WithDirectory("/helm", directory, dagger.ContainerWithDirectoryOpts{Owner: "1001"}).
WithWorkdir("/helm").
WithoutEntrypoint()
return dag.Container().
From(HELM_IMAGE).
WithDirectory("/helm", directory, dagger.ContainerWithDirectoryOpts{Owner: "1001"}).
WithWorkdir("/helm").
WithoutEntrypoint()
}

0 comments on commit c35cbe3

Please sign in to comment.