Skip to content

Commit

Permalink
Update pkg/certificates/certificate_manager.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Wozniak <[email protected]>
Signed-off-by: krishna sindhur <[email protected]>
  • Loading branch information
KrishnaSindhur and wozniakjan authored Dec 2, 2024
1 parent 254c61a commit 893fb26
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/certificates/certificate_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ type CertManager struct {

// AddCertificateRotation registers all needed services to generate the certificates and patches needed resources with the caBundle
func (cm CertManager) AddCertificateRotation(ctx context.Context, mgr manager.Manager) error {
var rotatorHooks []rotator.WebhookInfo

rotatorHooks = append(rotatorHooks, rotator.WebhookInfo{
Name: cm.APIServiceName,
Type: rotator.APIService,
})
rotatorHooks := []rotator.WebhookInfo{
{
Name: cm.APIServiceName,
Type: rotator.APIService,
},
}

if cm.EnableWebhookPatching {
rotatorHooks = append(rotatorHooks,
Expand Down

0 comments on commit 893fb26

Please sign in to comment.