fix: return supported values for flags when calling Values.Type()
Signed-off-by: Jesper Axelsen <jesperbaxelsen@gmail.com> Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
committed by
Matheus Pimenta
parent
b33f173670
commit
28f5b553a2
@@ -52,9 +52,9 @@ func (a *CRDsPolicy) Set(str string) error {
|
||||
}
|
||||
|
||||
func (a *CRDsPolicy) Type() string {
|
||||
return "crds"
|
||||
return strings.Join(supportedCRDsPolicies, "|")
|
||||
}
|
||||
|
||||
func (a *CRDsPolicy) Description() string {
|
||||
return fmt.Sprintf("upgrade CRDs policy, available options are: (%s)", strings.Join(supportedCRDsPolicies, ", "))
|
||||
return "upgrade CRDs policy"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user