Skip to content

Commit

Permalink
fixed a bug in cleaning up sidecar containers
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamna committed Dec 14, 2023
1 parent 1f39bd7 commit 500f052
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/controller/basic_authenticator/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ func removeInjectedResources(deployments []*appsv1.Deployment, secrets []string,
}
}
deploy.Spec.Template.Spec.Volumes = volumes
if deploy.Annotations != nil {
delete(deploy.Annotations, ExternallyManaged)
}
if deploy.Labels != nil {
delete(deploy.Labels, basicAuthenticatorNameLabel)
}
Expand Down

0 comments on commit 500f052

Please sign in to comment.