promenade/charts
Phil Sphicas 3e28b0ee2d Fix kube-apiserver anchor script rendering
This change corrects two rendering issues in the kube-apiserver anchor
script. The details and impact are mentioned below.

1. The kube-apiserver anchor script fails to clean up some files from
the host, because the path is incomplete. For example, the cleanup()
function of the script includes:

    rm -f "/host/acconfig.yaml"

instead of

    rm -f "/host/etc/kubernetes/apiserver/acconfig.yaml"

2. A recent change to allow fileless command options [0] caused some
extraneous lines to end up in the script. For example, the rendered
script includes:

    snapshot_files() {
        cp "/tmp/etc/" "${SNAPSHOT_DIR}/etc/kubernetes/apiserver/"
    }

    compare_copy_files() {
        SRC="${SNAPSHOT_DIR}/etc/kubernetes/apiserver/"
        DEST="/host/etc/kubernetes/apiserver/"
        if [ ! -e "${DEST}" ] || ! cmp -s "${SRC}" "${DEST}"; then
            mkdir -p $(dirname "${DEST}")
            cp "${SRC}" "${DEST}"
            chmod go-rwx "${DEST}"
        fi
    }

    cleanup() {
        rm -f "/host/"
    }

Since the 'cp' and 'rm' commands don't include '-r', this is actually
non-impacting, other than some log messages.

0: https://review.opendev.org/c/airship/promenade/+/788092

Change-Id: Id0a47727d56268d13ebb4718b8578d94272c2181
2021-08-09 16:45:24 +00:00
..
apiserver Fix kube-apiserver anchor script rendering 2021-08-09 16:45:24 +00:00
apiserver-webhook Fix deprecated warning in Promenade apiserver chart 2021-06-29 16:14:17 +00:00
controller_manager Fix deprecated warning in Promenade controller-manager chart 2021-07-14 04:15:41 +00:00
coredns CoreDNS: Uplift to 1.7.0 2021-05-03 17:30:48 +00:00
etcd Uplift etcd to v3.4.13 2021-02-11 17:23:32 +00:00
haproxy Kubernetes: Uplift to v1.20.5 2021-05-03 17:21:30 +00:00
promenade Remove hyperkube extraction functionality 2021-02-11 17:23:32 +00:00
proxy Update Proxy chart 2021-06-22 20:57:23 +00:00
scheduler Kubernetes: Uplift to v1.20.5 2021-05-03 17:21:30 +00:00
.gitignore Add initial Makefile 2017-10-31 12:46:23 -05:00