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

feat: add exec-plugin argument and environment support #5316

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xvzf
Copy link

@xvzf xvzf commented Sep 5, 2023

Previously, the documentation lead to think that this is working, but
it's not been implemented.

This PR is fixing this!

I've not seen any test cases for the exec plugins, can you point me to them please?

Signed-off-by: Matthias Riegler matthias.riegler@ankorstore.com

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2023
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 5, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @xvzf!

It looks like this is your first PR to kubernetes-sigs/kustomize 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/kustomize has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 5, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @xvzf. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 5, 2023
@xvzf xvzf marked this pull request as ready for review September 5, 2023 15:30
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 5, 2023
@xvzf xvzf force-pushed the feat/add-alpha-plugin-exec-arg-and-env-support branch from 3ff3bf5 to 570c8bc Compare September 5, 2023 15:32
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 5, 2023
@xvzf xvzf force-pushed the feat/add-alpha-plugin-exec-arg-and-env-support branch 2 times, most recently from fe9c6e7 to 4311450 Compare September 5, 2023 15:35
@koba1t
Copy link
Member

koba1t commented Sep 6, 2023

@xvzf

We have already decided not to add environment support in kustomize.

We have the list of Eschewed Features that this project will not support. Please check this page before considering requests for any new feature.

If I misunderstood your request, Feel free to open a feature request issue and tell me what you want.

/close

@k8s-ci-robot
Copy link
Contributor

@koba1t: Closed this PR.

In response to this:

@xvzf

We have already decided not to add environment support in kustomize.

We have the list of Eschewed Features that this project will not support. Please check this page before considering requests for any new feature.

If I misunderstood your request, Feel free to open a feature request issue and tell me what you want.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@xvzf
Copy link
Author

xvzf commented Sep 7, 2023

Hey @koba1t this is not adding environment support to kustomize but implement the functionality that's already there for container-based functions.
I'll open an issue later today with some examples

@xvzf
Copy link
Author

xvzf commented Oct 10, 2023

Hey @koba1t - it took a long time, had to work on other things -- the issue is up now!

@xvzf
Copy link
Author

xvzf commented Nov 14, 2023

@koba1t is there a way to re-open the PR?

@koba1t
Copy link
Member

koba1t commented Nov 15, 2023

Currently, I am talking with other maintainers.
Please wait a little more time to make a decision for this feature.

@xvzf
Copy link
Author

xvzf commented Nov 20, 2023

thanks for the feedback @koba1t!

@koba1t
Copy link
Member

koba1t commented Nov 23, 2023

/reopen

@k8s-ci-robot k8s-ci-robot reopened this Nov 23, 2023
@k8s-ci-robot
Copy link
Contributor

@koba1t: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: xvzf
Once this PR has been reviewed and has the lgtm label, please assign natasha41575 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Previously, the documentation lead to think that this is working, but
it's not been implemented.

This PR is fixing this

Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
@xvzf
Copy link
Author

xvzf commented Nov 27, 2023

will. fix the listing tmrw!

Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
@xvzf xvzf force-pushed the feat/add-alpha-plugin-exec-arg-and-env-support branch from 4311450 to 1918d08 Compare November 30, 2023 16:01
@k8s-ci-robot
Copy link
Contributor

This PR has multiple commits, and the default merge method is: merge.
You can request commits to be squashed using the label: tide/merge-method-squash

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@xvzf
Copy link
Author

xvzf commented Dec 11, 2023

Hey @koba1t is there anything missing I should add? :)

@@ -303,6 +303,28 @@ func (r RunFns) mergeContainerEnv(envs []string) []string {
return declarative.Raw()
}

// mergeExecEnv will merge the envs specified by command line (imperative) and config
// file (declarative). If they have same key, the imperative value will be respected.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xvzf if the same value is specified through command line and env var, would it make sense to error out instead?

I'm fine with any option that makes sense from the user perspective - as this is a one off case with exec functions. We would just need to explicitly specify docs on the stance we take.

cc: @koba1t @natasha41575

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey

It's the same behavior as for the container env merging (aka CLI flag takes precedence). Afaik it's the default behavior in most applications. Open to change/document it though!

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 3, 2024
@xvzf
Copy link
Author

xvzf commented Apr 5, 2024

@varshaprasad96 @koba1t is there any chance this is getting merged? :)

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants