nsg

package
v0.0.0-...-37f2402 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricPreconfiguredNSGEnabled  = "monitor.preconfigurednsg.enabled"
	MetricFailedNSGMonitorCreation = "monitor.preconfigurednsg.failedmonitorcreation"
	MetricInvalidDenyRule          = "monitor.preconfigurednsg.invaliddenyrule"
	MetricSubnetAccessForbidden    = "monitor.preconfigurednsg.subnetaccessforbidden"
	MetricSubnetAccessResponseCode = "monitor.preconfigurednsg.subnetaccessresponsecode"
)

Variables

This section is empty.

Functions

func NewMonitor

func NewMonitor(log *logrus.Entry, oc *api.OpenShiftCluster, e env.Interface, subscriptionID string, tenantID string, emitter metrics.Emitter, dims map[string]string, wg *sync.WaitGroup, trigger <-chan time.Time) monitoring.Monitor

Types

type NSGMonitor

type NSGMonitor struct {
	// contains filtered or unexported fields
}

NSGMonitor is responsible for performing NSG rule validations when preconfiguredNSG is enabled

func (*NSGMonitor) Monitor

func (n *NSGMonitor) Monitor(ctx context.Context) []error

Monitor checks the custom NSGs customers attach to their ARO subnets

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL