Skip to content

Kustomize sub directory #40

@edwardzjl

Description

@edwardzjl

I'm trying to run kubectl kustomize on a sub directory of my project, but I'm encountering an issue when passing the directory as an argument:

- uses: actions-hub/[email protected]
  with:
    args: kustomize ./manifests/overlays/istio

However, I receive the following error:

sh: manifests/overlays/istio: unknown operand
No authorization data found. Please provide KUBE_CONFIG or KUBE_HOST variables. Exiting...

I found that #12 is related, but the fix only checks for string equality, which means I can't pass a directory argument directly after the kustomize keyword.

Additionally, the uses directive in GitHub Actions does not support setting the working-directory.

Would it be possible to update the condition to use a regex pattern for better flexibility with the kustomize argument? For example:

elif [[ $INPUT_ARGS =~ ^kustomize.* ]]; then :;

This change would allow support for passing directories as arguments without encountering the current issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions