Skip to content

Commit

Permalink
removing left over and apply secrets only
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago Pagotto <pagottoo@gmail.com>
  • Loading branch information
pagottoo committed Jul 21, 2022
1 parent 8aa96b6 commit daddbca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/ssl/ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ func getItemsToBackup(apiGroup string, apiVersion string, resourceType string, n
return files, nil
}

//func GetBackupCertificates(apiGroup string, apiVersion string, resourceTypes []string, namespace string) ([]string, error) {
// GetBackupCertificates create a backup of Certificates on AWS S3 in yaml files
func GetBackupCertificates() (string, error) {
config := configs.ReadConfig()
Expand Down Expand Up @@ -142,7 +141,9 @@ func RestoreSSL() error {
bucketName := fmt.Sprintf("k1-%s", viper.GetString("aws.hostedzonename"))
aws.DownloadBucket(bucketName, config.CertsPath)
//! We need apply secrets firstly than other resources, accordingly with cert-manager docs
pathsRestored := []string{"secrets", "certs", "clusterissuers"}
//pathsRestored := []string{"secrets", "certs", "clusterissuers"}
//! At this moment, we dont have the crds certs/clusterissuers installed on cluster
pathsRestored := []string{"secrets"}
for _, path := range pathsRestored {
log.Print(path)
//clean yaml
Expand Down

0 comments on commit daddbca

Please sign in to comment.