DoD-Platform-One / monitoring

Monitoring Stack Bootstrapper (Prometheus, Grafana)
https://repo1.dso.mil/big-bang/product/packages/monitoring
Apache License 2.0
2 stars 1 forks source link

Use busybox for cleanupProxy image #10

Open p1-repo-sync-bot[bot] opened 4 months ago

p1-repo-sync-bot[bot] commented 4 months ago

Feature Request

Why

We should be able to use an existing community image (like busybox) to perform the cleanupProxy actions.

Proposed Solution

Use the alpine container image in values.yaml:

cleanupProxy:
      image:
        registry: registry1.dso.mil
        repository: ironbank/opensource/alpinelinux/alpine
        tag: 3.19.1
        sha: ""
        pullPolicy: IfNotPresent

and update the job-patchWebhook.yaml:

- name: cleanup-proxy
  command:
  - /bin/sh
  - -c
  - |
    until wget --spider -q http://localhost:15021/healthz/ready; do echo \"Waiting for Sidecar...\"; sleep 3; done;
    echo \"Sidecar available, sleeping 10 seconds then killing istio proxy...\";
    sleep 10;
    x=$(echo $?); wget --post-data='' -qO- http://localhost:15020/quitquitquit && exit $x