Documentation ¶
Index ¶
- Constants
- Variables
- func CheckBannedUser(clusterID string) error
- func ControlplaneNodeStatus(kubeCli client.Client) error
- func EtcdCrStatus(kubeCli client.Client) (string, error)
- func EtcdHealthCheck(clusterId string) error
- func EtcdPodStatus(kubeCli client.Client) (*corev1.PodList, error)
- func Etcdctlhealth(kconfig *rest.Config, clientset *kubernetes.Clientset, etcdctlCmd string, ...) (string, error)
- func GetCloudTrailLogsForCluster(awsProfile string, clusterID string, maxPages int) ([]*types.Event, error)
- func NewCmdCluster(streams genericclioptions.IOStreams, flags *genericclioptions.ConfigFlags, ...) *cobra.Command
- func NewCmdHypershiftInfo(streams genericclioptions.IOStreams) *cobra.Command
- func ValidatePullSecret(clusterID string, kubeCli client.Client, flags *genericclioptions.ConfigFlags) error
- type ChanReturn
- type ClusterHealthCondensedObject
- type CreatorPatch
- type RegisterCluster
- type Resync
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 ( Undefined optionsDialogResponse = 0 Retry = 1 Skip = 2 Force = 3 Cancel = 4 )
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"
Variables ¶
View Source
var BackplaneClusterAdmin = "backplane-cluster-admin"
Functions ¶
func CheckBannedUser ¶ added in v0.14.0
func ControlplaneNodeStatus ¶ added in v0.18.0
func EtcdHealthCheck ¶ added in v0.18.0
func EtcdPodStatus ¶ added in v0.18.0
func Etcdctlhealth ¶ added in v0.18.0
func GetCloudTrailLogsForCluster ¶ added in v0.14.4
func NewCmdCluster ¶
func NewCmdCluster(streams genericclioptions.IOStreams, flags *genericclioptions.ConfigFlags, client client.Client, 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
func ValidatePullSecret ¶ added in v0.14.0
func ValidatePullSecret(clusterID string, kubeCli client.Client, flags *genericclioptions.ConfigFlags) error
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 RegisterCluster ¶ added in v0.12.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.