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

Inconsistency in the field envs for secretGenerator between the CLI and this pkg #16

Closed
manute opened this issue Sep 9, 2020 · 8 comments
Assignees
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@manute
Copy link

manute commented Sep 9, 2020

Hello,

It seems that the latest version of kustomize CLI (3.8.2) requires for the field envs in a secretGenerator a list of the possibles files. And the latest version of this pkg, requires for that field, the property env with a string.

It would be nice if this pkg is aligned with the cli, and I can work on a PR if that's ok.

@nikhita
Copy link
Member

nikhita commented Sep 9, 2020

cc @seans3

@seans3
Copy link
Contributor

seans3 commented Sep 9, 2020

/assign @monopole

@monopole
Copy link
Contributor

The env field was deprecated in May of 2019, and removed in Oct 2019 ( kubernetes-sigs/kustomize#1637 ). It was replaced by envs, since the field is a list (an api fix).
It will be fixed in kubectl when kubernetes-sigs/kustomize#1500 closes.

@manute
Copy link
Author

manute commented Sep 16, 2020

Thanks for the info, I was referrering to the inconsistency running this (with k8s.io/cli-runtime v0.19.0) ->

import "k8s.io/cli-runtime/pkg/kustomize"
..

kustomize.RunKustomizeBuild(...)

Because it's failing for the field envs and only accepts env, and on the other hand the kustomize CLI (3.8.2) it's using the correct field envs.

So I'm not completely sure that the issue you mentioned will fix this.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 Dec 15, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 14, 2021
@monopole
Copy link
Contributor

This will only be fixed (in kubectl) by closing kubernetes-sigs/kustomize#1500 (targetting next release, march 2021)

/close

@k8s-ci-robot
Copy link
Contributor

@monopole: Closing this issue.

In response to this:

This will only be fixed (in kubectl) by closing kubernetes-sigs/kustomize#1500 (targetting next release, march 2021)

/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

6 participants