File tree Expand file tree Collapse file tree
config/cluster/elasticache Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,19 +155,19 @@ func Configure(p *config.Provider) { //nolint:gocyclo
155155
156156 cmi := v1beta1.ClusterModeInitParameters {}
157157 if srcTyped .Spec .InitProvider .NumNodeGroups != nil {
158- cm .NumNodeGroups = srcTyped .Spec .InitProvider .NumNodeGroups
158+ cmi .NumNodeGroups = srcTyped .Spec .InitProvider .NumNodeGroups
159159 }
160160 if srcTyped .Spec .InitProvider .ReplicasPerNodeGroup != nil {
161- cm .ReplicasPerNodeGroup = srcTyped .Spec .InitProvider .ReplicasPerNodeGroup
161+ cmi .ReplicasPerNodeGroup = srcTyped .Spec .InitProvider .ReplicasPerNodeGroup
162162 }
163163 targetTyped .Spec .InitProvider .ClusterMode = []v1beta1.ClusterModeInitParameters {cmi }
164164
165165 cmo := v1beta1.ClusterModeObservation {}
166166 if srcTyped .Status .AtProvider .NumNodeGroups != nil {
167- cm .NumNodeGroups = srcTyped .Status .AtProvider .NumNodeGroups
167+ cmo .NumNodeGroups = srcTyped .Status .AtProvider .NumNodeGroups
168168 }
169169 if srcTyped .Status .AtProvider .ReplicasPerNodeGroup != nil {
170- cm .ReplicasPerNodeGroup = srcTyped .Status .AtProvider .ReplicasPerNodeGroup
170+ cmo .ReplicasPerNodeGroup = srcTyped .Status .AtProvider .ReplicasPerNodeGroup
171171 }
172172 targetTyped .Status .AtProvider .ClusterMode = []v1beta1.ClusterModeObservation {cmo }
173173 return nil
You can’t perform that action at this time.
0 commit comments