Documentation ¶
Index ¶
- Constants
- Variables
- func GetAWSVPCDefaultManifestDir(clusterType ClusterType) string
- func GetAccountRoleDefaultManifestDir(clusterType ClusterType) string
- func GetAddAccountRoleDefaultManifestDir(clusterType ClusterType) string
- func GetClusterManifestsDir(clusterType ClusterType) string
- func GetEnvWithDefault(key string, defaultValue string) string
- func GetKubeConfigDir() string
- func GetOIDCProviderOperatorRolesDefaultManifestDir(clusterType ClusterType) string
- func GetRHCSOutputDir() string
- func GrantClusterManifestDir(manifestDir string) string
- func GrantTFstateFile(manifestDir string) string
- type ClusterType
- type RHCSconfig
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" )
OCP version streams
View Source
const ( UnderscoreConnector string = "_" DotConnector string = "." HyphenConnector string = "-" )
View Source
const ( Pending = "pending" Scheduled = "scheduled" Started = "started" Completed = "completed" Delayed = "delayed" Failed = "failed" Cancelled = "cancelled" Waiting = "waiting" )
Upgrade Policy States
View Source
const ( TokenENVName = "RHCS_TOKEN" ClusterIDEnv = "CLUSTER_ID" RHCSURL = "RHCS_URL" RhcsClusterProfileENV = "CLUSTER_PROFILE" QEUsage = "QE_USAGE" ClusterTypeManifestDirEnv = "CLUSTER_ROSA_TYPE" MajorVersion = "MAJOR_VERSION_ENV" RHCSVersion = "RHCS_VERSION" RHCSSource = "RHCS_SOURCE" // Set this to update the version for the terraform-redhat/rosa-classic/rhcs module ModuleVersion = "MODULE_VERSION" // Set this to update the source for the terraform-redhat/rosa-classic/rhcs module ModuleSource = "MODULE_SOURCE" // Set this to any value if `MODULE_SOURCE` refers to a local path, in which case `MODULE_VERSION` will be ignored ModuleSourceLocal = "MODULE_SOURCE_LOCAL" WaitOperators = "WAIT_OPERATORS" RHCS_CLUSTER_NAME = "RHCS_CLUSTER_NAME" RHCS_CLUSTER_NAME_PREFIX = "RHCS_CLUSTER_NAME_PREFIX" RHCS_CLUSTER_NAME_SUFFIX = "RHCS_CLUSTER_NAME_SUFFIX" COMPUTE_MACHINE_TYPE = "COMPUTE_MACHINE_TYPE" )
Below constants is the env variable name defined to run on different testing requirements
View Source
const ( NoExecute = "NoExecute" NoSchedule = "NoSchedule" PreferNoSchedule = "PreferNoSchedule" )
Machine pool taints effect
View Source
const ( DefaultMachinePoolName = "worker" DefaultNodePoolName = "workers" )
Machine pool
View Source
const ( DefaultEc2MetadataHttpTokens = "optional" RequiredEc2MetadataHttpTokens = "required" OptionalEc2MetadataHttpTokens = "optional" )
Ec2MetadataHttpTokens for hcp cluster
View Source
const ( HTTPOK = 200 HTTPNoContent = 204 HTTPNotFound = 404 HTTPInternalServerError = 500 )
HTTP response code
View Source
const ( AWSProviderDir = "aws" RHCSProviderDir = "rhcs" MachinePoolsDir = "machine-pools" IngressDir = "ingresses" )
Provider dirs' name definition
View Source
const (
DefaultVPCCIDR = "10.0.0.0/16"
)
View Source
const (
Ready = "ready"
)
Cluster state
Variables ¶
View Source
var ( AutomaticScheduleType cmv1.ScheduleType = "automatic" ManualScheduleType cmv1.ScheduleType = "manual" )
View Source
var ( DefaultMajorVersion = "4.14" CharsBytes = "abcdefghijklmnopqrstuvwxyz123456789" WorkSpace = "WORKSPACE" RHCSPrefix = "rhcs" ConfigSuffix = "kubeconfig" DefaultAccountRolesPrefix = "account-role-" ManifestsDirENV = os.Getenv("MANIFESTS_FOLDER") )
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 ( ROSA_CLASSIC = ClusterType{Name: "rosa-classic"} ROSA_HCP = ClusterType{Name: "rosa-hcp", HCP: true} )
View Source
var ( AccountRolesClassicDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "account-roles", "rosa-classic") AccountRolesHCPDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "account-roles", "rosa-hcp") AddAccountRolesClassicDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "add-account-roles", "rosa-classic") AddAccountRolesHCPDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "add-account-roles", "rosa-hcp") OIDCProviderOperatorRolesClassicManifestDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "oidc-provider-operator-roles", "rosa-classic") OIDCProviderOperatorRolesHCPManifestDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "oidc-provider-operator-roles", "rosa-hcp") AWSVPCClassicDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "vpc", "rosa-classic") AWSVPCHCPDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "vpc", "rosa-hcp") AWSVPCTagDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "vpc-tags") AWSSecurityGroupDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "security-groups") ProxyDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "proxy") KMSDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "kms") KMSSecondDir = path.Join(ManifestsConfigurationDir, AWSProviderDir, "kms-second") )
Dirs of aws provider
View Source
var ( ClusterDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "clusters") ImportResourceDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "resource-import") IDPsDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "idps") ClassicMachinePoolDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, MachinePoolsDir, "classic") HCPMachinePoolDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, MachinePoolsDir, "hcp") DNSDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "dns") ClassicIngressDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, IngressDir, "classic") HCPIngressDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, IngressDir, "hcp") RhcsInfoDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "rhcs-info") DefaultMachinePoolDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "default-machine-pool") KubeletConfigDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "kubelet-config") ClassicClusterAutoscalerDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "cluster-autoscaler", "classic") HCPClusterAutoscalerDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "cluster-autoscaler", "hcp") TuningConfigDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "tuning-config") ClusterWaiterDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "cluster-waiter") TrustedIPsDir = path.Join(ManifestsConfigurationDir, RHCSProviderDir, "trusted-ips") )
Dirs of rhcs provider
View Source
var ( NilMap map[string]string Tags = map[string]string{"tag1": "test_tag1", "tag2": "test_tag2"} ClusterAdminUser = "rhcs-clusteradmin" DefaultMPLabels = map[string]string{ "test1": "testdata1", } CustomProperties = map[string]string{"custom_property": "test", "qe_usage": GetEnvWithDefault(QEUsage, "")} 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 (
DefaultAWSRegion = "us-east-2"
)
View Source
var ManifestsConfigurationDir = initManifestsDir()
View Source
var RHCS = new(RHCSconfig)
Functions ¶
func GetAWSVPCDefaultManifestDir ¶ added in v1.6.3
func GetAWSVPCDefaultManifestDir(clusterType ClusterType) string
func GetAccountRoleDefaultManifestDir ¶ added in v1.6.0
func GetAccountRoleDefaultManifestDir(clusterType ClusterType) string
func GetAddAccountRoleDefaultManifestDir ¶ added in v1.6.0
func GetAddAccountRoleDefaultManifestDir(clusterType ClusterType) string
func GetClusterManifestsDir ¶ added in v1.6.0
func GetClusterManifestsDir(clusterType ClusterType) string
func GetEnvWithDefault ¶ added in v1.4.0
func GetKubeConfigDir ¶ added in v1.5.0
func GetKubeConfigDir() string
func GetOIDCProviderOperatorRolesDefaultManifestDir ¶ added in v1.6.0
func GetOIDCProviderOperatorRolesDefaultManifestDir(clusterType ClusterType) string
func GetRHCSOutputDir ¶ added in v1.5.0
func GetRHCSOutputDir() string
func GrantClusterManifestDir ¶ added in v1.3.0
Supports abs and relatives
func GrantTFstateFile ¶ added in v1.5.1
Types ¶
type ClusterType ¶ added in v1.6.0
func FindClusterType ¶ added in v1.6.0
func FindClusterType(clusterTypeName string) ClusterType
func GetHCPClusterTypes ¶ added in v1.6.3
func GetHCPClusterTypes() (types []ClusterType)
func (*ClusterType) String ¶ added in v1.6.0
func (ct *ClusterType) String() string
type RHCSconfig ¶ added in v1.4.0
type RHCSconfig struct { // Env is the OpenShift Cluster Management environment used to provision clusters. RHCSURL string `env:"RHCS_URL" yaml:"rhcsURL,omitempty"` OCMEnv string `env:"OCM_ENV" default:"staging" yaml:"ocmENV,omitempty"` 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 RHCSSource string `env:"RHCS_SOURCE" default:"staging" yaml:"rhcsSource,omitempty"` RHCSVersion string `env:"RHCS_VERSION" default:"staging" yaml:"rhcsVersion,omitempty"` RHCSClusterName string `env:"RHCS_CLUSTER_NAME" yaml:"clusterName,omitempty"` RHCSClusterNamePrefix string `env:"RHCS_CLUSTER_NAME_PREFIX" yaml:"clusterNamePrefix,omitempty"` RHCSClusterNameSuffix string `env:"RHCS_CLUSTER_NAME_SUFFIX" yaml:"clusterNameSuffix,omitempty"` ComputeMachineType string `env:"COMPUTE_MACHINE_TYPE" yaml:"computeMachineType,omitempty"` }
RHCSConfig contains platforms info for the RHCS testing
Click to show internal directories.
Click to hide internal directories.