mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

Added LABELs (name, vendor, version, release, summary, description) to all plugins and updated scripts/set-version.sh script to include the LABEL version='<image-tag>' by passing TAG parameter to make set-version TAG=<image-tag> Signed-off-by: chaitanya1731 <chaitanya.kulkarni@intel.com>
21 lines
723 B
Bash
Executable File
21 lines
723 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright 2019-2021 Intel Corporation.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Invoke this script with a version as parameter
|
|
# and it will update all hard-coded image versions
|
|
# in the source code.
|
|
#
|
|
# Adapted from https://github.com/intel/pmem-csi/
|
|
|
|
if [ $# != 1 ] || [ "$1" = "?" ] || [ "$1" = "--help" ]; then
|
|
echo "Usage: $0 <image version>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
for file in $(git grep -l '^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:\|version=' Makefile deployments demo/*fpga*.yaml pkg/controllers/*/*_test.go build/docker/*.Dockerfile); do
|
|
sed -i -e "s;\(^TAG?*=\|intel/crypto-perf:\|intel/opae-nlb-demo:\|intel/intel-[^ ]*:\|version=\)[^ \"]*;\1$1;g" "$file";
|
|
done
|