Skip to content

Commit 7eb99d4

Browse files
committed
reduce CEL validation and increase localdns controller x reconciler validation
1 parent 8ab2480 commit 7eb99d4

File tree

6 files changed

+258
-1156
lines changed

6 files changed

+258
-1156
lines changed

pkg/apis/v1alpha2/aksnodeclass.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ type LocalDNS struct {
131131
}
132132

133133
// LocalDNSZoneOverride specifies DNS override configuration for a specific zone
134-
// +kubebuilder:validation:XValidation:rule="!(has(self.serveStale) && self.serveStale == 'Verify' && has(self.protocol) && self.protocol == 'ForceTCP')",message="ServeStale verify cannot be used with ForceTCP protocol"
135134
type LocalDNSZoneOverride struct {
136135
// Zone is the DNS zone this override applies to (e.g., ".", "cluster.local").
137136
// +required

pkg/apis/v1alpha2/crd_validation_cel_test.go

Lines changed: 26 additions & 575 deletions
Large diffs are not rendered by default.

pkg/apis/v1beta1/aksnodeclass.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ type LocalDNS struct {
132132
}
133133

134134
// LocalDNSZoneOverride specifies DNS override configuration for a specific zone
135-
// +kubebuilder:validation:XValidation:rule="!(has(self.serveStale) && self.serveStale == 'Verify' && has(self.protocol) && self.protocol == 'ForceTCP')",message="ServeStale verify cannot be used with ForceTCP protocol"
136135
type LocalDNSZoneOverride struct {
137136
// Zone is the DNS zone this override applies to (e.g., ".", "cluster.local").
138137
// +required

0 commit comments

Comments
 (0)