File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
hack/charts/cluster-api-operator/templates Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ func (src *BootstrapProvider) ConvertTo(dstRaw conversion.Hub) error {
46
46
}
47
47
48
48
dst .Spec .ManifestPatches = restored .Spec .ManifestPatches
49
+ dst .Spec .AdditionalDeployments = restored .Spec .AdditionalDeployments
49
50
if restored .Spec .Manager != nil {
50
51
dst .Spec .Manager .CRDPattern = restored .Spec .Manager .CRDPattern
51
52
}
@@ -110,6 +111,7 @@ func (src *ControlPlaneProvider) ConvertTo(dstRaw conversion.Hub) error {
110
111
}
111
112
112
113
dst .Spec .ManifestPatches = restored .Spec .ManifestPatches
114
+ dst .Spec .AdditionalDeployments = restored .Spec .AdditionalDeployments
113
115
if restored .Spec .Manager != nil {
114
116
dst .Spec .Manager .CRDPattern = restored .Spec .Manager .CRDPattern
115
117
}
@@ -174,6 +176,7 @@ func (src *CoreProvider) ConvertTo(dstRaw conversion.Hub) error {
174
176
}
175
177
176
178
dst .Spec .ManifestPatches = restored .Spec .ManifestPatches
179
+ dst .Spec .AdditionalDeployments = restored .Spec .AdditionalDeployments
177
180
if restored .Spec .Manager != nil {
178
181
dst .Spec .Manager .CRDPattern = restored .Spec .Manager .CRDPattern
179
182
}
@@ -238,6 +241,7 @@ func (src *InfrastructureProvider) ConvertTo(dstRaw conversion.Hub) error {
238
241
}
239
242
240
243
dst .Spec .ManifestPatches = restored .Spec .ManifestPatches
244
+ dst .Spec .AdditionalDeployments = restored .Spec .AdditionalDeployments
241
245
if restored .Spec .Manager != nil {
242
246
dst .Spec .Manager .CRDPattern = restored .Spec .Manager .CRDPattern
243
247
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ metadata:
40
40
" helm.sh/hook " : " post-install"
41
41
" helm.sh/hook-weight " : " 2"
42
42
" 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 }}
44
44
spec :
45
45
{{- end }}
46
46
{{- if $.Values.additionalDeployments }}
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ func customizeObjectsFn(provider operatorv1.GenericProvider) func(objs []unstruc
73
73
}))
74
74
}
75
75
76
+ //nolint:nestif
76
77
if o .GetKind () == deploymentKind {
77
78
// We need to skip the deployment customization if there are several deployments available
78
79
// and the deployment name doesn't follow "ca*-controller-manager" pattern.
You can’t perform that action at this time.
0 commit comments