You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/v1/types_image.go
+2
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,8 @@ type RegistryLocation struct {
161
161
}
162
162
163
163
// RegistrySources holds cluster-wide information about how to handle the registries config.
164
+
//
165
+
// +kubebuilder:validation:XValidation:rule="has(self.blockedRegistries) ? !has(self.allowedRegistries) : true",message="Only one of blockedRegistries or allowedRegistries may be set"
164
166
typeRegistrySourcesstruct {
165
167
// insecureRegistries are registries which do not have a valid TLS certificates or only support HTTP connections.
0 commit comments