Skip to content

Commit

Permalink
[CHORE] adding recording rule group set (#124)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Takashi <nicolas.takashi@coralogix.com>
  • Loading branch information
nicolastakashi authored Jul 31, 2024
1 parent f2b056c commit ac9d221
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (r *RecordingRuleGroupSetReconciler) create(ctx context.Context, recordingR
response, err := r.CoralogixClientSet.
RecordingRuleGroups().
CreateRecordingRuleGroupSet(ctx, &rrg.CreateRuleGroupSet{
Name: ptr.To(recordingRuleGroupSet.Name),
Groups: recordingRuleGroupSet.Spec.ExtractRecordingRuleGroups(),
})

Expand Down Expand Up @@ -142,6 +143,7 @@ func (r *RecordingRuleGroupSetReconciler) update(ctx context.Context, recordingR
UpdateRecordingRuleGroupSet(ctx, &rrg.UpdateRuleGroupSet{
Id: remoteRecordingRule.Id,
Groups: recordingRuleGroupSet.Spec.ExtractRecordingRuleGroups(),
Name: ptr.To(recordingRuleGroupSet.Name),
}); err != nil {
return fmt.Errorf("failed to update recording rule groupSet: %w", err)
}
Expand Down

0 comments on commit ac9d221

Please sign in to comment.