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

Support disable_keep_alives #376

Merged
merged 3 commits into from
Jul 28, 2022
Merged

Support disable_keep_alives #376

merged 3 commits into from
Jul 28, 2022

Commits on Jul 28, 2022

  1. Support disable_keep_alives

    Follow up for hashicorp/vault#16479, which
    added support for `disable_keep_alives`
    
    This is used very similarly to `disable_idle_connections`, which was
    added in #366
    
    This adds the `disable_keep_alives` setting into the injected agent's
    config, which can be specified per pod:
    
    ```yaml
    metadata:
      annotations:
        vault.hashicorp.com/agent-disable-keep-alives: "auto-auth,caching,templating"
    ```
    
    globally in the injector through the helm command when deploying:
    
    ```sh
    helm install vault hashicorp/vault \
      --set injector.extraEnvironmentVars.AGENT_INJECT_DISABLE_KEEP_ALIVES="auto-auth\,caching\,templating"
    ```
    
    or through the helm `values.yaml` file:
    
    ```yaml
    injector:
      extraEnvironmentVars:
        AGENT_INJECT_DISABLE_KEEP_ALIVES: "auto-auth,caching,templating"
    ```
    
    This was copied almost verbatim from #366, so thanks @tvoran :)
    
    Co-authored-by: Theron Voran <theron@hashicorp.com>
    Christopher Swenson and tvoran committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    cdf471f View commit details
    Browse the repository at this point in the history
  2. Update agent-inject/agent/agent.go

    Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
    Christopher Swenson and tvoran authored Jul 28, 2022
    Configuration menu
    Copy the full SHA
    925aa90 View commit details
    Browse the repository at this point in the history
  3. Add changelog entry

    Christopher Swenson committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    5a1d907 View commit details
    Browse the repository at this point in the history