mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 19:20:23 +00:00
deploy: Fix snapshot controller deployment
Replace image from canary to the version mentioned
in build.env
Signed-off-by: Yug <yuggupta27@gmail.com>
(cherry picked from commit 3109160fa0
)
This commit is contained in:
parent
0a6af26ea3
commit
33fece7cd5
@ -60,15 +60,18 @@ function create_or_delete_resource() {
|
|||||||
local operation=$1
|
local operation=$1
|
||||||
local namespace=$2
|
local namespace=$2
|
||||||
temp_rbac=${TEMP_DIR}/snapshot-rbac.yaml
|
temp_rbac=${TEMP_DIR}/snapshot-rbac.yaml
|
||||||
|
temp_snap_controller=${TEMP_DIR}/snapshot-controller.yaml
|
||||||
snapshotter_psp="${SCRIPT_DIR}/snapshot-controller-psp.yaml"
|
snapshotter_psp="${SCRIPT_DIR}/snapshot-controller-psp.yaml"
|
||||||
mkdir -p "${TEMP_DIR}"
|
mkdir -p "${TEMP_DIR}"
|
||||||
curl -o "${temp_rbac}" "${SNAPSHOT_RBAC}"
|
curl -o "${temp_rbac}" "${SNAPSHOT_RBAC}"
|
||||||
|
curl -o "${temp_snap_controller}" "${SNAPSHOT_CONTROLLER}"
|
||||||
sed -i "s/namespace: default/namespace: ${namespace}/g" "${temp_rbac}"
|
sed -i "s/namespace: default/namespace: ${namespace}/g" "${temp_rbac}"
|
||||||
sed -i "s/namespace: default/namespace: ${namespace}/g" "${snapshotter_psp}"
|
sed -i "s/namespace: default/namespace: ${namespace}/g" "${snapshotter_psp}"
|
||||||
|
sed -i "s/canary/${SNAPSHOT_VERSION}/g" "${temp_snap_controller}"
|
||||||
|
|
||||||
kubectl "${operation}" -f "${temp_rbac}"
|
kubectl "${operation}" -f "${temp_rbac}"
|
||||||
kubectl "${operation}" -f "${snapshotter_psp}"
|
kubectl "${operation}" -f "${snapshotter_psp}"
|
||||||
kubectl "${operation}" -f "${SNAPSHOT_CONTROLLER}" -n "${namespace}"
|
kubectl "${operation}" -f "${temp_snap_controller}" -n "${namespace}"
|
||||||
kubectl "${operation}" -f "${SNAPSHOTCLASS}"
|
kubectl "${operation}" -f "${SNAPSHOTCLASS}"
|
||||||
kubectl "${operation}" -f "${VOLUME_SNAPSHOT_CONTENT}"
|
kubectl "${operation}" -f "${VOLUME_SNAPSHOT_CONTENT}"
|
||||||
kubectl "${operation}" -f "${VOLUME_SNAPSHOT}"
|
kubectl "${operation}" -f "${VOLUME_SNAPSHOT}"
|
||||||
|
Loading…
Reference in New Issue
Block a user