#!/bin/bash # Copyright (c) 2020 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # This script will update subcloud_status table in dcmanager database # in preparation for upgrade to release 20.06. # # Subcloud load audit, introduced in release 20.06, entails creating # load status record when a subcloud is added to the database and # having the subcloud load status updated by dcmanager audit task. # The script adds a load status record for each of the existing # subclouds to ensure successful startup and operation of dcmanager # when the system controller hosts are upgraded to 20.06. # # This script can be removed in the release that follows 20.06. # NAME=$(basename $0) # The migration scripts are passed these parameters: FROM_RELEASE=$1 TO_RELEASE=$2 ACTION=$3 # This will log to /var/log/platform.log function log { logger -p local1.info $1 } function create_configmap { cat > /etc/kubernetes/coredns.yaml <