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

fix: add applyArgs to kubectl apply function #6385

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

ManAnRuck
Copy link
Contributor

@ManAnRuck ManAnRuck commented Aug 18, 2024

What this PR does / why we need it:

Add already prepared applyArgs to KubeCtl's apply function 🫣

Which issue(s) this PR fixes:

Fixes #3839
Patches #6107

Special notes for your reviewer:
i am a little bit lost where to add some tests. can someone give me a hint? 😊

@vvagaytsev
Copy link
Collaborator

vvagaytsev commented Aug 19, 2024

Thanks for you PR, @ManAnRuck! 👍 💯

The changes look good! The tests for Kubernetes deploy action handlers can be found in kubernetesDeploy describe-spec.
See the existing tests as examples.

You can pass some applyArgs to the deploy handler and check the assertions for the result outputs and/or the state of the deployed resources.

Please let us know if you need any assistance.

@ManAnRuck ManAnRuck force-pushed the applyArgs branch 9 times, most recently from c0803ab to fadd230 Compare August 22, 2024 17:20
@vvagaytsev vvagaytsev self-requested a review September 3, 2024 12:27
@vvagaytsev vvagaytsev marked this pull request as ready for review September 3, 2024 12:28
vvagaytsev
vvagaytsev previously approved these changes Sep 3, 2024
@vvagaytsev vvagaytsev enabled auto-merge September 3, 2024 12:29
@ManAnRuck
Copy link
Contributor Author

Thank you @vvagaytsev your test looks much better than my. I was currently struggling with finding a check. First I was thinking about a --server-side, but my current approach to test it was to add a very large file which I did't like. A negative test like yours looks more promising and don't includes large files ❤️

@vvagaytsev
Copy link
Collaborator

@ManAnRuck thank you for spotting and fixing the bug! 👍

@vvagaytsev vvagaytsev added this pull request to the merge queue Sep 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 4, 2024
@vvagaytsev vvagaytsev added this pull request to the merge queue Sep 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 4, 2024
@vvagaytsev vvagaytsev added this pull request to the merge queue Sep 4, 2024
Merged via the queue into garden-io:main with commit f140ab2 Sep 4, 2024
17 checks passed
@ManAnRuck ManAnRuck deleted the applyArgs branch September 7, 2024 17:20
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

Successfully merging this pull request may close these issues.

[FEATURE]: Add server-side apply option to kubernetes action
2 participants