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

Ensure that remote mounts work with --replace (and other fixes) #3500

Merged
merged 8 commits into from
Feb 4, 2024

Conversation

thallgren
Copy link
Member

This PR refactors some parts of the implementation for the --replace flag. In particular:

  • Replacing means replacing the container image for something that sleeps forever.
  • A --replace will no longer affect intercepts on other containers.
  • The --replace option can be used interchangeably, without uninstalling the agent.

This is necessary to make an improvement in the pro-agent's version of
the call, where the context will be needed.

Signed-off-by: Thomas Hallgren <[email protected]>
This commit changes the code that enables the `--replace` flag, so that
the app-container is kept in place, but with an image that will just
sleep infinitely and has no probes. The image is needed so that its
mounts and environment is visible to the traffic-agent container
generator.

Signed-off-by: Thomas Hallgren <[email protected]>
A `telepresence intercept --replace` will no longer switch the mode of
the intercepted workload, forcing all subsequent intercepts on that
workload to use `--replace` until the agent is uninstalled. Instead,
`--replace` can be used interchangeably just like any other intercept
flag.

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
@thallgren thallgren linked an issue Feb 2, 2024 that may be closed by this pull request
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
Also improves reliability of CapturePodLogs.

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 2, 2024
When a change is made to an entry in the `telepresence-agents`
comfigmap, then the pods of the targeted workflow will be restarted.
It is then of some importance that they no longer participate as
agents for intercepts.

This commit ensures that such pods become inactive, which means that
they will no longer be able to modify intercepts with a call to
`ReviewIntercept`.

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 3, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 3, 2024
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 3, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 3, 2024
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 3, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 3, 2024
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 4, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Feb 4, 2024
@thallgren thallgren merged commit b84fee6 into release/v2 Feb 4, 2024
18 checks passed
@thallgren thallgren deleted the thallgren/replace-fix branch February 4, 2024 08:45
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.

Volume mounts are broken for replace intercepts
1 participant