Skip to content

Commit

Permalink
Merge pull request #17 from snapp-incubator/fix/cleanup-sidercars
Browse files Browse the repository at this point in the history
fixed a bug in cleaning up sidecar containers
  • Loading branch information
sinamna authored Dec 14, 2023
2 parents 1f39bd7 + 500f052 commit b78a50b
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 b78a50b

Please sign in to comment.