summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/components/sdc-onboarding-be/values.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-10-11 12:57:09 +0000
committerGerrit Code Review <gerrit@onap.org>2021-10-11 12:57:09 +0000
commitf9e262c8ed2f4d5b748c7f7e31e7477e80ef57fa (patch)
tree15bafc31bf4997fd3b3a997827245b935dafa64c /kubernetes/sdc/components/sdc-onboarding-be/values.yaml
parent05da03322b0a0539e85819bd84cffd2c7a9c3c1e (diff)
parent5daee105c4c7eae6d361b8d6247492d5a8eb99b8 (diff)
Merge "[SDC] Update SDC to 1.9.3"
Diffstat (limited to 'kubernetes/sdc/components/sdc-onboarding-be/values.yaml')
-rw-r--r--kubernetes/sdc/components/sdc-onboarding-be/values.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/kubernetes/sdc/components/sdc-onboarding-be/values.yaml b/kubernetes/sdc/components/sdc-onboarding-be/values.yaml
index aa7d535db3..1bce6b17af 100644
--- a/kubernetes/sdc/components/sdc-onboarding-be/values.yaml
+++ b/kubernetes/sdc/components/sdc-onboarding-be/values.yaml
@@ -59,8 +59,8 @@ certInitializer:
# Application configuration defaults.
#################################################################
# application image
-image: onap/sdc-onboard-backend:1.9.0
-onboardingInitImage: onap/sdc-onboard-cassandra-init:1.9.0
+image: onap/sdc-onboard-backend:1.9.3
+onboardingInitImage: onap/sdc-onboard-cassandra-init:1.9.3
pullPolicy: Always
# flag to enable debugging - application support required
#888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
#!/bin/bash
# Copyright 2019 AT&T Intellectual Property. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

KUBE_VERSION=$1
LOCATION=$2

COMMANDS="kubectl helm make java az"

CLI_MAJOR="2"
CLI_MINOR="0"
CLI_INC="75"

function check_requirement() {
  req=$1

  command -v $1
  if [ $? -ne 0 ]; then
    echo "$1 was not found on machine. Please install it before proceeding."
    exit 1
  fi
}

echo "Checking requirements are installed..."

for req in $COMMANDS; do
  check_requirement $req
done

echo "Checking K8 version is available in Azure..."
if [ -z "$KUBE_VERSION" ]; then
  echo "K8 version not provided in cloud.conf."
  echo "Update cloud.conf with the desired version."
  exit 1
fi

if [ -z "$LOCATION" ]; then
  echo "Location not provided in cloud.conf."
  echo "Update cloud.conf with the desired location."
  exit 1
fi

supported_k8_versions=`az aks get-versions --location $LOCATION --output json --query 'orchestrators[].orchestratorVersion'`
echo $supported_k8_versions | grep -q $KUBE_VERSION
if [ $? -ne 0 ]; then
  echo "K8 version $KUBE_VERSION is not supported in location $LOCATION"
  echo "The supported versions are $supported_k8_versions."
  echo "Update cloud.conf with a supported version."
  exit 1
fi

echo "Checking Azure CLI version..."
installed_cli_version=`az --version | grep -e "^azure-cli"  | awk '{print $2}'`
installed_major=`echo $installed_cli_version | cut -d "." -f 1`
installed_minor=`echo $installed_cli_version | cut -d "." -f 2`
installed_inc=`echo $installed_cli_version | cut -d "." -f 3`

if [ $installed_major -lt $CLI_MAJOR ]; then
  echo "Azure cli version is out of date."
  echo "Major version required is $CLI_MAJOR but $installed_major is installed."
  exit 1
fi

if [ $installed_minor -lt $CLI_MINOR ]; then
  echo "Azure cli version is out of date."
  echo "Minor version required is $CLI_INC but $installed_inc is installed."
  exit 1
fi

if [ $installed_inc -lt $CLI_INC ]; then
  echo "Azure cli version is out of date."
  echo "Incremental version required is $CLI_INC but $installed_inc is installed."
  exit 1
fi

echo "Checking kubectl version is compatible with the K8 version..."
kubectl_version=`kubectl version --client --short | awk '{print $3}'`
kubectl_major=`echo $kubectl_version | cut -d "." -f 1 | sed 's/v//'`
kubectl_minor=`echo $kubectl_version | cut -d "." -f 2`
k8_major=`echo $KUBE_VERSION | cut -d "." -f 1`
k8_minor=`echo $KUBE_VERSION | cut -d "." -f 2`

if [ $kubectl_major -ne $k8_major ]; then
  echo "kubectl major version $kubectl_major doesn't equal kubernetes server version $k8_major"
  exit 1
fi

minor_difference=`echo "$(($kubectl_minor-$k8_minor))"`
minor_abs_diff=`echo $minor_difference | tr -d -`
if [ $minor_abs_diff -gt 1 ]; then
  echo "The difference between k8 minor version $KUBE_VERSION and kubectl minor version $kubectl_version is greater than 1"
  echo "Kubernetes supports kubectl within 1 minor version."
  exit 1
fi

echo "All requirements satisfied..."
sleep 1