diff --git a/cmd/manager/operator.go b/cmd/manager/operator.go index 75035d16e..fcfa9e945 100644 --- a/cmd/manager/operator.go +++ b/cmd/manager/operator.go @@ -659,7 +659,7 @@ func handleServiceMonitor(ctx context.Context, cfg *rest.Config, mClient *moncli // createNonComplianceAlert tries to create the default PrometheusRule. Returns nil. func createNonComplianceAlert(ctx context.Context, client *monclientv1.MonitoringV1Client, namespace string) error { - duration := monitoring.Duration("1s") + duration := monitoring.Duration("1s") rule := monitoring.Rule{ Alert: "NonCompliant", Expr: intstr.FromString(`compliance_operator_compliance_state{name=~".+"} > 0`), diff --git a/pkg/apis/compliance/v1alpha1/scansettingbinding_types.go b/pkg/apis/compliance/v1alpha1/scansettingbinding_types.go index 1f6df1f2f..0b3febd0d 100644 --- a/pkg/apis/compliance/v1alpha1/scansettingbinding_types.go +++ b/pkg/apis/compliance/v1alpha1/scansettingbinding_types.go @@ -20,10 +20,10 @@ type ScanSettingBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ScanSettingBindingSpec `json:"spec,omitempty"` - Profiles []NamedObjectReference `json:"profiles,omitempty"` - // +kubebuilder:default={"name":"default","kind": "ScanSetting", "apiGroup": "compliance.openshift.io/v1alpha1"} - SettingsRef *NamedObjectReference `json:"settingsRef,omitempty"` + Spec ScanSettingBindingSpec `json:"spec,omitempty"` + Profiles []NamedObjectReference `json:"profiles,omitempty"` + // +kubebuilder:default={"name":"default","kind": "ScanSetting", "apiGroup": "compliance.openshift.io/v1alpha1"} + SettingsRef *NamedObjectReference `json:"settingsRef,omitempty"` // +optional Status ScanSettingBindingStatus `json:"status,omitempty"` }