From f1906d93118e1b117549233de28a8b04c52e4e50 Mon Sep 17 00:00:00 2001 From: trevorbox Date: Fri, 18 Jun 2021 13:37:09 -0700 Subject: [PATCH] Improve fetch tag in README --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index e5c698e..f248c90 100644 --- a/readme.md +++ b/readme.md @@ -269,7 +269,7 @@ Define an image and tag. For example... ```shell export imageRepository="quay.io/redhat-cop/egressip-ipam-operator" -export imageTag="$(git describe --tags --abbrev=0)" # grabs the most recent git tag, which should match the image tag +export imageTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags https://github.com/redhat-cop/egressip-ipam-operator.git '*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3)" ``` Deploy chart... @@ -375,7 +375,9 @@ oc apply -f test/namespace-Azure.yaml export operatorNamespace=egressip-ipam-operator-local # or egressip-ipam-operator oc label namespace ${operatorNamespace} openshift.io/cluster-monitoring="true" oc rsh -n openshift-monitoring -c prometheus prometheus-k8s-0 /bin/bash -curl -v -s -k -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" https://resource-locker-operator-controller-manager-metrics.${operatorNamespace}.svc.cluster.local:8443/metrics +export operatorNamespace=egressip-ipam-operator-local # or egressip-ipam-operator +curl -v -s -k -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" https://egressip-ipam-operator-controller-manager-metrics.${operatorNamespace}.svc.cluster.local:8443/metrics +exit ``` ## Releasing