release.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package types
  2. import "helm.sh/helm/v3/pkg/release"
  3. // Release is a helm release with a form attached
  4. type Release struct {
  5. *release.Release
  6. *PorterRelease
  7. Form *FormYAML `json:"form,omitempty"`
  8. }
  9. type PorterRelease struct {
  10. ID uint `json:"id"`
  11. WebhookToken string `json:"webhook_token"`
  12. GitActionConfig *GitActionConfig `json:"git_action_config,omitempty"`
  13. }
  14. type GetReleaseResponse Release
  15. type UpdateNotificationConfigRequest struct {
  16. Payload struct {
  17. Enabled bool `json:"enabled"`
  18. Success bool `json:"success"`
  19. Failure bool `json:"failure"`
  20. } `json:"payload"`
  21. }
  22. type CreateReleaseBaseRequest struct {
  23. RepoURL string `schema:"repo_url"`
  24. TemplateName string `json:"template_name" form:"required"`
  25. TemplateVersion string `json:"template_version" form:"required"`
  26. Values map[string]interface{} `json:"values"`
  27. Name string `json:"name" form:"required"`
  28. }
  29. type CreateReleaseRequest struct {
  30. *CreateReleaseBaseRequest
  31. ImageURL string `json:"image_url" form:"required"`
  32. GithubActionConfig *CreateGitActionConfigRequest `json:"github_action_config,omitempty"`
  33. }
  34. type CreateAddonRequest struct {
  35. *CreateReleaseBaseRequest
  36. }
  37. type RollbackReleaseRequest struct {
  38. Revision int `json:"revision" form:"required"`
  39. }
  40. type UpgradeReleaseRequest struct {
  41. Values string `json:"values" form:"required"`
  42. ChartVersion string `json:"version"`
  43. }
  44. type UpdateImageBatchRequest struct {
  45. ImageRepoURI string `json:"image_repo_uri" form:"required"`
  46. Tag string `json:"tag" form:"required"`
  47. }