Skip to content

Commit

Permalink
Fixing insecureVerify Flag
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDuhan authored and oumkale committed Oct 9, 2024
1 parent 2402546 commit 4b475d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/secretrotator_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (r *SecretRotatorReconciler) InitializeResource(ctx context.Context, tokenD
return err
}

if secretRotator.Spec.Security.Enabled {
if secretRotator.Spec.Security.Enabled && !secretRotator.Spec.Security.InsecureSkipVerify {
// HandleCerts method copies certificates into the container
if err := resource.HandleCerts(ctx, secretRotator.Spec.Security.SecretNamespace, secretRotator.Spec.Security.CertificateSecretName, secretRotator.Name, r.Client); err != nil {
return err
Expand Down

0 comments on commit 4b475d2

Please sign in to comment.