Documentation
¶
Index ¶
- Constants
- func GetKubeConfigAndClient(clusterID string, elevationReasons ...string) (client.Client, *rest.Config, *kubernetes.Clientset, error)
- func GetKubeConfigAndClientWithConn(clusterID string, ocm *ocmsdk.Connection, elevationReasons ...string) (client.Client, *rest.Config, *kubernetes.Clientset, error)
- func UpdateSecret(kubeClient client.Client, secretName string, secretNamespace string, ...) error
Constants ¶
View Source
const ( // default AWS region DefaultRegion = "us-east-1" // default aws-account-operator namespace AWSAccountNamespace = "aws-account-operator" DefaultConfigMap = "aws-account-operator-configmap" OSDManagedAdminIAM = "osdManagedAdmin" OSDCcsAdminIAM = "osdCcsAdmin" )
Variables ¶
This section is empty.
Functions ¶
func GetKubeConfigAndClient ¶ added in v0.25.0
func GetKubeConfigAndClient(clusterID string, elevationReasons ...string) (client.Client, *rest.Config, *kubernetes.Clientset, error)
If some elevationReasons are provided, then the config will be elevated with user backplane-cluster-admin
func GetKubeConfigAndClientWithConn ¶ added in v0.52.0
func GetKubeConfigAndClientWithConn(clusterID string, ocm *ocmsdk.Connection, elevationReasons ...string) (client.Client, *rest.Config, *kubernetes.Clientset, error)
If some elevationReasons are provided, then the config will be elevated with user backplane-cluster-admin Using provided OCM sdk connection for config values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.