Open dlarson04 opened 2 months ago
We do some validation now but we can change this
# need to validate image arch in IMAGE_ON_EDGE_CLUSTER_REGISTRY
if [[ -z $IMAGE_ON_EDGE_CLUSTER_REGISTRY ]]; then
log_fatal 1 "A value for \$IMAGE_ON_EDGE_CLUSTER_REGISTRY must be specified"
fi
lastpart=$(echo $IMAGE_ON_EDGE_CLUSTER_REGISTRY | cut -d "/" -f 3) # <arch>_anax_k8s
image_arch_in_param=$(echo $lastpart | cut -d "_" -f 1)
if [[ "$image_arch" != "$image_arch_in_param" ]]; then
log_fatal 1 "Cannot use agent image with $image_arch_in_param arch to install on $image_arch cluster, please use agent image with '$image_arch'"
fi
Is your feature request related to a problem? Please describe.
Currently a user sets
before running agent-install.sh for a cluster.. But if the target cluster is not amd64, this part of agent-install.sh won't work
agent-install.sh should intelligently build the path with the correct cluster architecture
Describe the solution you'd like.
No response
Describe alternatives you've considered
No response
Additional context.
No response