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
// PluginMetadata configures common configuration shared by all plugin instances of the same name.
@@ -83,6 +85,7 @@ type SecretKeySelector struct {
83
85
}
84
86
85
87
// AdminKeyAuth defines the admin key authentication configuration.
88
+
// +kubebuilder:validation:XValidation:rule="has(self.value) != has(self.valueFrom)",message="exactly one of value or valueFrom must be specified"
86
89
typeAdminKeyAuthstruct {
87
90
// Value sets the admin key value explicitly (not recommended for production).
88
91
// +optional
@@ -101,6 +104,8 @@ type AdminKeyValueFrom struct {
101
104
}
102
105
103
106
// ControlPlaneAuth defines the authentication configuration for control plane.
107
+
//
108
+
// +kubebuilder:validation:XValidation:rule="self.type == 'AdminKey' ? has(self.adminKey) : true",message="adminKey must be specified when type is AdminKey"
0 commit comments