constants

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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 (
	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 (
	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 (

	// MaxExpiration in unit of hour
	ClusterMaxExpiration = 168

	// MaxNodeNumber means max node number per cluster/machinepool
	ClusterMaxNodeNumber = 180

	// MaxNameLength means cluster name will be trimed when request certificate
	ClusterMaxNameLength = 15

	ClusterMaxIngressNumber = 2
)
View Source
const (
	MinClassicDiskSize = 128
	MinHCPDiskSize     = 75
	MaxDiskSize        = 16384
)

disk size

View Source
const (
	HTTPOK                  = 200
	HTTPNoContent           = 204
	HTTPNotFound            = 404
	HTTPInternalServerError = 500
)

HTTP response code

View Source
const (
	VersionLatest  = "latest"
	VersionZStream = "z-1"
	VersionYStream = "y-1"
	VersionEOL     = "eol"
)
View Source
const (
	VersionFastChannel      = "fast"
	VersionStableChannel    = "stable"
	VersionNightlyChannel   = "nightly"
	VersionCandidateChannel = "candidate"
)

channel_groups

View Source
const (
	Ready = "ready"
)

Cluster state

Variables

View Source
var (
	AutomaticScheduleType cmv1.ScheduleType = "automatic"
	ManualScheduleType    cmv1.ScheduleType = "manual"
)
View Source
var (
	CharsBytes                = "abcdefghijklmnopqrstuvwxyz123456789"
	RHCSPrefix                = "rhcs"
	ConfigSuffix              = "kubeconfig"
	DefaultAccountRolesPrefix = "account-role-"
)
View Source
var (
	DefaultAWSRegion = "us-east-2"
	DefaultRHCSURL   = "https://api.openshift.com"
)
View Source
var (
	ROSA_CLASSIC = ClusterType{Name: "rosa-classic"}
	ROSA_HCP     = ClusterType{Name: "rosa-hcp", HCP: true}
)

Functions

This section is empty.

Types

type ClusterType added in v1.6.0

type ClusterType struct {
	Name string
	HCP  bool
}

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 IDPType added in v1.6.5

type IDPType string
const (
	IDPHTPassword IDPType = "htpasswd"
	IDPGitlab     IDPType = "gitlab"
	IDPGithub     IDPType = "github"
	IDPGoogle     IDPType = "google"
	IDPLDAP       IDPType = "ldap"
	IDPOpenID     IDPType = "openid"
	IDPMulti      IDPType = "multi-idp"
)

Jump to

Keyboard shortcuts

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