Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

422 Validation Failed when uploading new version #101

Open
Alon-Katz opened this issue Jan 24, 2021 · 3 comments
Open

422 Validation Failed when uploading new version #101

Alon-Katz opened this issue Jan 24, 2021 · 3 comments

Comments

@Alon-Katz
Copy link

Hey,

Thanks for a great package, but I have a small issue.
The first time I uploaded my helm chart everything worked well, cr upload and then cr index did the job.

But now, when I am trying to upload a new version I keep getting:

422 Validation Failed [{Resource:Release Field:tag_name Code:already_exists Message:}]

Tried increasing the version and the appVersion in Chart.yaml but still keep getting the same error.
What am I doing wrong?

Thanks!

@Alon-Katz
Copy link
Author

Found the problem, the .deploy folder contained previous deployments and it tried to take them, after manually deleting them it worked, but maybe there is a better way to do this? like making the cr upload look for the latest version in the .deploy folder?

@krol3
Copy link

krol3 commented Feb 11, 2021

Validation Failed when uploading the same version to the helm chart repository.

cr upload -o GITHUB_OWNER -r helm-charts  --token XXXXXX -p .cr-release-packages
Error: error creating GitHub release: POST https://api.github.com/repos/GITHUB_OWNER/helm-charts/releases: 422 Validation Failed [{Resource:Release Field:tag_name Code:already_exists Message:}]
Usage:
  cr upload [flags]

Flags:
  -c, --commit string                  Target commit for release
  -b, --git-base-url string            GitHub Base URL (only needed for private GitHub) (default "https://api.github.com/")
  -r, --git-repo string                GitHub repository
  -u, --git-upload-url string          GitHub Upload URL (only needed for private GitHub) (default "https://uploads.github.com/")
  -h, --help                           help for upload
  -o, --owner string                   GitHub username or organization
  -p, --package-path string            Path to directory with chart packages (default ".cr-release-packages")
      --release-name-template string   Go template for computing release names, using chart metadata (default "{{ .Name }}-{{ .Version }}")
  -t, --token string                   GitHub Auth Token

@tylerauerbeck
Copy link

Sounds like this is probably resolved by #111 ? The --skip-existing flag now allows you to skip existing releases if they already exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants