Skip to content

Commit

Permalink
fix: quick fix for old keys
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Mar 31, 2022
1 parent 7261b49 commit 444d498
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions controllers/ingresssecret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,9 @@ func (r *IngressSecretReconciler) Reconcile(req ctrl.Request) (ctrl.Result, erro
}
*/
// patch the secret to remove the old items
r.patchSecretAnnotations(ctx, ingressSecret, map[string]interface{
"fastly.amazee.io/old-public-key-sha1": nil,
"fastly.amazee.io/old-private-key-id": nil,
})
updateAnnotations = true
annotations["fastly.amazee.io/private-key-id"] = ""
annotations["fastly.amazee.io/public-key-sha1"] = ""
}
// if the secret has the ingress name attached, and the certificates have been uploaded
// patch the associated ingress to unpause it
Expand Down

0 comments on commit 444d498

Please sign in to comment.