extend

package
v0.0.0-...-2ed316a Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

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

func IsHypershiftHostedCluster(oc *CLI) bool

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) AsAdmin

func (c *CLI) AsAdmin() *CLI

func (*CLI) Namespace

func (c *CLI) Namespace() string

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

func (c *CLI) SetNamespace(ns string) *CLI

SetNamespace sets a new namespace for the CLI instance

func (*CLI) WithoutNamespace

func (c *CLI) WithoutNamespace() *CLI

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)

func (*CLICommand) Outputs

func (cmd *CLICommand) Outputs() (string, string, error)

Jump to

Keyboard shortcuts

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