Skip to content

Commit

Permalink
use official kubecompare
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Oct 24, 2024
1 parent 9d1a6c8 commit 11cc700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ztp/scripts/kube_compare.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 11cc700

Please sign in to comment.