constants

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: UPL-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VerrazzanoSystemNamespace is the Namespace where Opensearch components are installed
	VerrazzanoSystemNamespace = "verrazzano-system"

	// VerrazzanoNameSpaceName Namespace where Velero components are installed
	VeleroNameSpace = "verrazzano-backup"

	// BackupOperation backup operation expected value
	BackupOperation = "backup"

	// RestoreOperation restore operation expected value
	RestoreOperation = "restore"

	// Min value used in WaitRandom
	Min = 10

	// Max value used in WaitRandom
	Max = 25

	// DevKey used in setting env values for dev
	DevKey = "dev"

	// TrueString is expected value for true
	TrueString = "true"

	// FalseString is expected value for false
	FalseString = "false"

	// RetryCount Default retry count for various operations
	RetryCount = 50

	// OpenSearchHealthCheckTimeoutKey Env key for Opensearch health check
	OpenSearchHealthCheckTimeoutKey = "HEALTH_CHECK"

	// OpenSearchHealthCheckTimeoutDefaultValue Env value for key OpenSearchHealthCheckTimeoutKey for Opensearch health check
	OpenSearchHealthCheckTimeoutDefaultValue = "10m"
)

General constants

View Source
const (
	// AwsAccessKeyString AWS access key id string
	AwsAccessKeyString = "aws_access_key_id" //nolint:gosec //#gosec G101

	// AwsSecretAccessKeyString AWS secret access key id string
	AwsSecretAccessKeyString = "aws_secret_access_key" //nolint:gosec //#gosec G101
)
View Source
const (
	// OpenSearchURL Opensearch url used internally
	OpenSearchURL = "http://127.0.0.1:9200"

	// OpenSearchDataPodContainerName Opensearch data pod container name
	OpenSearchDataPodContainerName = "es-data"

	// OpenSearchMasterPodContainerName Opensearch master pod container name
	OpenSearchMasterPodContainerName = "es-master"

	// HTTPContentType content type in http request/response
	HTTPContentType = "application/json"

	// OpenSearchSnapShotRepoName Opensearch snapshot name in remote repository
	OpenSearchSnapShotRepoName = "verrazzano-backup"

	// IngestDeploymentName Opensearch ingest deployment name
	IngestDeploymentName = "vmi-system-es-ingest"

	// IngestLabelSelector Opensearch ingest pod label selector
	IngestLabelSelector = "app=system-es-ingest"

	// KibanaDeploymentName Kibana deployment name
	KibanaDeploymentName = "vmi-system-kibana"

	// KibanaLabelSelector Label selector for Kibana pod
	KibanaLabelSelector = "app=system-kibana"

	// KibanaDeploymentLabelSelector Kibana deployment label selector
	KibanaDeploymentLabelSelector = "verrazzano-component=kibana"

	// VMODeploymentName Deployment name for Verrazzano Monitoring Operator
	VMODeploymentName = "verrazzano-monitoring-operator"

	// VMOLabelSelector Label selector for Verrazzano Monitoring Operator
	VMOLabelSelector = "k8s-app=verrazzano-monitoring-operator"

	// OpenSearchSnapShotSuccess Success status message expected value
	OpenSearchSnapShotSuccess = "SUCCESS"

	// OpenSearchSnapShotInProgress In progress status message expected value
	OpenSearchSnapShotInProgress = "IN_PROGRESS"

	// DataStreamGreen Data stream green status expected value
	DataStreamGreen = "GREEN"

	// OpenSearchKeystoreAccessKeyCmd Opensearch cmd to add s3 access key
	OpenSearchKeystoreAccessKeyCmd = "/usr/share/opensearch/bin/opensearch-keystore add --stdin --force s3.client.default.access_key" //nolint:gosec //#nosec G204

	// OpenSearchKeystoreSecretAccessKeyCmd Opensearch cmd to add s3 secret access key
	OpenSearchKeystoreSecretAccessKeyCmd = "/usr/share/opensearch/bin/opensearch-keystore add --stdin --force s3.client.default.secret_key" //nolint:gosec //#nosec G204

	// OpenSearchMasterLabel Label selector for OpenSearch master pods
	OpenSearchMasterLabel = "opensearch.verrazzano.io/role-master=true"

	// OpenSearchDataLabel Label selector for OpenSearch data pods
	OpenSearchDataLabel = "opensearch.verrazzano.io/role-data=true"
)

OpenSearch constants

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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