charts-syncer
charts-syncer copied to clipboard
Exit with Exit Code 1 when charts not synced
Hello,
we've seen some errors while trying to sync charts. The pipeline succeeded although no charts are synced.
The output was:
Chart Syncer output
charts-syncer sync --from-date $HELM_DATE -c $YML_PATH > charts-syncer.log
E0514 05:17:04.998822 34 index.go:151] unable to explore target repo to check "mariadb-18.0.3" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.3: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.037871 34 index.go:151] unable to explore target repo to check "mariadb-18.0.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.079804 34 index.go:151] unable to explore target repo to check "mariadb-18.0.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.124995 34 index.go:151] unable to explore target repo to check "mariadb-18.0.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.165946 34 index.go:151] unable to explore target repo to check "mariadb-17.0.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/17.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.203401 34 index.go:151] unable to explore target repo to check "mariadb-17.0.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/17.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.242010 34 index.go:151] unable to explore target repo to check "mariadb-16.5.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.5.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.282701 34 index.go:151] unable to explore target repo to check "mariadb-16.4.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.4.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.320884 34 index.go:151] unable to explore target repo to check "mariadb-16.3.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.3.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.360698 34 index.go:151] unable to explore target repo to check "mariadb-16.3.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.3.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.400679 34 index.go:151] unable to explore target repo to check "mariadb-16.2.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.2.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.441138 34 index.go:151] unable to explore target repo to check "mariadb-16.1.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.1.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.480169 34 index.go:151] unable to explore target repo to check "mariadb-16.0.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.0.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.520196 34 index.go:151] unable to explore target repo to check "mariadb-16.0.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.564746 34 index.go:151] unable to explore target repo to check "mariadb-16.0.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.606690 34 index.go:151] unable to explore target repo to check "mariadb-15.2.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.2.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.645996 34 index.go:151] unable to explore target repo to check "mariadb-15.2.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.2.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.686383 34 index.go:151] unable to explore target repo to check "mariadb-15.1.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.1.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.724725 34 index.go:151] unable to explore target repo to check "mariadb-15.1.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.1.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.763129 34 index.go:151] unable to explore target repo to check "mariadb-15.1.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.1.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.807594 34 index.go:151] unable to explore target repo to check "tomcat-11.0.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/11.0.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.845341 34 index.go:151] unable to explore target repo to check "tomcat-11.0.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/11.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.890903 34 index.go:151] unable to explore target repo to check "tomcat-11.0.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/11.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.927686 34 index.go:151] unable to explore target repo to check "tomcat-10.17.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.17.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:05.970264 34 index.go:151] unable to explore target repo to check "tomcat-10.17.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.17.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.008197 34 index.go:151] unable to explore target repo to check "tomcat-10.17.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.17.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.047151 34 index.go:151] unable to explore target repo to check "tomcat-10.16.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.16.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.098074 34 index.go:151] unable to explore target repo to check "tomcat-10.16.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.16.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.137540 34 index.go:151] unable to explore target repo to check "tomcat-10.15.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.15.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.174938 34 index.go:151] unable to explore target repo to check "tomcat-10.14.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.14.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.213923 34 index.go:151] unable to explore target repo to check "tomcat-10.13.5" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.5: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.254987 34 index.go:151] unable to explore target repo to check "tomcat-10.13.4" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.4: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.294911 34 index.go:151] unable to explore target repo to check "tomcat-10.13.3" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.3: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.340251 34 index.go:151] unable to explore target repo to check "tomcat-10.13.2" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.402599 34 index.go:151] unable to explore target repo to check "tomcat-10.13.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.441055 34 index.go:151] unable to explore target repo to check "tomcat-10.12.1" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.12.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.484203 34 index.go:151] unable to explore target repo to check "tomcat-10.12.0" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.12.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
E0514 05:17:06.523390 34 index.go:151] unable to explore target repo to check "tomcat-10.11.11" chart: failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.11.11: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
» Syncing charts
⚠️ There were some problems loading the information of the requested charts: failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.3: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/18.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/17.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/17.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.5.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.4.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.3.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.3.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.2.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.1.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.0.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/16.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.2.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.2.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.1.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.1.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/mariadb/manifests/15.1.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/11.0.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/11.0.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/11.0.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.17.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.17.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.17.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.16.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.16.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.15.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.14.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.5: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.4: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.3: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.2: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.13.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.12.1: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.12.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
failed checking remote: HEAD https://example.local/v2/bitnami/tomcat/manifests/10.11.11: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
🎉 There are no charts out of sync!
In my opinion this should lead to an os.Exit(1) so that the pipeline run could fail but the pipeline succeeds and this a little bit misleading.
Or is this on purpose?