Skip to content

Commit

Permalink
Pick default value for KubeLB Gateway API from datacenter (#7055)
Browse files Browse the repository at this point in the history
Signed-off-by: Waleed Malik <[email protected]>
  • Loading branch information
ahmedwaleedmalik authored Jan 1, 2025
1 parent bb9cc1e commit bb87cb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/web/src/app/wizard/step/cluster/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ export class ClusterStepComponent extends StepBase implements OnInit, ControlVal
this.isDualStackAllowed = !!datacenter.spec.ipv6Enabled;
this.isKubeLBEnabled = !!(datacenter.spec.kubelb?.enforced || datacenter.spec.kubelb?.enabled);
this.isKubeLBEnforced = !!datacenter.spec.kubelb?.enforced;

if (datacenter.spec.kubelb?.enableGatewayAPI) {
this.form.get(Controls.KubeLBEnableGatewayAPI).setValue(true);
}

if (datacenter.spec.kubelb?.useLoadBalancerClass) {
this.form.get(Controls.KubeLBUseLoadBalancerClass).setValue(true);
}

this.isCSIDriverDisabled = datacenter.spec.disableCsiDriver;
this.enforcedAuditWebhookSettings = datacenter.spec.enforcedAuditWebhookSettings;
this._enforce(Controls.AuditLogging, datacenter.spec.enforceAuditLogging);
Expand Down

0 comments on commit bb87cb5

Please sign in to comment.