Documentation ¶
Index ¶
Constants ¶
View Source
const ( TokenURL = "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token" ClientID = "cloud-services" ClientSecret = "" SkipAuth = true Integration = false HealthcheckURL = "http://localhost:8083" )
View Source
const ( X = "x" Y = "y" Z = "z" UnderscoreConnector string = "_" DotConnector string = "." HyphenConnector string = "-" )
View Source
const ( AWSProviderDIR = "aws" AZUREProviderDIR = "azure" RHCSProviderDIR = "rhcs" )
Provider dirs' name definition
View Source
const ( NoExecute = "NoExecute" NoSchedule = "NoSchedule" PreferNoSchedule = "PreferNoSchedule" )
Machine pool taints effect
View Source
const (
DefaultAWSRegion = "us-east-2"
)
View Source
const (
DefaultVPCCIDR = "11.0.0.0/16"
)
Variables ¶
View Source
var ( TokenENVName = "RHCS_TOKEN" ClusterIDEnv = "CLUSTER_ID" RHCSENV = "RHCS_ENV" RhcsClusterProfileENV = "CLUSTER_PROFILE" ClusterTypeManifestDirEnv = "CLUSTER_ROSA_TYPE" MajorVersion = "MAJOR_VERSION_ENV" ManifestsDirENV = os.Getenv("MANIFESTS_FOLDER") )
View Source
var ( DefaultMajorVersion = "4.14" CharsBytes = "abcdefghijklmnopqrstuvwxyz123456789" WorkSpace = "WORKSPACE" RHCSPrefix = "rhcs" TFYAMLProfile = "tf_cluster_profile.yml" ConfigSuffix = "kubeconfig" DefaultAccountRolesPrefix = "account-role-" )
View Source
var ( AccountRolesDir = path.Join(configrationDir, AWSProviderDIR, "account-roles") AddAccountRolesDir = path.Join(configrationDir, AWSProviderDIR, "add-account-roles") OIDCProviderOperatorRolesManifestDir = path.Join(configrationDir, AWSProviderDIR, "oidc-provider-operator-roles") AWSVPCDir = path.Join(configrationDir, AWSProviderDIR, "vpc") AWSVPCTagDir = path.Join(configrationDir, AWSProviderDIR, "vpc-tags") AWSSecurityGroupDir = path.Join(configrationDir, AWSProviderDIR, "security-groups") )
Dirs of aws provider
View Source
var ( ClusterDir = path.Join(configrationDir, RHCSProviderDIR, "clusters") ImportResourceDir = path.Join(configrationDir, RHCSProviderDIR, "resource-import") IDPsDir = path.Join(configrationDir, RHCSProviderDIR, "idps") MachinePoolDir = path.Join(configrationDir, RHCSProviderDIR, "machine-pools") DNSDir = path.Join(configrationDir, RHCSProviderDIR, "dns") RhcsInfoDir = path.Join(configrationDir, RHCSProviderDIR, "rhcs-info") DefaultMachinePoolDir = path.Join(configrationDir, RHCSProviderDIR, "default-machine-pool") )
Dirs of rhcs provider
View Source
var ( ROSAClassic = path.Join(ClusterDir, "rosa-classic") OSDCCS = path.Join(ClusterDir, "osd-ccs") )
Dirs of different types of clusters
View Source
var ( HtpasswdDir = path.Join(IDPsDir, "htpasswd") GitlabDir = path.Join(IDPsDir, "gitlab") GithubDir = path.Join(IDPsDir, "github") LdapDir = path.Join(IDPsDir, "ldap") OpenidDir = path.Join(IDPsDir, "openid") GoogleDir = path.Join(IDPsDir, "google") MultiIDPDir = path.Join(IDPsDir, "multi-idp") )
Dirs of identity providers
View Source
var ( NilMap map[string]string Tags = map[string]string{"tag1": "test_tag1", "tag2": "test_tag2"} ClusterAdminUser = "cluster_admin_name" DefaultMPLabels = map[string]string{ "test1": "testdata1", } LdapURL = "ldap://ldap.forumsys.com/dc=example,dc=com?uid" GitLabURL = "https://gitlab.cee.redhat.com" Organizations = []string{"openshift"} HostedDomain = "redhat.com" )
View Source
var GateWayURL, OCMENV = gatewayURL()
View Source
var RHCS = new(RHCSconfig)
Functions ¶
func GetEnvWithDefault ¶ added in v1.4.0
func GetKubeConfigDir ¶ added in v1.5.0
func GetKubeConfigDir() string
func GetRHCSOutputDir ¶ added in v1.5.0
func GetRHCSOutputDir() string
func GrantClusterManifestDir ¶ added in v1.3.0
Supports abs and relatives
func GrantTFvarsFile ¶ added in v1.5.0
Types ¶
type RHCSconfig ¶ added in v1.4.0
type RHCSconfig struct { // Env is the OpenShift Cluster Management environment used to provision clusters. RHCSEnv string `env:"RHCS_ENV" default:"staging" yaml:"env"` ClusterProfile string `env:"CLUSTER_PROFILE" yaml:"clusterProfile,omitempty"` ClusterProfileDir string `env:"CLUSTER_PROFILE_DIR" yaml:"clusterProfileDir,omitempty"` RhcsOutputDir string YAMLProfilesDir string RootDir string KubeConfigDir string }
RHCSConfig contains platforms info for the RHCS testing
Click to show internal directories.
Click to hide internal directories.