Add deprecated msg for clair

Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
DQ 2020-11-09 19:36:17 +08:00
parent 0c9faea294
commit c10a6325d8
1 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,8 @@ item=0
# notary is not enabled by default
with_notary=$false
# clair is deprecated
with_clair=$false
# trivy is not enabled by default
with_trivy=$false
# chartmuseum is not enabled by default
@ -27,6 +29,8 @@ while [ $# -gt 0 ]; do
exit 0;;
--with-notary)
with_notary=true;;
--with-clair)
with_clair=true;;
--with-trivy)
with_trivy=true;;
--with-chartmuseum)
@ -38,6 +42,12 @@ while [ $# -gt 0 ]; do
shift || true
done
if [ $with_clair ]
then
error "Clair is deprecated please remove it from installation arguments !!!"
exit 1
fi
workdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $workdir