Skip to content

Commit 6b68a44

Browse files
committed
CORS-2893: capi-aws: implement preserveBootstrapIgnition
This feature is needed for customers running installs under systems with policies that prevent S3 objects from being deleted. The way this was implemented in CAPA, the provider will try to delete the objects but ignore the errors if `BestEffortDeleteObjects` is set in the `AWSCluster` bucket spec.
1 parent e45745b commit 6b68a44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/asset/manifests/aws/cluster.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ func GenerateClusterAssets(ic *installconfig.InstallConfig, clusterID *installco
142142
},
143143
},
144144
S3Bucket: &capa.S3Bucket{
145-
Name: fmt.Sprintf("openshift-bootstrap-data-%s", clusterID.InfraID),
146-
PresignedURLDuration: &metav1.Duration{Duration: 1 * time.Hour},
145+
Name: fmt.Sprintf("openshift-bootstrap-data-%s", clusterID.InfraID),
146+
PresignedURLDuration: &metav1.Duration{Duration: 1 * time.Hour},
147+
BestEffortDeleteObjects: ptr.To(ic.Config.AWS.PreserveBootstrapIgnition),
147148
},
148149
ControlPlaneLoadBalancer: &capa.AWSLoadBalancerSpec{
149150
Name: ptr.To(clusterID.InfraID + "-int"),

0 commit comments

Comments
 (0)