Skip to content

Commit

Permalink
output vendor labels partners to partner
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoerens committed Aug 6, 2024
1 parent cb4210a commit 6c643f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/precheck/precheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def main():
gitutils.add_output("chart_entry_name", s.chart.name)
gitutils.add_output("release_tag", s.chart.get_release_tag())
gitutils.add_output("web_catalog_only", s.is_web_catalog_only)
gitutils.add_output("category", s.chart.category)
gitutils.add_output("category", s.chart.get_vendor_label())

owners_error_msg = ""
if s.modified_owners:
Expand Down
5 changes: 5 additions & 0 deletions scripts/src/precheck/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ def register_chart_info(
def get_owners_path(self):
return f"charts/{self.category}/{self.organization}/{self.name}/OWNERS"

def get_vendor_label(self):
if self.category == "partners":
return "partner"
return self.category

def get_release_tag(self):
return f"{self.organization}-{self.name}-{self.version}"

Expand Down

0 comments on commit 6c643f4

Please sign in to comment.