@@ -123,6 +123,7 @@ func updateInfraChartsFromInstall(ctx context.Context, in *v1beta1.Installation,
123
123
if in == nil {
124
124
return charts
125
125
}
126
+ serviceCIDR := util .ClusterServiceCIDR (clusterConfig , in )
126
127
127
128
for i , chart := range charts {
128
129
if chart .Name == "admin-console" {
@@ -182,11 +183,11 @@ func updateInfraChartsFromInstall(ctx context.Context, in *v1beta1.Installation,
182
183
charts [i ].Values = newVals
183
184
}
184
185
if chart .Name == "docker-registry" {
185
- if ! in .Spec .AirGap || ! in . Spec . HighAvailability {
186
+ if ! in .Spec .AirGap {
186
187
continue
187
188
}
188
189
189
- serviceCIDR := util . ClusterServiceCIDR ( clusterConfig , in )
190
+ // handle the registry IP, which will always be present in airgap
190
191
registryEndpoint , err := registry .GetRegistryServiceIP (serviceCIDR )
191
192
if err != nil {
192
193
log .Error (err , "failed to get registry endpoint" , "chart" , chart .Name )
@@ -197,7 +198,13 @@ func updateInfraChartsFromInstall(ctx context.Context, in *v1beta1.Installation,
197
198
if err != nil {
198
199
log .Error (err , "failed to set helm values service.clusterIP" , "chart" , chart .Name )
199
200
}
201
+ charts [i ].Values = newVals
202
+
203
+ if ! in .Spec .HighAvailability {
204
+ continue
205
+ }
200
206
207
+ // handle the seaweedFS endpoint, which will only be present in HA airgap
201
208
seaweedfsS3Endpoint , err := registry .GetSeaweedfsS3Endpoint (serviceCIDR )
202
209
if err != nil {
203
210
log .Error (err , "failed to get seaweedfs s3 endpoint" , "chart" , chart .Name )
0 commit comments