implement recommended changes

Signed-off-by: h3nryc0ding <hr.richterhenry@gmail.com>
pull/5067/head
h3nryc0ding 3 weeks ago
parent 4404634331
commit 8093ad7fef

@ -64,9 +64,10 @@ func (s *HelmChartSource) Set(str string) error {
}
func (s *HelmChartSource) Type() string {
return strings.Join(supportedHelmChartSourceKinds, "|")
return "<kind>/<name>.<namespace>"
}
func (s *HelmChartSource) Description() string {
return "source that contains the chart in the format '<kind>/<name>.<namespace>'"
return fmt.Sprintf("source that contains the chart, where kind must be one of: (%s)",
strings.Join(supportedHelmChartSourceKinds, ", "))
}

@ -71,9 +71,10 @@ func (s *KustomizationSource) Set(str string) error {
}
func (s *KustomizationSource) Type() string {
return strings.Join(supportedKustomizationSourceKinds, "|")
return "[<kind>/]<name>.<namespace>"
}
func (s *KustomizationSource) Description() string {
return "source that contains the Kubernetes manifests in the format '[<kind>/]<name>.<namespace>', if kind is not specified it defaults to GitRepository"
return fmt.Sprintf("source that contains the Kubernetes manifests, where kind must be one of: (%s), if kind is not specified it defaults to %s",
strings.Join(supportedKustomizationSourceKinds, ", "), sourcev1.GitRepositoryKind)
}

@ -58,9 +58,10 @@ func (s *LocalHelmChartSource) Set(str string) error {
}
func (s *LocalHelmChartSource) Type() string {
return strings.Join(supportedHelmChartSourceKinds, "|")
return "<kind>/<name>"
}
func (s *LocalHelmChartSource) Description() string {
return "source that contains the chart in the format '<kind>/<name>'"
return fmt.Sprintf("source that contains the chart, where kind must be one of: (%s)",
strings.Join(supportedHelmChartSourceKinds, ", "))
}

Loading…
Cancel
Save