Closed penicaudm closed 1 month ago
@penicaudm Thanks for opening this issue up and apologies for the delay. I've fixed the issue to address not being able to pass in the full version in #347 .
As for getting the latest and n-1, I would use jq
if you have the ability to use it. It would make your ability to get certain versions easier. For example:
VERSIONS=$(./falcon-container-sensor-pull.sh -u $FALCON_CLIENT_ID -s $FALCON_CLIENT_SECRET -t $image_name --list-tags)
# Get the latest and n-1 versions
LATEST_VERSION=$(echo "$VERSIONS" | jq '.tags | .[-1]')
STABLE_VERSION=$(echo "$VERSIONS" | jq '.tags | .[-2]')
When running the falcon bash pull script, the script requires [major.minor] version format for the -v flag.
This will work:
But this doesn't:
However, I'd like to use it with the following style of script:
This would make sense because the versions are returned like this:
Would it make sense for the script to accept the full version of the releases for falcon sensor for the -v parameter?
I have worked around it with this:
However I believe this would be slightly easier for automation to accept the tags of the entire versions.
Regards,