Skip to content

Commit a95768e

Browse files
author
Thejas N
committed
Add omitempty to dnsmanagementpolicy
Signed-off-by: Thejas N <[email protected]>
1 parent bad89a2 commit a95768e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23723,7 +23723,7 @@
2372323723
"dnsManagementPolicy": {
2372423724
"description": "dnsManagementPolicy indicates if the lifecycle of the wildcard DNS record associated with the load balancer service will be managed by the ingress operator. It defaults to Managed. Valid values are: Managed and Unmanaged.",
2372523725
"type": "string",
23726-
"default": ""
23726+
"default": "Managed"
2372723727
},
2372823728
"providerParameters": {
2372923729
"description": "providerParameters holds desired load balancer information specific to the underlying infrastructure provider.\n\nIf empty, defaults will be applied. See specific providerParameters fields for details about their defaults.",
@@ -26408,7 +26408,7 @@
2640826408
"dnsManagementPolicy": {
2640926409
"description": "dnsManagementPolicy denotes the current policy applied on the DNS record. Records that have policy set as \"Unmanaged\" are ignored by the ingress operator. This means that the DNS record on the cloud provider is not managed by the operator, and the \"Published\" status condition will be updated to \"Unknown\" status, since it is externally managed. Any existing record on the cloud provider can be deleted at the discretion of the cluster admin.\n\nThis field defaults to Managed. Valid values are \"Managed\" and \"Unmanaged\".",
2641026410
"type": "string",
26411-
"default": ""
26411+
"default": "Managed"
2641226412
},
2641326413
"dnsName": {
2641426414
"description": "dnsName is the hostname of the DNS record",

operator/v1/types_ingress.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ type LoadBalancerStrategy struct {
393393
// +kubebuilder:default:="Managed"
394394
// +kubebuilder:validation:Optional
395395
// +optional
396-
DNSManagementPolicy LoadBalancerDNSManagementPolicy `json:"dnsManagementPolicy"`
396+
// +default="Managed"
397+
DNSManagementPolicy LoadBalancerDNSManagementPolicy `json:"dnsManagementPolicy,omitempty"`
397398
}
398399

399400
// LoadBalancerDNSManagementPolicy is a policy for configuring how

operatoringress/v1/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ type DNSRecordSpec struct {
7272
// +kubebuilder:default:="Managed"
7373
// +kubebuilder:validation:Optional
7474
// +optional
75-
DNSManagementPolicy DNSManagementPolicy `json:"dnsManagementPolicy"`
75+
// +default="Managed"
76+
DNSManagementPolicy DNSManagementPolicy `json:"dnsManagementPolicy,omitempty"`
7677
}
7778

7879
// DNSRecordStatus is the most recently observed status of each record.

0 commit comments

Comments
 (0)