mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-23 16:11:48 +00:00
implement recommended changes
Signed-off-by: h3nryc0ding <hr.richterhenry@gmail.com>
This commit is contained in:
parent
4404634331
commit
8093ad7fef
3 changed files with 9 additions and 6 deletions
|
|
@ -64,9 +64,10 @@ func (s *HelmChartSource) Set(str string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *HelmChartSource) Type() string {
|
func (s *HelmChartSource) Type() string {
|
||||||
return strings.Join(supportedHelmChartSourceKinds, "|")
|
return "<kind>/<name>.<namespace>"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *HelmChartSource) Description() string {
|
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 {
|
func (s *KustomizationSource) Type() string {
|
||||||
return strings.Join(supportedKustomizationSourceKinds, "|")
|
return "[<kind>/]<name>.<namespace>"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *KustomizationSource) Description() string {
|
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 {
|
func (s *LocalHelmChartSource) Type() string {
|
||||||
return strings.Join(supportedHelmChartSourceKinds, "|")
|
return "<kind>/<name>"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *LocalHelmChartSource) Description() string {
|
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…
Reference in a new issue