From c35cbe3a71bdbd7640c1a3fa7681e6682b60e34c Mon Sep 17 00:00:00 2001 From: Reto Galante Date: Wed, 11 Dec 2024 07:41:31 +0100 Subject: [PATCH] Remove default value --- helm/main.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/helm/main.go b/helm/main.go index 6e3525f..662616d 100644 --- a/helm/main.go +++ b/helm/main.go @@ -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) @@ -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() }