Fix authorize cluster patch
We should be patching the pod template metadata to force a redeploy. Also, there is no merge key on `envFrom` so the entire list is always overwritten with what is in the patch.
@@ -130,15 +130,14 @@ func (o *Options) patchDeployment(ctx context.Context, secretName, secretHash st
// patchFormat is used to patch the deployment with the secret information
const patchFormat = `
spec:
+ template:
metadata:
annotations:
"redskyops.dev/secretHash": "%s"
- template:
spec:
containers:
- name: manager
envFrom:
- secretRef:
name: "%s"
- optional: false
`
