-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thiago Pagotto <pagottoo@gmail.com>
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package cmd | ||
|
||
import ( | ||
"log" | ||
|
||
"github.com/kubefirst/kubefirst/internal/ssl" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// backupSslCmd represents the backupSsl command | ||
var backupSslCmd = &cobra.Command{ | ||
Use: "backupSSL", | ||
Short: "Backup Secrets (cert-manager/certificates) to bucket kubefirst-<DOMAIN>", | ||
Long: `This command create a backupt of secrets from certmanager certificates to bucket named kubefirst-<DOMAIN> | ||
where can be used on provisioning phase with the flag --recycle-ssl`, | ||
|
||
Run: func(cmd *cobra.Command, args []string) { | ||
_, err := ssl.GetBackupCertificates() | ||
if err != nil { | ||
log.Panic(err) | ||
} | ||
}, | ||
} | ||
|
||
func init() { | ||
rootCmd.AddCommand(backupSslCmd) | ||
} |