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

flux diff kustomization doesn't seem to ignore files correctly #4921

Open
1 task done
ryanobjc opened this issue Aug 8, 2024 · 2 comments
Open
1 task done

flux diff kustomization doesn't seem to ignore files correctly #4921

ryanobjc opened this issue Aug 8, 2024 · 2 comments
Labels
area/diff Diff related issues and pull requests bug Something isn't working

Comments

@ryanobjc
Copy link

ryanobjc commented Aug 8, 2024

Describe the bug

While using this command:

flux diff kustomization apps --path apps/dev

I get this error:

✗ failed to generate kustomization.yaml: failed to decode Kubernetes YAML from $HOME/$REPO/apps/dev/.sops.yaml: missing Resource metadata <nil> <nil>

I tried to use --ignore-paths with various patterns including:
.sops.yaml
**/.sops.yaml
$PWD/apps/dev/.sops.yaml

But none of those worked. I was able to accomplish my task by deleting the .sops.yaml file then restoring it via git afterwards.

Steps to reproduce

Create a kustomization in a standard format, and include a .sops.yaml which should be normally ignored, and it doesn't.

Expected behavior

The file should be ignored and the diff should work.

Screenshots and recordings

No response

OS / Distro

macOS 14.4.1

Flux version

2.2.3, 2.3

Flux check

N/a

Git provider

No response

Container Registry provider

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@steinwelberg
Copy link

I have exactly the same problem. No matter how I exclude the files that I want excluded, they are not ignored.

@stefanprodan stefanprodan added bug Something isn't working area/diff Diff related issues and pull requests labels Nov 14, 2024
@stefanprodan
Copy link
Member

Hey @matheuscscp could you please look into this? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/diff Diff related issues and pull requests bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants