Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultNamespace is the default namespace used by CCO tests DefaultNamespace = "openshift-cloud-credential-operator" // KubeSystemNamespace is the kube-system namespace KubeSystemNamespace = "kube-system" // OpenShiftImageRegistryNamespace is the openshift-image-registry namespace OpenShiftImageRegistryNamespace = "openshift-image-registry" // OpenShiftMonitoringNamespace is the openshift-monitoring namespace OpenShiftMonitoringNamespace = "openshift-monitoring" // OpenShiftIngressOperatorNamespace is the openshift-ingress-operator namespace OpenShiftIngressOperatorNamespace = "openshift-ingress-operator" // AWSRootSecretName is the name of the AWS root credentials secret AWSRootSecretName = "aws-creds" // GCPRootSecretName is the name of the GCP root credentials secret GCPRootSecretName = "gcp-credentials" // AzureRootSecretName is the name of the Azure root credentials secret AzureRootSecretName = "azure-credentials" // VSphereRootSecretName is the name of the vSphere root credentials secret VSphereRootSecretName = "vsphere-creds" // OpenStackRootSecretName is the name of the OpenStack root credentials secret OpenStackRootSecretName = "openstack-credentials" // OvirtRootSecretName is the name of the oVirt root credentials secret OvirtRootSecretName = "ovirt-credentials" // InstallerCloudCredentialsSecretName is the name of the installer cloud credentials secret InstallerCloudCredentialsSecretName = "installer-cloud-credentials" // CloudCredentialsSecretName is the name of the cloud-credentials secret CloudCredentialsSecretName = "cloud-credentials" // PrometheusK8sServiceAccount is the prometheus-k8s service account name PrometheusK8sServiceAccount = "prometheus-k8s" )
Constants for commonly used Kubernetes resources and namespaces
View Source
const (
DefaultTimeout = 120
)
Variables ¶
This section is empty.
Functions ¶
func IsHypershiftHostedCluster ¶
isHyperShiftCluster checks if the cluster has an externally hosted control plane
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is a tiny wrapper around the `oc` binary.
func (*CLI) Run ¶
func (c *CLI) Run(commands ...string) *CLICommand
Run starts building an `oc` command invocation. This matches the common origin/exutil usage pattern: `oc.Run("get").Args(...).Output()`.
func (*CLI) SetNamespace ¶
SetNamespace sets a new namespace for the CLI instance
func (*CLI) WithoutNamespace ¶
type CLICommand ¶
type CLICommand struct {
// contains filtered or unexported fields
}
func (*CLICommand) Args ¶
func (cmd *CLICommand) Args(args ...string) *CLICommand
func (*CLICommand) Execute ¶
func (cmd *CLICommand) Execute() error
func (*CLICommand) Output ¶
func (cmd *CLICommand) Output() (string, error)
func (*CLICommand) OutputToFile ¶
func (cmd *CLICommand) OutputToFile(filename string) (string, error)
Click to show internal directories.
Click to hide internal directories.