Skip to content

Commit

Permalink
add info message in agent step (#60252)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangquanLi930 authored Jan 2, 2025
1 parent 87ab69e commit 82d9e00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ oc get AgentServiceConfig agent -o yaml
echo "Agent State"
oc get agent -A -o jsonpath='{range .items[*]}BMH: {@.metadata.labels.agent-install\.openshift\.io/bmh} Agent: {@.metadata.name} State: {@.status.debugInfo.state}{"\n"}{end}'

echo "HostedCluster"
oc get hostedcluster -A

echo "HostedCluster yaml"
oc get hostedcluster -A -o yaml

echo "**Guest cluster**"
export KUBECONFIG=${SHARED_DIR}/nested_kubeconfig
echo "HostedCluster ClusterOperators"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ if [ "$arch" == "x86_64" ]; then
fi
if (( $(awk 'BEGIN {print ("'"$MCE_VERSION"'" > 2.3)}') )); then /tmp/${HYPERSHIFT_NAME} version; else /tmp/${HYPERSHIFT_NAME} --version; fi

# display HyperShift Operator Version
oc get deployment -n hypershift operator -ojsonpath='{.spec.template.spec.containers[*].image}' | tee "$ARTIFACT_DIR/HyperShiftOperator-info.txt" >/dev/null; echo >> "$ARTIFACT_DIR/HyperShiftOperator-info.txt"
oc logs -n hypershift -lapp=operator --tail=-1 -c operator | head -1 | jq >> "$ARTIFACT_DIR/HyperShiftOperator-info.txt"
# display HyperShift Operator Version and MCE version
oc get "$(oc get multiclusterengines -oname)" -ojsonpath="{.status.currentVersion}" > "$ARTIFACT_DIR/mce-version"
oc get deployment -n hypershift operator -ojsonpath='{.spec.template.spec.containers[*].image}' | tee "$ARTIFACT_DIR/HyperShiftOperatorImage.txt" >/dev/null; echo > "$ARTIFACT_DIR/hypershiftoperator-image"
oc logs -n hypershift -lapp=operator --tail=-1 -c operator | head -1 | jq > "$ARTIFACT_DIR/hypershift-version"

0 comments on commit 82d9e00

Please sign in to comment.