Documentation ¶
Index ¶
- func CreateManagedServiceAccount(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) (*msav1beta1.ManagedServiceAccount, error)
- func CreateManagedServiceAccountAddon(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster) (*addonv1alpha1.ManagedClusterAddOn, error)
- func DeleteManagedServiceAccount(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) error
- func DeleteManagedServiceAccountAddon(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster) error
- func DoesManagedServiceAccountAddonExist(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster) bool
- func DoesManagedServiceAccountExist(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) bool
- func EnableManagedServiceAccountFeature(hubClient dynamic.Interface) error
- func GetImportedCluster(hubClient dynamic.Interface) (*clusterv1.ManagedCluster, error)
- func GetManagedCluster(hubClient dynamic.Interface, clusterName string) (*clusterv1.ManagedCluster, error)
- func GetManagedServiceAccount(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) (*msav1beta1.ManagedServiceAccount, error)
- func GetManagedServiceAccountAddon(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster) (*addonv1alpha1.ManagedClusterAddOn, error)
- func GetManagedServiceAccountSecret(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) (*corev1.Secret, error)
- func GetManagedServiceAccountToken(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) (string, error)
- func GetManagedServiceAccountUserName(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) (string, error)
- func GetMultiClusterEngine(hubClient dynamic.Interface) (*unstructured.Unstructured, error)
- func GetMultiClusterHub(hubClient dynamic.Interface) (*unstructured.Unstructured, error)
- func IsManagedServiceAccountAddonAvailable(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster) bool
- func IsManagedServiceAccountComplete(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ...) bool
- func ListManagedServiceAccount(hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster) (*msav1beta1.ManagedServiceAccountList, error)
- func SetManagedServiceAcccount(m *unstructured.Unstructured, state bool) error
- func ValidateManagedServiceAccountToken(mcDynClient dynamic.Interface, token string, expectedUserName string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateManagedServiceAccount ¶
func CreateManagedServiceAccount( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, namePrefix string, ) (*msav1beta1.ManagedServiceAccount, error)
func CreateManagedServiceAccountAddon ¶
func CreateManagedServiceAccountAddon( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ) (*addonv1alpha1.ManagedClusterAddOn, error)
func DeleteManagedServiceAccountAddon ¶
func DeleteManagedServiceAccountAddon( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ) error
func DoesManagedServiceAccountAddonExist ¶
func DoesManagedServiceAccountAddonExist( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ) bool
func GetImportedCluster ¶
func GetImportedCluster(hubClient dynamic.Interface) (*clusterv1.ManagedCluster, error)
func GetManagedCluster ¶
func GetManagedServiceAccount ¶
func GetManagedServiceAccount( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, name string, ) (*msav1beta1.ManagedServiceAccount, error)
func GetManagedServiceAccountAddon ¶
func GetManagedServiceAccountAddon( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ) (*addonv1alpha1.ManagedClusterAddOn, error)
func GetMultiClusterEngine ¶
func GetMultiClusterEngine( hubClient dynamic.Interface, ) (*unstructured.Unstructured, error)
GetMultiClusterEngine find first MCE in the cluster, will return error if no MCE can be found
func GetMultiClusterHub ¶
func GetMultiClusterHub( hubClient dynamic.Interface, ) (*unstructured.Unstructured, error)
list globally and get first mch, will return no error and no obj if not found
func IsManagedServiceAccountAddonAvailable ¶
func IsManagedServiceAccountAddonAvailable( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ) bool
func ListManagedServiceAccount ¶
func ListManagedServiceAccount( hubClient dynamic.Interface, managedCluster *clusterv1.ManagedCluster, ) (*msav1beta1.ManagedServiceAccountList, error)
func SetManagedServiceAcccount ¶
func SetManagedServiceAcccount(m *unstructured.Unstructured, state bool) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.