cluster

package
v0.39.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	JiraBaseURL                   = "https://issues.redhat.com"
	JiraTokenRegistrationPath     = "/secure/ViewProfile.jspa?selectedTab=com.atlassian.pats.pats-plugin:jira-user-personal-access-tokens"
	PagerDutyTokenRegistrationUrl = "https://martindstone.github.io/PDOAuth/"
	ClassicSplunkURL              = "" /* 126-byte string literal not displayed */
	HCPSplunkURL                  = "" /* 172-byte string literal not displayed */

)
View Source
const (
	EtcdNamespaceName       = "openshift-etcd"
	EtcdMemberConditionType = "EtcdMembersAvailable"
	ContainerName           = "etcdctl"
	MasterNodeLabel         = "node-role.kubernetes.io/master"
	EtcdPodMatchLabelName   = "k8s-app"
	EtcdPodMatchValueName   = "etcd"
	EtcdLabelSelector       = "k8s-app=etcd"
)
View Source
const (
	EtcdQuorumTurnOffPatch = `{"spec": {"unsupportedConfigOverrides": {"useUnsupportedUnsafeNonHANonProductionUnstableEtcd": true}}}`
	EtcdQuorumTurnOnPatch  = `{"spec": {"unsupportedConfigOverrides": null}}`
	EtcdForceRedeployPatch = `{"spec": {"forceRedeploymentReason": "single-master-recovery-%s"}}`
)

Patch Constants

View Source
const BanCodeExportControlCompliance = "export_control_compliance"
View Source
const CheckSyncMaxAttempts = 24
View Source
const HYPERSHIFT_URL = "/api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift"
View Source
const Namespace = "openshift-monitoring"
View Source
const (
	OldFlowSupportRole = "role/RH-Technical-Support-Access"
)

Variables

View Source
var BackplaneClusterAdmin = "backplane-cluster-admin"

Functions

func CheckBannedUser added in v0.14.0

func CheckBannedUser(clusterID string) error

func ControlplaneNodeStatus added in v0.18.0

func ControlplaneNodeStatus(kubeCli client.Client) error

func EtcdCrStatus added in v0.18.0

func EtcdCrStatus(kubeCli client.Client) (string, error)

func EtcdHealthCheck added in v0.18.0

func EtcdHealthCheck(clusterId string) error

func EtcdPodStatus added in v0.18.0

func EtcdPodStatus(kubeCli client.Client) (*corev1.PodList, error)

func Etcdctlhealth added in v0.18.0

func Etcdctlhealth(kconfig *rest.Config, clientset *kubernetes.Clientset, etcdctlCmd string, etcdPodName string) (string, error)

func GetCloudTrailLogsForCluster added in v0.14.4

func GetCloudTrailLogsForCluster(awsProfile string, clusterID string, maxPages int) ([]*types.Event, error)

func NewCmdCluster

func NewCmdCluster(streams genericclioptions.IOStreams, client *k8s.LazyClient, globalOpts *globalflags.GlobalOptions) *cobra.Command

NewCmdCluster implements the cluster utility

func NewCmdHypershiftInfo added in v0.18.0

func NewCmdHypershiftInfo(streams genericclioptions.IOStreams) *cobra.Command

newCmdPool gets the current status of the AWS Account Operator AccountPool

Types

type ChanReturn added in v0.18.0

type ChanReturn[T retrievable] struct {
	Value T
	Error error
}

type ClusterHealthCondensedObject

type ClusterHealthCondensedObject struct {
	ID       string   `yaml:"ID"`
	Name     string   `yaml:"Name"`
	Provider string   `yaml:"Provider"`
	AZs      []string `yaml:"AZs"`
	Expected struct {
		Master int         `yaml:"Master"`
		Infra  int         `yaml:"Infra"`
		Worker interface{} `yaml:"Worker"`
	} `yaml:"Expected nodes"`
	Actual struct {
		Total          int `yaml:"Total"`
		Stopped        int `yaml:"Stopped"`
		RunningMasters int `yaml:"Running Masters"`
		RunningInfra   int `yaml:"Running Infra"`
		RunningWorker  int `yaml:"Running Worker"`
	} `yaml:"Actual nodes"`
}

type CreatorPatch added in v0.12.0

type CreatorPatch struct {
	Creator_ID string `json:"creator_id"`
}

type LogCapture added in v0.28.0

type LogCapture struct {
	// contains filtered or unexported fields
}

func (*LogCapture) GetStdOut added in v0.28.0

func (capture *LogCapture) GetStdOut() string

func (*LogCapture) Write added in v0.28.0

func (capture *LogCapture) Write(p []byte) (n int, err error)

type OrgId added in v0.21.0

type OrgId struct {
}

func (*OrgId) Run added in v0.21.0

func (o *OrgId) Run(clusterID string) error

type OrgIdOutput added in v0.21.0

type OrgIdOutput struct {
	ExternalId string `json:"external_id"`
	InternalId string `json:"internal_id"`
}

type RegisterCluster added in v0.12.0

type RegisterCluster struct {
	External_id     string `json:"external_id"`
	Subscription_id string `json:"subscription_id"`
	Organization_id string `json:"organization_id"`
	Console_url     string `json:"console_url"`
	Display_name    string `json:"display_name"`
}

type Resync added in v0.19.0

type Resync struct {
	// contains filtered or unexported fields
}

func (*Resync) New added in v0.19.0

func (r *Resync) New() error

func (*Resync) Run added in v0.19.0

func (r *Resync) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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