Skip to content

Commit

Permalink
Add method to get the vendor type of a Chart (openshift-helm-charts#386)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Goerens <mgoerens@redhat.com>
  • Loading branch information
mgoerens authored Sep 25, 2024
1 parent cdb442e commit 62e3a15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/src/submission/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ def register_chart_info(
def get_owners_path(self):
return f"charts/{self.category}/{self.organization}/{self.name}/OWNERS"

def get_vendor_type(self) -> str:
"""Derive the vendor type from the chart's category."""
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 62e3a15

Please sign in to comment.