Skip to content

Commit

Permalink
Make NOTES.txt check optional
Browse files Browse the repository at this point in the history
Also change command help message to say "NOTES.txt"
  • Loading branch information
trgeiger committed Apr 19, 2024
1 parent 0275f68 commit 7534f8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/chartverifier/checks/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const (
APIVersion2 = "v2"
ReadmeExist = "Chart has a README"
ReadmeDoesNotExist = "Chart does not have a README"
NotesExist = "Chart does contain NOTES"
NotesDoesNotExist = "Chart does not contain NOTES"
NotesExist = "Chart does contain NOTES.txt"
NotesDoesNotExist = "Chart does not contain NOTES.txt"
NotHelm3Reason = "API version is not V2, used in Helm 3"
Helm3Reason = "API version is V2, used in Helm 3"
TestTemplatePrefix = "templates/tests/"
Expand Down
2 changes: 1 addition & 1 deletion internal/chartverifier/profiles/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func getDefaultProfile(msg string) *Profile {
{Name: fmt.Sprintf("%s/%s", CheckVersion10, apiChecks.ChartTesting), Type: apiChecks.MandatoryCheckType},
{Name: fmt.Sprintf("%s/%s", CheckVersion10, apiChecks.RequiredAnnotationsPresent), Type: apiChecks.MandatoryCheckType},
{Name: fmt.Sprintf("%s/%s", CheckVersion10, apiChecks.SignatureIsValid), Type: apiChecks.MandatoryCheckType},
{Name: fmt.Sprintf("%s/%s", CheckVersion10, apiChecks.HasNotes), Type: apiChecks.MandatoryCheckType},
{Name: fmt.Sprintf("%s/%s", CheckVersion10, apiChecks.HasNotes), Type: apiChecks.OptionalCheckType},
}

return &profile
Expand Down
2 changes: 1 addition & 1 deletion internal/profileconfig/profiles/profile-partner-1.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ checks:
- name: v1.0/signature-is-valid
type: Mandatory
- name: v1.0/has-notes
type: Mandatory
type: Optional

3 changes: 1 addition & 2 deletions internal/profileconfig/profiles/profile-redhat-1.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ checks:
- name: v1.0/signature-is-valid
type: Mandatory
- name: v1.0/has-notes
type: Mandatory

type: Optional

0 comments on commit 7534f8c

Please sign in to comment.