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

Kustomize sub directory #40

Open
edwardzjl opened this issue Oct 9, 2024 · 0 comments
Open

Kustomize sub directory #40

edwardzjl opened this issue Oct 9, 2024 · 0 comments

Comments

@edwardzjl
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant