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: pkg/apis/uiplugin/v1alpha1/types.go
+7-6
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,8 @@ type LoggingConfig struct {
102
102
// LokiStack points to the LokiStack instance of which logs should be displayed.
103
103
// It always references a LokiStack in the "openshift-logging" namespace.
104
104
//
105
-
// +kubebuilder:validation:Required
106
-
LokiStackLokiStackReference`json:"lokiStack"`
105
+
// +kubebuilder:validation:Optional
106
+
LokiStack*LokiStackReference`json:"lokiStack"`
107
107
108
108
// LogsLimit is the max number of entries returned for a query.
109
109
//
@@ -130,9 +130,11 @@ type LoggingConfig struct {
130
130
typeLokiStackReferencestruct {
131
131
// Name of the LokiStack resource.
132
132
//
133
-
// +kubebuilder:validation:Required
134
-
// +kubebuilder:validation:MinLength:=1
135
-
Namestring`json:"name"`
133
+
// +kubebuilder:validation:Optional
134
+
Namestring`json:"name,omitempty"`
135
+
136
+
// +kubebuilder:validation:Optional
137
+
Namespacestring`json:"namespace,omitempty"`
136
138
}
137
139
138
140
// MonitoringConfig contains options for configuring the monitoring console plugin.
@@ -214,7 +216,6 @@ type IncidentsReference struct {
214
216
//
215
217
// +kubebuilder:validation:XValidation:rule="self.type == 'TroubleshootingPanel' || !has(self.troubleshootingPanel)", message="Troubleshooting Panel configuration is only supported with the TroubleshootingPanel type"
216
218
// +kubebuilder:validation:XValidation:rule="self.type == 'DistributedTracing' || !has(self.distributedTracing)", message="Distributed Tracing configuration is only supported with the DistributedTracing type"
217
-
// +kubebuilder:validation:XValidation:rule="self.type != 'Logging' || has(self.logging)", message="Logging configuration is required if type is Logging"
0 commit comments