
Update the kubernetes patch script to include apply-active-release-only metadata. This will ensure the patches that contain the kubernetes RPMs cannot be applied to an imported platform load, which could upversion kubernetes (during an upgrade) to a version that is not supported by the running load. Change-Id: I2987f743f7708abc26ab2f67173a7e1cb9b20a4f Story: 2008055 Task: 40735 Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
52 lines
1.7 KiB
Bash
Executable File
52 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2020 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# This builds 3 patches:
|
|
# PLATFORM_PATCH_1 contains sysinv and playbookconfig components
|
|
# KUBE_PATCH_1 contains kubeadm
|
|
# KUBE_PATCH_2 contains the remainder (node, client, master, etc..)
|
|
|
|
PATH=$MY_REPO/stx/update/extras/scripts:$PATH
|
|
SEMANTIC_PATH=`dirname "$0"`
|
|
DIR=${MY_WORKSPACE}/std/rpmbuild/RPMS
|
|
|
|
# Patch names
|
|
PLATFORM_PATCH_1=PLATFORM.1
|
|
KUBE_PATCH_1=KUBE.1
|
|
KUBE_PATCH_2=KUBE.2
|
|
|
|
# Add the following options to include restart scripts for sysinv:
|
|
# --controller ${DIR}/EXAMPLE_SYSINV-1.0-*.x86_64.rpm \
|
|
# --controller-worker ${DIR}/EXAMPLE_SYSINV-1.0-*.x86_64.rpm \
|
|
# --controller-worker-lowlatency ${DIR}/EXAMPLE_SYSINV-1.0-*.x86_64.rpm \
|
|
patch_build.sh \
|
|
--id ${PLATFORM_PATCH_1} \
|
|
--reboot-required=N \
|
|
${DIR}/sysinv-1.0-*.tis.x86_64.rpm \
|
|
${DIR}/playbookconfig-1.0-*.tis.x86_64.rpm
|
|
|
|
patch_build.sh \
|
|
--id ${KUBE_PATCH_1} \
|
|
--apply-active-release-only \
|
|
--reboot-required=N \
|
|
--pre-apply ${SEMANTIC_PATH}/KUBE.1.preapply \
|
|
--pre-remove ${SEMANTIC_PATH}/KUBE.1.preremove \
|
|
--req ${PLATFORM_PATCH_1} \
|
|
${DIR}/kubernetes-kubeadm-1.18.1_upgrade-1.tis.*.x86_64.rpm
|
|
|
|
patch_build.sh \
|
|
--id ${KUBE_PATCH_2} \
|
|
--apply-active-release-only \
|
|
--reboot-required=N \
|
|
--pre-apply ${SEMANTIC_PATH}/KUBE.2.preapply \
|
|
--pre-remove ${SEMANTIC_PATH}/KUBE.2.preremove \
|
|
--req ${KUBE_PATCH_1} \
|
|
${DIR}/kubernetes-node-1.18.1_upgrade-1.tis.*.x86_64.rpm \
|
|
${DIR}/kubernetes-client-1.18.1_upgrade-1.tis.*.x86_64.rpm \
|
|
${DIR}/kubernetes-1.18.1_upgrade-1.tis.*.x86_64.rpm \
|
|
${DIR}/kubernetes-master-1.18.1_upgrade-1.tis.*.x86_64.rpm
|