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

Update readme #21

Merged
merged 6 commits into from
Jan 3, 2023
Merged

Update readme #21

merged 6 commits into from
Jan 3, 2023

Conversation

volodymyrZotov
Copy link
Contributor

@volodymyrZotov volodymyrZotov commented Dec 23, 2022

Resolves #20

Mention the case that inject env variables are avaialble only in the current terminal session (the on that started the container). If try to access those env vars using new session it will return the 1password item path instead of inject value.

The workaround for that can be prepending the command with op run:

kubectl exec \
   $(kubectl get pod -l app=app-example -o jsonpath="{.items[0].metadata.name}") \
   --container app-example1 -- /op/bin/op run -- printenv USERNAME PASSWORD

Or try to use 1password-operator to create k8s secret containing 1password item and access it from any terminal session.

Mention the case that inject env variables are avaialble only in the current terminal session (the on that started the container). If try to access those env vars using new session it will return the 1password item path instead of inject value.

The workaround for that can be prepending the command with `op run`:
kubectl exec \
   $(kubectl get pod -l app=app-example -o jsonpath="{.items[0].metadata.name}") \
   --container app-example1 -- /op/bin/op run -- printenv USERNAME PASSWORD

Or try to use 1password-operator to create k8s secret containing 1password item and access it from any terminal session.
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
volodymyrZotov and others added 5 commits December 23, 2022 12:58
@edif2008 edif2008 merged commit f3f641b into main Jan 3, 2023
@edif2008 edif2008 deleted the update_readme_new_terminal_session_case branch January 3, 2023 11:35
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.

Secret not injected to env vars
2 participants