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

mlp hydrate fails with specific Kustomize configurations. #70

Closed
emanuele232 opened this issue Feb 2, 2023 · 0 comments
Closed

mlp hydrate fails with specific Kustomize configurations. #70

emanuele232 opened this issue Feb 2, 2023 · 0 comments
Labels
needs triage This issue or pull request needs to be categorized

Comments

@emanuele232
Copy link
Contributor

Describe the bug
the function 'remove' in pkg/kustomize/kustomize.go fails with not checked inputs
Expected behavior
The selected element is deleted from the array.

To Reproduce
Steps to reproduce the behavior:

  1. Run 'mlp hydrate' with a path that contains a file that needs to be eliminated with its positioning index in the array greater than the len(array) at the time of evaluation

Screenshots
none.
Machine information (please complete the following information):

  • not relevant
  • not relevant
  • Version 1.1.0

Additional context
[Add any other context about the problem here.]
StackOverflow with relevant discussion
https://stackoverflow.com/questions/37334119/how-to-delete-an-element-from-a-slice-in-golang

go.dev playground with the same issue
https://go.dev/play/p/dnob56eMvB9

@emanuele232 emanuele232 added the needs triage This issue or pull request needs to be categorized label Feb 2, 2023
@JGiola JGiola closed this as completed in d379ba3 Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue or pull request needs to be categorized
Projects
None yet
Development

No branches or pull requests

1 participant