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

Add support of local environment variables in kustomize lookup plugin #786

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

yurnov
Copy link
Contributor

@yurnov yurnov commented Oct 30, 2024

SUMMARY

kustomize doesn't support an environment that makes it impossible to use HTTP_PROXY or provide some templatized parameters.

This PR is the result of the issue #783

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

kubernetes.core.kustomize lookup plugin

Copy link

Copy link

@yurnov yurnov changed the title Add support of local environment variables in kustomize lookup plugin [WIP] Add support of local environment variables in kustomize lookup plugin Oct 30, 2024
Copy link

Copy link

Copy link

Copy link

@yurnov yurnov force-pushed the support_local_env_for_kustomize branch from f67c998 to f0691f5 Compare October 30, 2024 14:13
Copy link

@yurnov yurnov changed the title [WIP] Add support of local environment variables in kustomize lookup plugin Add support of local environment variables in kustomize lookup plugin Oct 30, 2024
@yurnov
Copy link
Contributor Author

yurnov commented Oct 30, 2024

Hi @abikouo,

could you please check for workflow, some sanity tests are failing on milestone and development and it seems that it is unrelated to this PR reason.

Copy link

Copy link

Copy link

Copy link

@yurnov
Copy link
Contributor Author

yurnov commented Nov 2, 2024

Hi @abikouo,

could you please check for workflow, some sanity tests are failing on milestone and development and it seems that it is unrelated to this PR reason.

I found that the root cause of the sanity failure was switching the devel and milestone branches of Ansible to version 2.19. The test was fixed by commit deff6ee, which was included in that PR. But I think I should probably create a new PR for CI (GitHub actions) related issues to have a much cleaner history.

Copy link

@yurnov
Copy link
Contributor Author

yurnov commented Nov 2, 2024

PR #789 was created as I mentioned in previous comment, this PR should be rebased when 789 is merged.

Copy link

Copy link
Contributor

@abikouo abikouo left a comment

Choose a reason for hiding this comment

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

@yurnov thanks for working on this issue.
Some minor things need to be changed.
If possible add some integration tests case for this feature into lookup_kustomize integration test target

plugins/lookup/kustomize.py Outdated Show resolved Hide resolved
plugins/lookup/kustomize.py Outdated Show resolved Hide resolved
plugins/lookup/kustomize.py Outdated Show resolved Hide resolved
plugins/lookup/kustomize.py Outdated Show resolved Hide resolved
@yurnov
Copy link
Contributor Author

yurnov commented Nov 21, 2024

I will check what can be done to integration test

Copy link

Copy link

Copy link

Copy link

Copy link

@yurnov yurnov force-pushed the support_local_env_for_kustomize branch 3 times, most recently from 1f62e46 to 104572f Compare November 21, 2024 20:31
@yurnov yurnov force-pushed the support_local_env_for_kustomize branch from 0aa1db0 to 246773d Compare January 21, 2025 10:56
Copy link

Copy link

no feature release planned in stable-5 branch
Copy link

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.

2 participants