config

package
v0.0.0-...-ea8c238 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorConfigMapName  string = "pagerduty-config"
	OperatorName           string = "pagerduty-operator"
	OperatorNamespace      string = "pagerduty-operator"
	PagerDutyAPISecretName string = "pagerduty-api-key" // #nosec G101 -- This is a false positive
	PagerDutyAPISecretKey  string = "PAGERDUTY_API_KEY" // #nosec G101 -- This is a false positive
	PagerDutySecretKey     string = "PAGERDUTY_KEY"     // #nosec G101 -- This is a false positive
	// PagerDutyFinalizerPrefix prefix used for finalizers on resources other than PDI
	PagerDutyFinalizerPrefix string = "pd.managed.10gen.io/"
	// PagerDutyIntegrationFinalizer name of finalizer used for PDI
	PagerDutyIntegrationFinalizer string = "pd.managed.10gen.io/pagerduty"
	// LegacyPagerDutyFinalizer name of legacy finalizer, always to be deleted
	LegacyPagerDutyFinalizer string = "pd.managed.10gen.io/pagerduty"
	SecretSuffix             string = "-pd-secret"
	ConfigMapSuffix          string = "-pd-config"

	// PagerDutyUrgencyRule is the type of IncidentUrgencyRule for new incidents
	// coming into the Service. This is for the creation of NEW SERVICES ONLY
	// Supported values (by this operator) are:
	// * high - Treat all incidents as high urgency
	// * severity_based - Look to the severity on the PagerDuty Incident to map
	//   the urgency. An unset incident severity is equivalent to critical.
	PagerDutyUrgencyRule string = "severity_based"

	// ClusterDeploymentManagedLabel is the label the clusterdeployment will have that determines
	// if the cluster is OSD (managed) or not
	ClusterDeploymentManagedLabel string = "api.openshift.com/managed"

	// ClusterDeploymentLimitedSupportLabel is the label the clusterdeployment will have that determines
	// if the cluster's pagerduty service needs to enabled/disabled for alerting
	ClusterDeploymentLimitedSupportLabel string = "api.openshift.com/limited-support"

	// ClusterDeploymentSupportExceptionLabel is the label indicating the cluster is under a support
	// exception and the PagerDuty service should be enabled even if the cluster is in limited support
	ClusterDeploymentSupportExceptionLabel string = "ext-managed.openshift.io/support-exception"
)

Variables

This section is empty.

Functions

func IsFedramp

func IsFedramp() bool

IsFedramp returns value of isFedramp var

func Name

func Name(servicePrefix, clusterDeploymentName, suffix string) string

Name is used to generate the name of secondary resources (SyncSets, Secrets, ConfigMaps) for a ClusterDeployment that are created by the PagerDutyIntegration controller.

func SetIsFedramp

func SetIsFedramp() error

SetIsFedramp gets the value of fedramp

Types

This section is empty.

Jump to

Keyboard shortcuts

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