From 11cc7006959883d80cf543670426d137c1cb8d57 Mon Sep 17 00:00:00 2001 From: karmab Date: Fri, 25 Oct 2024 00:09:31 +0200 Subject: [PATCH] use official kubecompare --- ztp/scripts/kube_compare.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ztp/scripts/kube_compare.sh b/ztp/scripts/kube_compare.sh index fd0c249e..891e8988 100755 --- a/ztp/scripts/kube_compare.sh +++ b/ztp/scripts/kube_compare.sh @@ -1,9 +1,9 @@ METADATA_FILE="${1:-/root/cnf-features-deploy/ztp/kube-compare-reference/metadata.yaml}" if [ "$(which kubectl-cluster_compare)" == "" ] ; then - curl -L https://github.com/openshift/kube-compare/releases/download/v0.0.1/kube-compare_linux_amd64.tar.gz > kube-compare_linux_amd64.tar.gz - tar zxvf kube-compare_linux_amd64.tar.gz - mv kubectl-cluster_compare /usr/local/bin + podman create --name kca registry.redhat.io/openshift4/kube-compare-artifacts-rhel9:latest + podman cp kca:/usr/share/openshift/linux_amd64/kube-compare.rhel9 /usr/local/bin/kubectl_cluster-compare + podman rm -f kca chmod u+x /usr/local/bin/kubectl-cluster_compare fi if [ ! -d /root/reference ] ; then