Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoOperatorNamespace error = errors.New("operator namespace not detected") ErrNoOperatorName error = errors.New("operator name not detected") ErrNoUserAgent error = errors.New("user agent prefix not detected") ErrInsightsDisabled error = errors.New("no Insights URL is available") )
Functions ¶
This section is empty.
Types ¶
type InsightsIntegration ¶
type InsightsIntegration struct {
Manager ctrl.Manager
Log *logr.Logger
common.OSUtils
// contains filtered or unexported fields
}
InsightsIntegration allows your operator to manage a proxy for sending Red Hat Insights reports from Java-based workloads to the Runtimes Inventory service.
func NewInsightsIntegration ¶
func NewInsightsIntegration(mgr ctrl.Manager, operatorName string, operatorNamespace string, userAgentPrefix string, log *logr.Logger) *InsightsIntegration
NewInsightsIntegration creates a new InsightsIntegration using your operator's Manager and logger. Provide the operator's name and namespace, which can be discovered using the Kubernetes downward API. The User Agent prefix must be an approved UHC Auth Proxy prefix.
func (*InsightsIntegration) GetProxyURL ¶
func (i *InsightsIntegration) GetProxyURL() (*url.URL, error)
func (*InsightsIntegration) Setup ¶
func (i *InsightsIntegration) Setup() error
Setup adds a controller to your manager, which creates and manages the HTTP proxy container that workloads may use to send reports to Red Hat Insights.
Click to show internal directories.
Click to hide internal directories.