fix: checking of whether oci helm charts are already replicated
Added "--raw" flag to skopeo inspect
stage to check whether artifacts has already been replicated.
This was raised as an issue in: !38.
Without this flag skopeo inspect
on bitnamichart/fluentd
is erroring which is being masked by the redirection.
$ if ! skopeo inspect docker://registry.cern.ch/acc/ksc/bitnamicharts/fluentd:6.5.12 > /dev/null; then echo "replicating"; else echo "exists"; fi
FATA[0002] unsupported image-specific operation on artifact with type "application/vnd.cncf.helm.config.v1+json"
replicating
$ if ! skopeo inspect --raw docker://registry.cern.ch/acc/ksc/bitnamicharts/fluentd:6.5.12 > /dev/null; then echo "replicating"; else echo "exists"; fi
exists
This should resolve the issue with the alerts for kops-replication-acc.