config

package
v0.0.0-...-4ed85c4 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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OperatorName stores the name used by this code for the AWS Account Operator
	OperatorName string = "aws-account-operator"

	// OperatorNamespace stores a string indicating the Kubernetes namespace in which the operator runs
	OperatorNamespace string = "aws-account-operator"

	// used in constructing ARNs
	AwsResourceTypeRole                  string = "role"
	AwsResourceTypePolicy                string = "policy"
	AwsResourceIDAdministratorAccessRole string = "AdministratorAccess"
)

Variables

This section is empty.

Functions

func GetDefaultAccountPoolName

func GetDefaultAccountPoolName(reqLogger logr.Logger, kubeClient client.Client) (string, error)

func GetDefaultRegion

func GetDefaultRegion() (regionName string)

func GetIAMArn

func GetIAMArn(awsAccountID, awsResourceType, awsResourceID string) (arn string)

construct an ARN

func IsFedramp

func IsFedramp() bool

IsFedramp returns value of isFedramp var

func SetIsFedramp

func SetIsFedramp(configMap *corev1.ConfigMap) error

SetIsFedramp sets the var isFedramp to value in default configmap

Types

This section is empty.

Jump to

Keyboard shortcuts

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