Skip to content

Commit 7a08ce5

Browse files
committed
Prune LBC deployment
The Deployment's label selector is changing so we must prune it to prevent upgrade failures like in the manyaddons e2e tests
1 parent 1460bea commit 7a08ce5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

upup/pkg/fi/cloudup/bootstrapchannelbuilder/bootstrapchannelbuilder.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,13 +653,14 @@ func (b *BootstrapChannelBuilder) buildAddons(c *fi.CloudupModelBuilderContext)
653653
}
654654
location := key + "/" + id + ".yaml"
655655

656-
addons.Add(&channelsapi.AddonSpec{
656+
addon := addons.Add(&channelsapi.AddonSpec{
657657
Name: fi.PtrTo(key),
658658
Selector: map[string]string{"k8s-addon": key},
659659
Manifest: fi.PtrTo(location),
660660
Id: id,
661661
NeedsPKI: true,
662662
})
663+
addon.BuildPrune = true
663664

664665
// Generate aws-load-balancer-controller ServiceAccount IAM permissions
665666
if b.UseServiceAccountExternalPermissions() {

0 commit comments

Comments
 (0)