Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit e1acda9

Browse files
committed
Support for cert backup across clouds
Signed-off-by: Christian Simon <[email protected]>
1 parent 3e9bfe6 commit e1acda9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

demo/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ manifests_destroy: depend manifests/$(CLOUD)-config.json ## Use kubecfg to delet
7070

7171
.PHONY: manifests_backup_certificates
7272
manifests_backup_certificates:
73-
kubectl get secrets --all-namespaces -l certmanager.k8s.io/certificate-name -o yaml > .backup-certificates.yaml
73+
kubectl get secrets --all-namespaces -l certmanager.k8s.io/certificate-name -o yaml > .backup-certificates-$(CLOUD).yaml.tmp
74+
mv .backup-certificates-$(CLOUD).yaml.tmp .backup-certificates-$(CLOUD).yaml
7475

7576
.PHONY: manifests_restore_certificates
7677
manifests_restore_certificates:
7778
kubectl create ns auth --dry-run -o yaml | kubectl apply -f -
78-
kubectl apply -f .backup-certificates.yaml
79+
kubectl apply -f .backup-certificates-$(CLOUD).yaml
7980

8081
.PHONY: verify
8182
verify: jsonnet_fmt ## verify code and vendor

0 commit comments

Comments
 (0)