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 (
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.13" CharsBytes = "abcdefghijklmnopqrstuvwxyz123456789" WorkSpace = "WORKSPACE" RHCSPrefix = "rhcs" TFYAMLProfile = "tf_cluster_profile.yml" )
View Source
var ( AccountRolesDir = path.Join(configrationDir, AWSProviderDIR, "account-roles") OIDCProviderOperatorRolesManifestDir = path.Join(configrationDir, AWSProviderDIR, "oidc-provider-operator-roles") AWSVPCDir = path.Join(configrationDir, AWSProviderDIR, "vpc") )
Dirs of aws provider
View Source
var ( ClusterDir = path.Join(configrationDir, RHCSProviderDIR, "clusters") IDPsDir = path.Join(configrationDir, RHCSProviderDIR, "idps") MachinePoolDir = path.Join(configrationDir, RHCSProviderDIR, "machine-pools") )
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") )
Dirs of identity providers
View Source
var GateWayURL, OCMENV = gatewayURL()
View Source
var RHCS = new(RHCSconfig)
Functions ¶
func GetEnvWithDefault ¶ added in v1.4.0
func GrantClusterManifestDir ¶ added in v1.3.0
Supports abs and relatives
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"` YAMLProfilesDir string }
RHCSConfig contains platforms info for the RHCS testing
Click to show internal directories.
Click to hide internal directories.