Skip to content

jholecek-rh/insights-operator-gathering-conditions

 
 

Repository files navigation

Insights Operator Remote Configuration

This repository contains remote configuration that the Insights Operator Gathering Conditions Service serves to Insights Operators from connected OCP clusters. The remote configuration has two parts:

  • Conditional gathering rules (conditions/*) for the alert-based conditional gathering. This feature has been introduced in OCP 4.9.0 and extended in later versions (see gathered data documentation for details).
  • Data requests (remote_configurations/*) for the Rapid Recommendations features. This feature has been introduced in OCP 4.17.0. It supports container log requests at the moment.

The repository contains source files for the remote configuration. The files required by the Insights Operator Gathering Conditions Service are generated by the build.sh script.

Build

git clone https://github.com/RedHatInsights/insights-operator-gathering-conditions
cd insights-operator-gathering-conditions
# the build.sh script needs version tags
git fetch -p upstream
/bin/bash build.sh

Generated Files

The build.sh script creates the following files:

build/
    v1/
        rules.json
    v2/
        *.json
    cluster-mapping.json

build/v1/rules.json is the remote configuration for OCP 4.16 and older. It contains only the conditional gathering rules.

build/v2/*.json and build/cluster-mapping.json comprise the remote configuration for OCP 4.17 and newer. The build/cluster-mapping.json file provides a mapping between OCP version ranges and build/v2/*.json files. Each build/v2/*.json file contains conditional gathering rules and container log requests for OCP versions defined in the build/cluster-mapping.json file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 83.8%
  • Python 16.2%