Skip to content

Commit a40a7c8

Browse files
committed
fixes
1 parent 9015c1d commit a40a7c8

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

api/v1alpha1/provider_conversion.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func (src *BootstrapProvider) ConvertTo(dstRaw conversion.Hub) error {
4646
}
4747

4848
dst.Spec.ManifestPatches = restored.Spec.ManifestPatches
49+
dst.Spec.AdditionalDeployments = restored.Spec.AdditionalDeployments
4950
if restored.Spec.Manager != nil {
5051
dst.Spec.Manager.CRDPattern = restored.Spec.Manager.CRDPattern
5152
}
@@ -110,6 +111,7 @@ func (src *ControlPlaneProvider) ConvertTo(dstRaw conversion.Hub) error {
110111
}
111112

112113
dst.Spec.ManifestPatches = restored.Spec.ManifestPatches
114+
dst.Spec.AdditionalDeployments = restored.Spec.AdditionalDeployments
113115
if restored.Spec.Manager != nil {
114116
dst.Spec.Manager.CRDPattern = restored.Spec.Manager.CRDPattern
115117
}
@@ -174,6 +176,7 @@ func (src *CoreProvider) ConvertTo(dstRaw conversion.Hub) error {
174176
}
175177

176178
dst.Spec.ManifestPatches = restored.Spec.ManifestPatches
179+
dst.Spec.AdditionalDeployments = restored.Spec.AdditionalDeployments
177180
if restored.Spec.Manager != nil {
178181
dst.Spec.Manager.CRDPattern = restored.Spec.Manager.CRDPattern
179182
}
@@ -238,6 +241,7 @@ func (src *InfrastructureProvider) ConvertTo(dstRaw conversion.Hub) error {
238241
}
239242

240243
dst.Spec.ManifestPatches = restored.Spec.ManifestPatches
244+
dst.Spec.AdditionalDeployments = restored.Spec.AdditionalDeployments
241245
if restored.Spec.Manager != nil {
242246
dst.Spec.Manager.CRDPattern = restored.Spec.Manager.CRDPattern
243247
}

hack/charts/cluster-api-operator/templates/infra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ metadata:
4040
"helm.sh/hook": "post-install"
4141
"helm.sh/hook-weight": "2"
4242
"argocd.argoproj.io/sync-wave": "2"
43-
{{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager }}
43+
{{- if or $infrastructureVersion $.Values.configSecret.name $.Values.manager $.Values.additionalDeployments }}
4444
spec:
4545
{{- end }}
4646
{{- if $.Values.additionalDeployments }}

internal/controller/component_customizer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func customizeObjectsFn(provider operatorv1.GenericProvider) func(objs []unstruc
7373
}))
7474
}
7575

76+
//nolint:nestif
7677
if o.GetKind() == deploymentKind {
7778
// We need to skip the deployment customization if there are several deployments available
7879
// and the deployment name doesn't follow "ca*-controller-manager" pattern.

0 commit comments

Comments
 (0)