mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-02 16:18:50 +00:00
Add tests for CLI flags
This includes various bug fixes, especially around the area of missing names for `<kind>/<name>` formats. Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
3c1793b6c5
commit
996bfe87ff
20 changed files with 526 additions and 54 deletions
|
|
@ -39,8 +39,8 @@ func (b *RSAKeyBits) Set(str string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if bits%8 != 0 {
|
||||
return fmt.Errorf("RSA key bit size should be a multiples of 8")
|
||||
if bits == 0 || bits%8 != 0 {
|
||||
return fmt.Errorf("RSA key bit size must be a multiples of 8")
|
||||
}
|
||||
*b = RSAKeyBits(bits)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue