Skip to content

Commit cccdcca

Browse files
committed
Add DNS config for API, API-Int and Ingress to AWSPlatformStatus
Add DNS record types and LB IP adresses for API, API-Int and Ingress to the AWSPlatformStatus when the userConfiguredDNS feature is enabled. These values would be used to configure the in-cluster DNS and after cluster install would be available to the user to configure their custom DNS solution.
1 parent 61d9718 commit cccdcca

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

config/v1/types_infrastructure.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,18 @@ type AWSPlatformStatus struct {
433433
// +kubebuilder:validation:MaxItems=25
434434
// +optional
435435
ResourceTags []AWSResourceTag `json:"resourceTags,omitempty"`
436+
437+
// APIServerDNSConfig contains information to configure DNS for API Server.
438+
// This field will be set only when the userConfiguredDNS feature is enabled.
439+
APIServerDNSConfig []DNSConfig `json:"apiServerDNSConfig,omitempty"`
440+
441+
// InternalAPIServerDNSConfig contains information to configure DNS for the Internal API Server.
442+
// This field will be set only when the userConfiguredDNS feature is enabled.
443+
InternalAPIServerDNSConfig []DNSConfig `json:"InternalAPIServerDNSConfig,omitempty"`
444+
445+
// IngressDNSConfig contains information to configure DNS for cluster services.
446+
// This field will be set only when the userConfiguredDNS feature is enabled.
447+
IngressDNSConfig []DNSConfig `json:"ingressDNSConfig,omitempty"`
436448
}
437449

438450
// AWSResourceTag is a tag to apply to AWS resources created for the cluster.
@@ -455,6 +467,12 @@ type AWSResourceTag struct {
455467
Value string `json:"value"`
456468
}
457469

470+
// DNSConfig contains the LB IP and DNS Record type to configure a DNS entry.
471+
type DNSConfig struct {
472+
RecordType string `json:"recordType"`
473+
LBIPAddress string `json:"lbIPAddress"`
474+
}
475+
458476
// AzurePlatformSpec holds the desired state of the Azure infrastructure provider.
459477
// This only includes fields that can be modified in the cluster.
460478
type AzurePlatformSpec struct{}

0 commit comments

Comments
 (0)