roles

package
v1.2.44-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RosaUpgradeAccRolesModeAuto = "ROSAUpgradeAccountRolesModeAuto"
)

Variables

This section is empty.

Functions

func BuildMissingOperatorRoleCommand

func BuildMissingOperatorRoleCommand(
	missingRoles map[string]*cmv1.STSOperator,
	cluster *cmv1.Cluster,
	accountID string,
	r *rosa.Runtime,
	policies map[string]*cmv1.AWSSTSPolicy,
	unifiedPath string,
	operatorRolePolicyPrefix string,
	managedPolicies bool,
) (string, error)

func CreateMissingRoles added in v1.2.12

func CreateMissingRoles(
	r *rosa.Runtime,
	missingRolesInCS map[string]*cmv1.STSOperator,
	cluster *cmv1.Cluster,
	mode string,
	prefix string,
	policies map[string]*cmv1.AWSSTSPolicy,
	unifiedPath string,
	managedPolicies bool,
) error

func GeOperatorRolePrefixFromClusterName added in v1.2.37

func GeOperatorRolePrefixFromClusterName(clusterName string) string

GeOperatorRolePrefixFromClusterName returns a valid operator role prefix from the cluster name An operator role prefix is considered valid if it's length is less than or equal to 32 chars. A random 4 characters label is attached to the cluster name to reduce chances of collision. The cluster name and the random label are separate by '-'. If the cluster name is longer than 27 characters, only the first 27 characters will be used.

func GetOperatorRoleName

func GetOperatorRoleName(cluster *cmv1.Cluster, missingOperator *cmv1.STSOperator) string

func ValidateAccountRolesManagedPolicies added in v1.2.12

func ValidateAccountRolesManagedPolicies(r *rosa.Runtime, prefix string, hostedCPPolicies bool) error

func ValidateAdditionalAllowedPrincipals added in v1.2.41

func ValidateAdditionalAllowedPrincipals(aapARNs []string) error

func ValidateOperatorRolesManagedPolicies added in v1.2.12

func ValidateOperatorRolesManagedPolicies(r *rosa.Runtime, cluster *cmv1.Cluster,
	operatorRoles map[string]*cmv1.STSOperator, policies map[string]*cmv1.AWSSTSPolicy, mode string, prefix string,
	unifiedPath string, upgradeVersion string, hostedCPPolicies bool) error

func ValidateUnmanagedAccountRoles added in v1.2.14

func ValidateUnmanagedAccountRoles(roleARNs []string, awsClient aws.Client, version string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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